类: org.codehaus.griffon.runtime.builder.UberBuilder at addressbook.AddressbookView$_run_closure1_closure2_closure7_closure8.doCall(AddressbookView.groovy:14) at addressbook.AddressbookView$_run_closure1_closure2_closure7.doCall(AddressbookView.groovy:13) at addressbook.AddressbookView$_run_closure1_closure2_closure7.doCall(AddressbookView.groovy) at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96) at groovy.lang.MissingPropertyException:没有这样的属性: withSqlorg.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown源代码)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)在addressbook.AddressbookView$_run_closure1_closure2.doCall(AddressbookView.groovy:12)在addressbook.AddressbookView$_run_closure1_closure2.doCall(AddressbookView.groovy)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(UberInterceptorMetaClass.groovy:96)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown源代码)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:140)在addressbook.AddressbookView$_run_closure1.doCall(AddressbookView.groovy:11)在addressbook.AddressbookView$_run_closure1.doCall(AddressbookView.groovy)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeFactoryMethod(在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.this$3$invokeFactoryMethod(UberInterceptorMetaClass.groovy)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass$this$3$invokeFactoryMethod.callCurrent(Unknown源)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:167)在addressbook.AddressbookView.run(AddressbookView.groovy:10)在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:151)在org.codehaus.griffon.runtime。org.codehaus.griffon.runtime.core.AbstractMVCGroup$1.run(AbstractMVCGroup.java:129)上的builder.UberBuilder.build(UberBuilder.groovy:155)
发布于 2012-10-25 13:55:09
默认情况下,GSQL/Datasource插件不会将withSql方法注入视图,您必须更改配置(在插件页面中解释)。然而,我强烈建议不要在视图中注入这样的方法,因为视图是在UI线程中构建的,在这个线程中进行数据库调用真的不是一个好主意。
https://stackoverflow.com/questions/13045960
复制相似问题