intelliJ IDEA on FreeBSD 5.4 with JDK 1.5.0-p2

I'm not completely sure why, but i did just install intelliJ IDEA, entered my license key and it worked fine (for as far as i tested it). After closing it down, i cant seem to run it again. JDK is the last ports version available for FreeBSD (for 1.5.0, need Scanner class).

I get the following error msg:
sh idea.sh
java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:493)
at java.nio.charset.Charset.access$300(Charset.java:240)
at java.nio.charset.Charset$4.run(Charset.java:529)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:525)
at com.intellij.openapi.vfs.CharsetToolkit.getAvailableCharsets(CharsetToolkit.java:414)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.encodingExists(CvsApplicationLevelConfiguration.java:85)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.readExternal(CvsApplicationLevelConfiguration.java:78)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doInitJdomExternalizable(ComponentManagerImpl.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initJdomExternalizable(ComponentManagerImpl.java:243)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:230)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:265)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:3)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:44)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:38)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:322)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:305)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl$4.visitContainer(AreaPicoContainerImpl.java:120)
at org.picocontainer.defaults.DefaultPicoContainer.accept(DefaultPicoContainer.java:416)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.accept(AbstractDelegatingMutablePicoContainer.java:134)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl.getComponentInstance(AreaPicoContainerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:22)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:309)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:241)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:278)
at com.intellij.openapi.application.impl.ApplicationImpl.initComponents(ApplicationImpl.java:185)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:207)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:57)
at com.intellij.idea.Main$3.run(Main.java)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
ERROR - ij.components.ComponentManager -
ERROR - ij.components.ComponentManager - JDK: 1.5.0-p2
ERROR - ij.components.ComponentManager - VM: Java HotSpot(TM) Client VM
ERROR - ij.components.ComponentManager - Vendor: Sun Microsystems Inc.
ERROR - ij.components.ComponentManager - OS: FreeBSD
ERROR - ij.components.ComponentManager -
java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:493)
at java.nio.charset.Charset.access$300(Charset.java:240)
at java.nio.charset.Charset$4.run(Charset.java:529)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:525)
at com.intellij.openapi.vfs.CharsetToolkit.getAvailableCharsets(CharsetToolkit.java:414)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.encodingExists(CvsApplicationLevelConfiguration.java:85)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.readExternal(CvsApplicationLevelConfiguration.java:78)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doInitJdomExternalizable(ComponentManagerImpl.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initJdomExternalizable(ComponentManagerImpl.java:243)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:230)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:265)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:3)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:44)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:38)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:322)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:305)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl$4.visitContainer(AreaPicoContainerImpl.java:120)
at org.picocontainer.defaults.DefaultPicoContainer.accept(DefaultPicoContainer.java:416)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.accept(AbstractDelegatingMutablePicoContainer.java:134)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl.getComponentInstance(AreaPicoContainerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:22)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:309)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:241)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:278)
at com.intellij.openapi.application.impl.ApplicationImpl.initComponents(ApplicationImpl.java:185)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:207)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:57)
at com.intellij.idea.Main$3.run(Main.java)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:493)
at java.nio.charset.Charset.access$300(Charset.java:240)
at java.nio.charset.Charset$4.run(Charset.java:529)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:525)
at com.intellij.openapi.vfs.CharsetToolkit.getAvailableCharsets(CharsetToolkit.java:414)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.encodingExists(CvsApplicationLevelConfiguration.java:85)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.readExternal(CvsApplicationLevelConfiguration.java:78)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doInitJdomExternalizable(ComponentManagerImpl.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initJdomExternalizable(ComponentManagerImpl.java:243)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:230)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:265)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:3)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:44)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:38)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:322)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:305)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl$4.visitContainer(AreaPicoContainerImpl.java:120)
at org.picocontainer.defaults.DefaultPicoContainer.accept(DefaultPicoContainer.java:416)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.accept(AbstractDelegatingMutablePicoContainer.java:134)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl.getComponentInstance(AreaPicoContainerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:22)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:309)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentFromContainer(ComponentManagerImpl.java:149)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:32)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:36)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponents(ComponentManagerImpl.java:261)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:24)
at com.intellij.openapi.application.impl.ApplicationImpl.initComponents(ApplicationImpl.java:185)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:207)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:57)
at com.intellij.idea.Main$3.run(Main.java)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.idea.Main$3@cdc97b,notifier=null,catchExceptions=false,when=1128760069893] on sun.awt.motif.MToolkit@1e9d9b1
ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 5.0.1 Build #3461
ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0-p2
ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
ERROR - com.intellij.ide.IdeEventQueue - OS: FreeBSD
ERROR - com.intellij.ide.IdeEventQueue - Last Action:
ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.idea.Main$3@cdc97b,notifier=null,catchExceptions=false,when=1128760069893] on sun.awt.motif.MToolkit@1e9d9b1
java.lang.NullPointerException
at java.nio.charset.Charset.put(Charset.java:493)
at java.nio.charset.Charset.access$300(Charset.java:240)
at java.nio.charset.Charset$4.run(Charset.java:529)
at java.security.AccessController.doPrivileged(Native Method)
at java.nio.charset.Charset.availableCharsets(Charset.java:525)
at com.intellij.openapi.vfs.CharsetToolkit.getAvailableCharsets(CharsetToolkit.java:414)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.encodingExists(CvsApplicationLevelConfiguration.java:85)
at com.intellij.cvsSupport2.config.CvsApplicationLevelConfiguration.readExternal(CvsApplicationLevelConfiguration.java:78)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doInitJdomExternalizable(ComponentManagerImpl.java:59)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initJdomExternalizable(ComponentManagerImpl.java:243)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:230)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$000(ComponentManagerImpl.java:265)
at com.intellij.openapi.components.impl.ComponentManagerImpl$MyComponentAdapterFactory$1.getComponentInstance(ComponentManagerImpl.java:3)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:44)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:38)
at org.picocontainer.defaults.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:322)
at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:305)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl$4.visitContainer(AreaPicoContainerImpl.java:120)
at org.picocontainer.defaults.DefaultPicoContainer.accept(DefaultPicoContainer.java:416)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.accept(AbstractDelegatingMutablePicoContainer.java:134)
at com.intellij.openapi.extensions.impl.AreaPicoContainerImpl.getComponentInstance(AreaPicoContainerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.instantiateComponent(ComponentManagerImpl.java:22)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:309)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentFromContainer(ComponentManagerImpl.java:149)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:32)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:36)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponents(ComponentManagerImpl.java:261)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:24)
at com.intellij.openapi.application.impl.ApplicationImpl.initComponents(ApplicationImpl.java:185)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:207)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:57)
at com.intellij.idea.Main$3.run(Main.java)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:128)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:62)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


Any advice or tips on how to solve it? or what could have caused it, or if its not solve'able.
Thank you! Maarten Tielemans

2 comments

Solved my problem myself

BEFORE, i edited my idea.sh and added the path to jdk 1.5.0:

JDK_HOME=/usr/local/jdk1.5.0/

Until i realized that if it would run with an earlier version of java, i could still compile using the newer version. So i changed it to:

JDK_HOME=/usr/local/linux-sun-jdk1.4.2/

Then i loaded the linprocfs module, and retried it, with success

kldload linprocfs
sh idea.sh &

And intelliJ IDEA show's up

0

New problem arrose, in intelliJ IDEA /usr/local did disapear, as well as /usr/ports and some others

did a search on google, they adviced to update to 1.5.0, which clearly is not a solution .. then i'm walking in circles. My temp solution is to keep both intellij and (a copy of) jdk 1.5 out of /usr so i dont get errors, but thats against the general structure of the system

0

Please sign in to leave a comment.