在grails域对象中使用原始属性时出现以下错误:
Null value was assigned to a property of primitive type setter of MyDomain.myAttribute
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute
at grails.orm.HibernateCriteriaBuilder.invokeMethod(HibernateCriteriaBuilder.java:1077)
Run Code Online (Sandbox Code Playgroud) 当基于Java的应用程序在Windows机器上开始出现异常时,如果无法正常退出应用程序,则希望能够终止任务管理器中的进程.大多数情况下,我的机器上运行的应用程序不止一个.有没有更好的方法,而不是随机杀死java.exe进程,希望你最终能够找到正确的应用程序?
编辑:感谢所有向我指出Sysinternal的Process Explorer的人 - 正是我正在寻找的!
当我尝试时,我有一个需要渲染 GSP 的石英作业:
def g = new org.codehaus.groovy.grails.plugins.web.taglib.ApplicationTagLib()
def text = g.render(template: "/templates/myTemplate",
model: [language: language,
product: product])
Run Code Online (Sandbox Code Playgroud)
我收到以下异常:
org.quartz.JobExecutionException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. …Run Code Online (Sandbox Code Playgroud)