I had a problem recently – I use IntelliJ at work, and one day it just stopped launching on my Mac altogether. Looking at the console, I found:
10/23/08 4:13:16 PM idea[248] Apple AWT Startup Exception : *** -[NSCFArray insertObject:atIndex:]: attempt to insert nil
Googling for that error I was led to this Apple support thread, which says:
You might want to check that the symlink:
/System/Library/Frameworks/JavaVM.framework/Versions/Current
points to:
/System/Library/Frameworks/JavaVM.framework/Versions/A
As described in this post:
http://blog.nominet.org.uk/tech/2008/04/24/restarting-the-awt-native-event-thread/
Sure enough, my symlink was wrong! I’d completely forgotten I’d mucked around moving symlinks, and honestly can’t remember now why I ever did in the first place. Pointing the Current link back to A solved the problem, and IntelliJ starts up just fine.