Grails项目在执行run app时在UnmodifiableMap中抛出null

Grails项目在执行run app时在UnmodifiableMap中抛出null,grails,null,run-app,Grails,Null,Run App,我有一个项目已经有一段时间没有接触了,当我执行run-app命令时,我得到以下错误: grails> run-app | Running Grails application Error | 2014-03-12 13:20:34,741 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: null Message: null Line |

我有一个项目已经有一段时间没有接触了,当我执行run-app命令时,我得到以下错误:

grails> run-app
| Running Grails application
Error |
2014-03-12 13:20:34,741 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing the application: null
Message: null
    Line | Method
->> 1342 | put       in java.util.Collections$UnmodifiableMap
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     22 | doCall    in elektrova.Disponent$__clinit__closure1
|    262 | run . . . in java.util.concurrent.FutureTask
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread
Error |
2014-03-12 13:20:34,791 [localhost-startStop-1] ERROR context.GrailsContextLoader  - Error initializing Grails: null
Message: null
    Line | Method
->> 1342 | put       in java.util.Collections$UnmodifiableMap
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     22 | doCall    in elektrova.Disponent$__clinit__closure1
|    262 | run . . . in java.util.concurrent.FutureTask
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread
Error |
2014-03-12 13:20:34,821 [localhost-startStop-1] ERROR [localhost].[/ElektroVA]  - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
Message: Error executing bootstraps; nested exception is java.lang.UnsupportedOperationException
    Line | Method
->>  262 | run       in java.util.concurrent.FutureTask
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread
Caused by UnsupportedOperationException: null
->> 1342 | put       in java.util.Collections$UnmodifiableMap
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|     22 | doCall    in elektrova.Disponent$__clinit__closure1
|    262 | run . . . in java.util.concurrent.FutureTask
|   1145 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    615 | run . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^    744 | run       in java.lang.Thread
Error |
2014-03-12 13:20:34,837 [localhost-startStop-1] ERROR core.StandardContext  - Error listenerStart
Error |
2014-03-12 13:20:34,873 [localhost-startStop-1] ERROR core.StandardContext  - Context [/ElektroVA] startup failed due to previous errors
| Server running. Browse to http://localhost:8080/ElektroVA
| Application loaded in interactive mode. Type 'stop-app' to shutdown.
| Enter a script name to run. Use TAB for completion:
grails>
所以现在我不知道如何找出错误的来源。任何想法或建议都很好。
谢谢

听起来好像需要在项目上运行grails
clean
命令。通常这会清除像这样的奇怪错误。

grails clean怎么样?aaaaaaa我是个白痴。非常感谢,现在工作很好。我应该先想到这一点>>很高兴你把它解决了。添加它作为答案,以便我们可以结束此问题。