错误500:处理GroovyPageView时出错:null [英] Error 500: Error processing GroovyPageView: null
问题描述
我正在构建Grails/Groovy/GSP应用程序.
I'm building a Grails/Groovy/GSP app.
我习惯于看到诸如无法在空对象上获取属性'id'"或没有名为...的属性"之类的错误.但是我不确定"null"本身是什么意思!
I'm used to seeing errors such as "Cannot get property 'id' on null object", or "no property named ...". But I'm not sure what "null" by itself means!
错误500:处理GroovyPageView时出错:null
Error 500: Error processing GroovyPageView: null
只是"null".
现在,我了解到完整的错误堆栈将为您提供帮助,并且我仍在研究它以了解错误.但我只是想知道一般来说什么类型的错误就是空".
Now I understand that the full error stack is going to help, and I'm still studying it to understand the error. But I just wonder in general what type of error is just "null".
我注意到的另一件事是,对于有关groovy/gsp页面的错误消息,行号始终完全关闭且无用.
One other thing I noticed is that for error messages regarding groovy/gsp pages, the line numbers are always completely off and useless.
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: null
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at gsp_shop_viewCategoryshow_gsp$_run_closure1.doCall(gsp_shop_viewCategoryshow_gsp.groovy:36)
at gsp_shop_viewCategoryshow_gsp$_run_closure1.doCall(gsp_shop_viewCategoryshow_gsp.groovy)
at gsp_shop_viewCategoryshow_gsp.run(gsp_shop_viewCategoryshow_gsp.groovy:54)
... 6 more
推荐答案
我再次假设您正在使用gsp中的null
对象做某事.如果您看不到这种情况,请执行gsp_shop_viewCategoryshow_gsp.groovy
并查看第36行上的内容.
I'd again assume you are doing something with a null
object in your gsp. If you don't see such a thing, go and fine gsp_shop_viewCategoryshow_gsp.groovy
, and see what's there on line 36.
我不确定该文件的确切位置,具体取决于设置,但是请检查您的HOME/.grails
文件夹.
I'm not sure exactly where this file would reside, and it depends on the settings, but check your HOME/.grails
folder.
这篇关于错误500:处理GroovyPageView时出错:null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!