2014-03-12 47 views
0

我有一个项目,我没有碰过了一段时间,当我执行run-app命令我碰到下面的错误:Grails项目抛出UnmodifiableMap空

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> 

所以现在我不知道如何找出错误来自哪里。任何想法或建议都会很棒。 谢谢!

+1

grails如何清洁? –

+0

Aaaaaand我是个白痴。非常感谢,现在工作得很好。应该想到的是第一个>。> – olkoza

+0

很高兴你把它整理出来。添加它作为答案,所以我们可以关闭这个问题。 –

回答

2

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

相关问题