Project Roots won't open

I've got a problem. I needed to remove one jar from my classpath, and add
a different one.

My project consists of 1 web module.

I opened Project Settings and clicked on Project Roots. On the left side,
under my module, it listed all my jar files. I clicked on a jar file, and
on the right side, it showed my the Classes tree (I had not attached source
or javadoc). I selected the jar file from that tree and clicked "Detach".
That's when I got an error (which I submitted via the Exception Reporter)
and then the Project Roots dialog never redrew itself. In retrospect, I
should have deleted the item from the list on the left, but it's too late
now.

Now, everytime I click on the Project Roots icon, I get the following error
(which I've also submitted, but I'm quoting here because I don't know the
ticket number). I need to make my jar substitution, but this error is preventing
me. Is there anything I can do to keep working?

Stack trace:
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(77,123),button=1,modifiers=Button1,clickCount=1]
on dialog0
java.lang.NullPointerException
at com.intellij.openapi.util.io.FileUtil.toSystemIndependentName(FileUtil.java:446)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootConfigurable.trancateModuleLibraryName(ProjectRootConfigurable.java:226)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootConfigurable.a(ProjectRootConfigurable.java:55)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootConfigurable.b(ProjectRootConfigurable.java:164)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootConfigurable.reloadTree(ProjectRootConfigurable.java:227)
at com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootConfigurable.reset(ProjectRootConfigurable.java:17)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.reset(ProjectConfigurableWrapper.java:24)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.reset(DefaultSearchableConfigurable.java:19)
at com.intellij.openapi.options.ex.SingleConfigurableEditor.]]>(SingleConfigurableEditor.java:12)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:51)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$900(ControlPanelSettingsEditor.java:48)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:8)
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:126)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:106)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:98)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:38)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:46)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:743)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:13)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:9)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:0)
at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:52)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:94)
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:126)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:106)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:98)
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)

Tobin


2 comments
Comment actions Permalink

Is there anything I can do to keep working?


See http://www.intellij.net/forums/thread.jspa?threadID=235288 where Sascha Weinreuter explains a way to fix your project.

Bas

0
Comment actions Permalink

Thanks Bas (and Sascha). That was it.

Tobin


0

Please sign in to leave a comment.