English 中文(简体)
在日食可能的插件错误上运行 grail 应用程序
原标题:running grails application on eclipse-possible plugin error

I am working to set up grails on a local system and am working through the tutorials at: http://www.youtube.com/watch?v=PXHxo43hn34&feature=relmfu

然而,所有控制器和域名类文件都正确编译, 但我每次尝试执行应用程序时都会收到以下错误:

我安装插件有困难, 因为无法访问commonnets, 安装了所有我能找到的必要的插件, 但不确定这些插件是否是问题的根源。

| 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

谢谢你的帮助

问题回答

原始错误是 details 字段的 missingMethodExpendion , 载于 org.example.pomodoro.Task 。 我假设这与设置限制有关,因为它抱怨设置 [blank:false] 。 这个根错误可以在跟踪的第一个长错误行结尾处看到 。

由于建议下一行的解决方案是 getDetials () and set Detials () , 您的域名类别中是否有属性 details - & gt; dedetials ?





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签