Hi...
I've posted a support question, but I thought I'd also ask here.
To make a long story short, I can't use IntelliJ 12 on OSX for Grails development. Upon loading a bare/new Grails 2.2 project that was created on the command line, I receive the following error:
/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin/java -Dgrails.home=/Users/michaelmorett/grails-2.2.0 -Dbase.dir=/Users/michaelmorett/work/test-grails-2-2 -Dtools.jar=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Users/michaelmorett/grails-2.2.0/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m "-javaagent:/Applications/IntelliJ IDEA 12.app/plugins/Grails/lib/grails-rt.jar" -Dprint.grails.settings=true -Dfile.encoding=UTF-8 -classpath /Users/michaelmorett/grails-2.2.0/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.5.jar:/Users/michaelmorett/grails-2.2.0/dist/grails-bootstrap-2.2.0.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Users/michaelmorett/grails-2.2.0/conf/groovy-starter.conf help
Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "main"
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 844
Exception: java.lang.StackOverflowError thrown from the UncaughtExceptionHandler in thread "Thread-0"
============
This is not new to IntelliJ 12. I've been having that JPLISAgent.c error for years, since IntelliJ 10. I saw it on Snow Leopard, then Lion, now Mountain Lion. I saw it on Grails 2.0, then 2.1, now 2.2.
I'm fine with IntelliJ 12 on Windows 7 (it works beautifully), but I'm trying to move to OSX. This single problem is keeping me from doing so. The only alternative I can think of is to put a Windows 7 VM inside OSX.
Complicating matters (maybe) is the fact that I can't seem to "control" the JVMs in use. I have JDK7 installed, but when I removed all JDK6 JVMs, IntelliJ itself could not even start and asked me to install Java 6 SE. I resisted and fought that for hours trying to troubleshoot, but in the end, I gave up and let IntelliJ install the JDK6 (JRE6?).
Complicating matters even more (maybe), is that there are various places JVMs like to live. One is /System/Library. The other is /Library. Another is /usr/libexec/java_home (?). Maybe there are other spots. Then there are symlinks from /usr/bin pointing into one of these (/System/Library).
Then there are plists (which IntelliJ 12 stopped using?). And then there is launchd.
Yes, I am confused. All I want for Christmas is to be able to start IntelliJ 12, on Mountain Lion, and work with a Grails 2.2 project. I am going in circles with this Java spaghetti on OSX.
Any help is appreciated. Thanks....
Michael.