2012-10-24 21 views
1

groovy.lang.MissingPropertyException:沒有這樣的屬性:withSql類:org.codehaus.griffon.runtime.builder.UberBuilder 在addressbook.AddressbookView $ _run_closure1_closure2_closure7_closure8.doCall(AddressbookView.groovy:14) 在addressbook.AddressbookView $ _run_closure1_closure2_closure7 .doCall(AddressbookView.groovy:13) 在addressbook.AddressbookView $ _run_closure1_closure2_closure7.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 $此$ 3 $調用FactoryMethod.callCurrent(來源不明) 在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) at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass $ this $ 3 $ invokeFactoryMethod.callCurrent(Unknown Source) at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMe (地址簿視圖.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 $此$ 3 $ 在invokeFactoryMethod.callCurrent(Unknown Source) at org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:167) at addressbook.AddressbookView.run(AddressbookView.groovy:10) 在org.codehaus.griffon.runtime.builder.UberInterceptorMetaClass.invokeMethod(UberInterceptorMetaClass.groovy:151) 在org.codehaus.griffon.runtime.builder.UberBuilder.build(UberBuilder.groovy:155) 在org.codehaus。 griffon.runtime.core.AbstractMVCGroup $ 1.run(AbstractMVCGroup.java:129)的IntelliJ + griffon.0.9.5沒有這樣的屬性:withSql?

回答

0

GSQL/Datasource插件默認不會將withSql方法注入到Views中,您必須更改配置(在插件頁面中說明)。不過我強烈建議作爲意見的UI線程內不建在一個視圖注入這樣的方法,使數據庫調用內部的主題確實是一個壞主意。

+0

http://www.coderanch.com/t/596099/GUI/java/griffon-intellij-glazedlists-error – user1761650

相關問題