StrutsAssistant: NullPointerException in StrutsGraphSynchronizer.java?

I recently updated to StrutsAssistant 1.20 and started getting NullPointerExceptions any time I try to open my struts-config.xml file. I am using Idea 5.1.2 (build 4267). Any ideas what's going on?

Thanks,

Aaron

The stack trace is:

No message
java.lang.NullPointerException
at com.intellij.struts.diagram.StrutsGraphSynchronizer.createCell(StrutsGraphSynchronizer.java:691)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.createEdge(StrutsGraphSynchronizer.java:581)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.updateProperty(StrutsGraphSynchronizer.java:321)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.updateCell(StrutsGraphSynchronizer.java:278)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.createCell(StrutsGraphSynchronizer.java:664)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.processActions(StrutsGraphSynchronizer.java:467)
at com.intellij.struts.diagram.StrutsGraphSynchronizer.synchronize(StrutsGraphSynchronizer.java:413)
at com.intellij.struts.diagram.StrutsDiagram.(StrutsDiagram.java:167) at com.intellij.struts.diagram.StrutsDiagramProf.]]>(StrutsDiagramProf.java:23)
at com.intellij.struts.diagram.DiagramEditorProvider.createEditor(DiagramEditorProvider.java:150)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:176)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$4.run(FileEditorManagerImpl.java)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:101)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:9)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:46)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl(FileEditorManagerImpl.java:82)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:288)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:2)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl$5.run(FileEditorManagerImpl.java:6)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:9)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:13)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.openFileAskingType(OpenFileDescriptor.java:135)
at com.intellij.openapi.fileEditor.OpenFileDescriptor.navigate(OpenFileDescriptor.java:102)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.navigate(TreeWrapperPsiElement.java:81)
at com.intellij.ide.projectView.impl.nodes.BasePsiNode.navigate(BasePsiNode.java:42)
at com.intellij.util.OpenSourceUtil.navigate(OpenSourceUtil.java:41)
at com.intellij.util.OpenSourceUtil.openSourcesFrom(OpenSourceUtil.java:29)
at com.intellij.util.EditSourceOnDoubleClickHandler$1.mouseClicked(EditSourceOnDoubleClickHandler.java:49)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:212)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:211)
at java.awt.Component.processMouseEvent(Component.java:5491)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at com.intellij.util.ui.Tree.processMouseEvent(Tree.java:70)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3901)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
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(EventDispatchThread.java:242)
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)

1 comment
Comment actions Permalink

I have exactly the same problem. After some investigations I found the solution to this issue.

1. I moved the content of the WEB-INF directory from ./build/WEB-INF to ./WEB-INF.
2. I devided the struts-config.xml into to two separate config files.
3. This modification was not reported to the IDE settings.

After fixing the "Deployment Descriptors"-Section in the Web Module Settings StrutsAssistant worked correctly.

0

Please sign in to leave a comment.