我是Grails(主要是Java开发人员)的新手,将我的脚趾浸入Grails。
我最初的经验总体上很好,但我遇到了脚手架功能的一些问题......
我已经安装了STS(3.5.1.RELEASE)并安装了Grails(2.4.0)和Groovy插件。 我创建了一个Domain Class(Rat)和一个Controller类,并为Controller添加了一个脚手架。
package testnull
class RatController {
static scaffold = Rat
def index() { }
}
我启动了应用程序并且脚手架显示正常,但在创建编辑和删除几个周期后抛出NullPointerException:
Line | Method
->> 527 | doFilter in /rat/create
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <g:form>: Error executing tag <g:render>: null
->> 35 | doCall in /rat/create
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by GrailsTagException: Error executing tag <g:render>: null
->> 30 | doCall in /rat/create
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Caused by NullPointerException: null
->> 333 | hash in java.util.concurrent.ConcurrentHashMap
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 988 | get in ''
| 141 | getValue in grails.util.CacheEntry
| 81 | getValue in ''
| 30 | doCall . in rat_create$_run_closure2_closure24
| 35 | doCall in rat_create$_run_closure2
| 37 | run . . . in rat_create
| 189 | doFilter in PageFragmentCachingFilter.java
| 63 | doFilter in AbstractFilter.java
| 1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
如果我'生成视图'并删除'脚手架',一切正常。
这是一个已知问题吗?
此致 克里斯