Error running grails 2.2.2 app

Intellij EAP 130-555 Mac OS X
Can't find any jrebel stuff on the classpath..

/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/bin/java -Dgrails.home=/Developer/java/grails/grails-2.2.2 -Dbase.dir=/Users/sigge/Project/nf -Dtools.jar=/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Developer/java/grails/grails-2.2.2/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -javaagent:/Developer/java/grails/grails-2.2.2/lib/org.springsource.springloaded/springloaded-core/jars/springloaded-core-1.1.1.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7533 -Didea.launcher.bin.path=/Applications/Cardea-IU-130.555.app/bin -Dfile.encoding=UTF-8 -classpath /Developer/java/grails/grails-2.2.2/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.8.jar:/Developer/java/grails/grails-2.2.2/dist/grails-bootstrap-2.2.2.jar:/Applications/Cardea-IU-130.555.app/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Developer/java/grails/grails-2.2.2/conf/groovy-starter.conf run-app

| Error java.lang.reflect.InvocationTargetException
| Error  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error  at java.lang.reflect.Method.invoke(Method.java:601)
| Error  at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1243)
| Error  at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
| Error  at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
| Error  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| Error  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
| Error  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
| Error  at java.lang.reflect.Method.invoke(Method.java:601)
| Error  at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1243)
| Error  at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
| Error Caused by: java.lang.NoClassDefFoundError: com/zeroturnaround/javarebel/AD
| Error  at org.codehaus.groovy.ast.ClassNode.<init>(ClassNode.java:243)
| Error  at org.codehaus.groovy.ast.ClassNode.<clinit>(ClassNode.java:121)
| Error  at org.codehaus.groovy.ast.ClassHelper.makeCached(ClassHelper.java:125)
| Error  at org.codehaus.groovy.ast.ClassHelper.<clinit>(ClassHelper.java:62)
| Error  at org.codehaus.groovy.runtime.callsite.CallSiteGenerator.<clinit>(CallSiteGenerator.java:35)
| Error  at org.codehaus.groovy.reflection.CachedMethod.createStaticMetaMethodSite(CachedMethod.java:284)
| Error  at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.createStaticMetaMethodSite(StaticMetaMethodSite.java:111)
| Error  at groovy.lang.MetaClassImpl.createStaticSite(MetaClassImpl.java:3028)
| Error  at groovy.lang.ExpandoMetaClass.createStaticSite(ExpandoMetaClass.java:1296)
| Error  at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:74)
| Error  at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:159)
| Error  at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
| Error  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
| Error  at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
| Error  at grails.util.BuildSettings.<init>(BuildSettings.groovy:793)
| Error  at grails.util.BuildSettings.<init>(BuildSettings.groovy:789)
| Error  at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:164)
| Error  ... 13 more
| Error Caused by: java.lang.ClassNotFoundException: com.zeroturnaround.javarebel.AD
| Error  at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:175)
| Error  at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
| Error  at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:147)
| Error  at org.codehaus.groovy.grails.cli.support.GrailsRootLoader.loadClass(GrailsRootLoader.java:52)
| Error  at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
| Error  ... 30 more

Process finished with exit code 1

6 comments

How do you include jrebel to your Grails project?

0

I used jrebel using the plugin in the previous IDEA version, it's not there anymore in this EAP,
no references I can find in the project either. The app runs using pure grails outside IDEA.

/S

0

Try to run "grails clean". If does not help try to add "-javaagent:/path/to/jrebel.jar" to VM options field in Grails run configuration

0

Didn't work.. anything in the settings I imported from the old IDEA version?
Tried removing the settings dir.. JRebel is not listed in the plugins list in this version,
might help installing it.

0

Using -noreload argument when starting grails works.. Thanks to zeroturnaround for this!

0

Just delete ~/.grails/.slcache and it works :-)

0

Please sign in to leave a comment.