2013-09-30 71 views
6

不知何故,我的工作區已損壞。當我嘗試在IntelliJ IDEA的我碰到下面的錯誤運行我的應用程序:工作區損壞的Grails 2.2.4,Intellij Idea 12.1.4,Windows 7

"C:\Program Files\Java\jdk1.7.0_40\bin\java" -Dgrails.home=C:\catalysts\sdks\grails\grails-2.2.4\grails-2.2.4 -Dbase.dir=C:\catalysts\src\mediacenter\mm-web "-Dtools.jar=C:\Program Files\Java\jdk1.7.0_40\lib\tools.jar" -Dgroovy.starter.conf=C:\catalysts\sdks\grails\grails-2.2.4\grails-2.2.4/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -javaagent:C:\catalysts\sdks\grails\grails-2.2.4\grails-2.2.4\lib\org.springsource.springloaded\springloaded-core\jars\springloaded-core-1.1.3.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7535 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin" -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\lib\util.jar" -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper C:\Users\Catalysts\AppData\Local\Temp\classpath4359768120270928639.tmp com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\catalysts\sdks\grails\grails-2.2.4\grails-2.2.4/conf/groovy-starter.conf run-app 
Exception in thread "main" java.lang.reflect.InvocationTargetException 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:606) 
    at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1259) 
    at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:121) 
Caused by: java.lang.NoClassDefFoundError: org/springsource/loaded/ri/ReflectiveInterceptor 
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113) 
    ... 6 more 
Caused by: java.lang.ClassNotFoundException: org.springsource.loaded.ri.ReflectiveInterceptor 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366) 
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 
    ... 7 more 

Process finished with exit code 1 

測試用例做工精細,我也可以開始與在的IntelliJ控制檯運行應用程序的應用程序(Ctrl + Alt + G) 。 我希望你能幫助我。

回答

12

刪除文件夾~/.grails/.slcache

+0

感謝您的回答,但沒有爲我工作 – fsch

+0

,它完美的作品。謝謝 – ricardogobbo

+0

爲我工作,謝謝! – Neoryder

0

IntelliJ IDEA的需要升級到最新版本

8

我最近得到確切的同樣的錯誤(最新版本在這個時候:IDEA 14/Grails的2.4.4)。在與之戰鬥之後,我回憶起之前被IDEA提出的一個問題,那就是類路徑,我只是盲目地回答是。試圖找到這個設置導致我這個問題:What does the dynamic.classpath flag do? (IntelliJ project settings)

編輯我的.iws文件和設置動態類路徑回到假''ClassNotFoundException:org.springsource.loaded.ri.ReflectiveInterceptor'走開了。

+0

很好找,歡呼! – jk47