InteliJ 5.1.2 (build 4267) creshes upon build of a project
Hi
I am using InteliJ 5.1.2,
When I try to build a project, or compile a file, I get the problem below,
I cleaned all the cache files, which didn't help, and reinstalled IntelliJ, which did help.
However, the problem returned today.
Below is the trace from the logs.
Does anyone have an Idea?
BTW, in the "about" it says JDK 1.5.0.07
Thanks
Dov
-
2007-08-01 11:50:34,361 INFO - lication.impl.LaterInvocatorEx - leaveModal:com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog[dialog0,413,239,478x501,invalid,hidden,layout=java.awt.BorderLayout,modal,title=Clear Read-only Status,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=javax.swing.JRootPane[,4,30,470x467,invalid,layout=com.incors.plaf.alloy.bk,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true]
2007-08-01 11:50:39,489 INFO - lij.localVcs.impl.LocalVcsImpl - purged 0 items
2007-08-01 11:50:39,719 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\cdm-server.iml: 0
2007-08-01 11:50:39,739 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\start-server.iml: 20
2007-08-01 11:50:39,739 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\Scheduler\scheduler.iml: 0
2007-08-01 11:50:39,739 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\console-studio.iml: 0
2007-08-01 11:50:39,749 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\Workflow\workflow.iml: 10
2007-08-01 11:50:39,769 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\cdm.ipr: 10
2007-08-01 11:50:40,039 INFO - ject.impl.BaseFileConfigurable - Time to save D:\p4client\cdm\CDM\5.7.00\cdm.iws: 130
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(77,344),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 5.1.2 Build #4267
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.5.0_07
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - Last Action: Compile
2007-08-01 11:50:50,484 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(77,344),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
java.lang.NullPointerException
at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.getToolsPath(JavaSdkImpl.java:17)
at com.intellij.openapi.projectRoots.impl.ProjectJdkImpl.getToolsPath(ProjectJdkImpl.java:56)
at com.intellij.compiler.impl.javaCompiler.JavacCompiler.checkCompiler(JavacCompiler.java:128)
at com.intellij.compiler.impl.javaCompiler.JavaCompiler.validateConfiguration(JavaCompiler.java:13)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:29)
at com.intellij.compiler.impl.CompileDriver.compile(CompileDriver.java:714)
at com.intellij.compiler.CompilerManagerImpl.compile(CompilerManagerImpl.java:48)
at com.intellij.compiler.CompilerManagerImpl.compile(CompilerManagerImpl.java:17)
at com.intellij.compiler.actions.CompileAction.doAction(CompileAction.java:22)
at com.intellij.compiler.actions.CompileActionBase.actionPerformed(CompileActionBase.java:6)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:9)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:22)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:258)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:97)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:3)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:56)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:94)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:132)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Please sign in to leave a comment.
Hello Dov,
Please ensure that the JDK you are using for your project is configured correctly
and points to a full JDK installation rather than a JRE.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry and thank you for the fast response
I verified all my defined JDKs (I have a few)
- I had one empty definition, and for the rest, I may have defined them while installing the JDK, so in the time of definition not all JARs were on the disk yet,
- Anyway, I re defined them, and it doesn't seem to help, Still the same exception
java.lang.NullPointerException
at com.intellij.openapi.projectRoots.impl.JavaSdkImpl.getToolsPath(JavaSdkImpl.java:17)
at com.intellij.openapi.projectRoots.impl.ProjectJdkImpl.getToolsPath(ProjectJdkImpl.java:56)
at com.intellij.compiler.impl.javaCompiler.JavacCompiler.checkCompiler(JavacCompiler.java:128)
etc ...
I am sure if I reinstall the problem will be gone for a while, but since it already came back after reinstall I'd really like to find the cause
Thanks
Dov
One more thing, it happens to all my projects, once one doesnt work, so do the others
Hi Dmitry
You were absolutely right, though it is more complicated than that
When I defined the JDK in IDEA, I in parallel installed the JDK on teh disk, so at the time of definition the JDK filed were not complete
However, since than the JDK definition remained corrupted under IDEA, changing the JDK didn't help, the only thing that helped was deleting teh JDK definition in IDEA and redefining it.
I had the impression this effects other projects since I had two projects with different JDKs, but for both the JDK was installed while defined in IDEA (don't ask why, the explanation is too long)
You are indeed a D.J.
Thanks
Dov