在eclipse上运行grails应用程序 - 可能的插件错误

时间:2012-05-24 14:51:00

标签: eclipse grails plugins

我正在努力在本地系统上设置grails并正在完成以下教程: http://www.youtube.com/watch?v=PXHxo43hn34&feature=relmfu

但是,所有控制器和域类文件都能正确编译,但每次尝试执行应用程序时都会收到下面列出的错误

我在安装插件时遇到了困难,因为无法访问组件,并安装了我可以访问的所有必要插件,但我不确定这些是否是问题的根源。

| Loading Grails 2.0.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 1 source files.....
| Running Grails application
| Error 2012-05-24 10:24:21,801 [pool-7-thread-1] ERROR context.GrailsContextLoader  -     Error executing bootstraps: Error creating bean with name   'transactionManagerPostProcessor': Initialization of bean failed; nested exception is     org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
Line | Method
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . in java.lang.Thread
Caused by BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . in java.lang.Thread
Caused by InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run . . . in java.lang.Thread
Caused by MissingMethodException: No signature of method: org.example.pomodoro.Task.details() is applicable for argument types: (java.util.LinkedHashMap) values: [[blank:false]]
Possible solutions: getAll(), getDetials(), getTags(), getId(), equals(java.lang.Object), setDetials(java.lang.String)
->>   16 | doCall    in org.example.pomodoro.Task$__clinit__closure1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    334 | innerRun  in java.util.concurrent.FutureTask$Sync
|    166 | run . . . in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    722 | run       in java.lang.Thread

感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

MissingMethodException字段的org.example.pomodoro.Task原始错误为details。我假设它与设置约束有关,因为它抱怨设置[blank:false]。可以在跟踪中第一个长错误行的末尾看到此根错误。

由于下一行的建议解决方案是getDetials()setDetials(),您的域类中是否存在针对属性details的错误 - > detials