小编Pet*_*ter的帖子

为什么在Grails中使用HibernateCriteriaBuilder时,"Null值被分配给基本类型setter的属性"错误消息

在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)

grails grails-orm

85
推荐指数
8
解决办法
11万
查看次数

知道在Windows机器上杀死哪个java.exe进程

当基于Java的应用程序在Windows机器上开始出现异常时,如果无法正常退出应用程序,则希望能够终止任务管理器中的进程.大多数情况下,我的机器上运行的应用程序不止一个.有没有更好的方法,而不是随机杀死java.exe进程,希望你最终能够找到正确的应用程序?

编辑:感谢所有向我指出Sysinternal的Process Explorer的人 - 正是我正在寻找的!

java windows

46
推荐指数
6
解决办法
10万
查看次数

6
推荐指数
1
解决办法
1477
查看次数

从 Grails 中的 Quartz 作业渲染 GSP

当我尝试时,我有一个需要渲染 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)

grails spring quartz-scheduler grails-plugin

4
推荐指数
1
解决办法
2171
查看次数