Stack traces on startup with 3339

Is anyone else who has a project with JSP files in it getting these stack
traces on startup? I tried clearing my caches and even the local VCS. I
believe that they might be what is preventing the project view from opening
(it's just missing under the Project tab). IIRC, the problem started with
3326, but I didn't save the stack traces, so I'm not sure if they're the
same.

--Mike

No message
java.lang.NullPointerException
at com.intellij.psi.impl.source.tree.TreeUtil.addChildren(TreeUtil.java:185)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32)
at com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0)
at com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91)
at com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.(JspJavaTextGenerator.java:75) at com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108) at com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136) at com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3) at com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6) at com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77) at com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49) at com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50) at com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25) at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18) at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7) at com.intellij.ide.util.treeView.AbstractTreeBuilder.c(AbstractTreeBuilder.java:212) at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:375) at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47) at com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9) at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5) at com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:103) at com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:24) at com.intellij.ide.util.treeView.AbstractTreeBuilder$MyExpansionListener.treeExpanded(AbstractTreeBuilder.java:21) at javax.swing.JTree.fireTreeExpanded(JTree.java:2245) at javax.swing.JTree.setExpandedState(JTree.java:3006) at javax.swing.JTree.expandPath(JTree.java:1742) at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:160) at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:169) at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:169) at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:139) at com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:134) at com.intellij.ide.projectView.impl.AbstractProjectViewPane.restoreState(AbstractProjectViewPane.java:112) at com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane.initTree(AbstractProjectViewPSIPane.java:4) at com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$5.run(AbstractProjectViewPSIPane.java:4) at com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:51) at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:14) at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:69) at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:30) at com.intellij.idea.IdeaApplication.d(IdeaApplication.java:24) at com.intellij.idea.IdeaApplication.access$500(IdeaApplication.java:62) at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:5) at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7) 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:18) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16) 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) com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$4 java.lang.NullPointerException at com.intellij.psi.impl.source.tree.TreeUtil.addChildren(TreeUtil.java:185) at com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32) at com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12) at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12) at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0) at com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31) at com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13) at com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91) at com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.]]>(JspJavaTextGenerator.java:75)
at com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3)
at com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25)
at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18)
at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:191)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5)
at com.intellij.ide.util.treeView.AbstractTreeUpdater$1.run(AbstractTreeUpdater.java:2)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
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:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)


16 comments
Comment actions Permalink

It was that way in the last build. All I have now is the packages,
nothing else. Doh. I submitted the stack traces, but am too lazy too
look them up.

mkwerle_no_spam@nospam.yahoo.com wrote:

Is anyone else who has a project with JSP files in it getting these
stack traces on startup? I tried clearing my caches and even the
local VCS. I believe that they might be what is preventing the
project view from opening (it's just missing under the Project tab).
IIRC, the problem started with 3326, but I didn't save the stack
traces, so I'm not sure if they're the same.

>

--Mike

>

No message
java.lang.NullPointerException
at
com.intellij.psi.impl.source.tree.TreeUtil.addChildren(TreeUtil.java:185)
at
com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32)

>

at
com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12)

>

at
com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12)

>

at
com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0)

>

at
com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31)

>

at
com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13)

>

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91)

>

at
com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.<init>(JspJavaTextGenerator.java:75)

>

at
com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108)
at
com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136)

>

at
com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3)
at
com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6)

>

at
com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77)
at
com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49)

>

at
com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50)

>

at
com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25)

>

at
com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18)

>

at
com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.c(AbstractTreeBuilder.java:212)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:375)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47)

>

at
com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9)

>

at
com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:103)

>

at
com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:24)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder$MyExpansionListener.treeExpanded(AbstractTreeBuilder.java:21)

>

at javax.swing.JTree.fireTreeExpanded(JTree.java:2245)
at javax.swing.JTree.setExpandedState(JTree.java:3006)
at javax.swing.JTree.expandPath(JTree.java:1742)
at
com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:160)
at
com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:169)
at
com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:169)
at
com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:139)
at
com.intellij.ide.util.treeView.TreeState.applyTo(TreeState.java:134)
at
com.intellij.ide.projectView.impl.AbstractProjectViewPane.restoreState(AbstractProjectViewPane.java:112)

>

at
com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane.initTree(AbstractProjectViewPSIPane.java:4)

>

at
com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$5.run(AbstractProjectViewPSIPane.java:4)

>

at
com.intellij.ide.startup.impl.StartupManagerImpl.a(StartupManagerImpl.java:51)

>

at
com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.java:14)

>

at
com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:69)

>

at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:30)
at com.intellij.idea.IdeaApplication.d(IdeaApplication.java:24)
at
com.intellij.idea.IdeaApplication.access$500(IdeaApplication.java:62)
at
com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:5)

>

at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)

>

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:18)

>

at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

>

com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$4
java.lang.NullPointerException
at
com.intellij.psi.impl.source.tree.TreeUtil.addChildren(TreeUtil.java:185)
at
com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32)

>

at
com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12)

>

at
com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12)

>

at
com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0)

>

at
com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31)

>

at
com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13)

>

at
com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91)

>

at
com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.<init>(JspJavaTextGenerator.java:75)

>

at
com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108)
at
com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136)

>

at
com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3)
at
com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6)

>

at
com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77)
at
com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49)

>

at
com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50)

>

at
com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25)

>

at
com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18)

>

at
com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:191)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:124)

>

at
com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47)

>

at
com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9)

>

at
com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5)

>

at
com.intellij.ide.util.treeView.AbstractTreeUpdater$1.run(AbstractTreeUpdater.java:2)

>

at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at
com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)

>

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:18)

>

at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)

>
>

0
Comment actions Permalink

On a whim, I decided to create a new workspace file (renamed my old one),
and the problem went away, probably due to the fact that the state of the
project tree was no longer remembered. Now, when I try to open the folder
in the project tree with the JSP files, I get the stack trace below. Is
this a common problem? Or would it be useful to try and figure out exactly
which file and what about it causes this?

--Mike

Error during dispatching of java.awt.event.MouseEvent[MOUSE_PRESSED,(81,257),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1]
on frame0
java.lang.NullPointerException
at com.intellij.psi.impl.source.tree.TreeUtil.addChildren(TreeUtil.java:185)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32)
at com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0)
at com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91)
at com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.]]>(JspJavaTextGenerator.java:75)
at com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3)
at com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25)
at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18)
at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.c(AbstractTreeBuilder.java:212)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:375)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.expandNodeChildren(AbstractTreeBuilder.java:103)
at com.intellij.ide.projectView.BaseProjectTreeBuilder.expandNodeChildren(BaseProjectTreeBuilder.java:24)
at com.intellij.ide.util.treeView.AbstractTreeBuilder$MyExpansionListener.treeExpanded(AbstractTreeBuilder.java:21)
at javax.swing.JTree.fireTreeExpanded(JTree.java:2245)
at javax.swing.JTree.setExpandedState(JTree.java:3006)
at javax.swing.JTree.expandPath(JTree.java:1742)
at javax.swing.plaf.basic.BasicTreeUI.toggleExpandState(BasicTreeUI.java:2149)
at javax.swing.plaf.basic.BasicTreeUI.handleExpandControlClick(BasicTreeUI.java:2136)
at javax.swing.plaf.basic.BasicTreeUI.checkForClickInExpandControl(BasicTreeUI.java:2090)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3433)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3403)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
at java.awt.Component.processMouseEvent(Component.java:5485)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
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:3889)
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:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:41)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)


0
Comment actions Permalink

Hi All!

Please try to figure out which jsp file cause this issue.

Thanks,

IK

Andrei Oprea wrote:

Hello mkwerle_no_spam@nospam.yahoo.com,

I get it as well.
http://www.intellij.net/tracker/idea/viewSCR?publicId=47330

Andrei

0
Comment actions Permalink

Ok -- I can see why your test cases didn't catch it! The offending JSP file is truly abominable (it's from an old application in maintenance mode, so I can't change it, but I often need to reference the code). However, no matter how bad the file, it should not cause an exception that prevents the project tree from displaying. :( So, even before the JSP parsing is fixed, it would be nice if that problem could be fixed independently.

Generally speaking, the problem seems to be a closing tag with no opening tag. However, simple examples of that do not cuase the problem. I think that there have to be scriptlets surrounding at least some of the HTML tags, and it also seems that the whole table must be contained in a custom tag, but I didn't have time to isolate the exact cause. To reproduce the problem, stub-out appropriate classes and a TLD that matches the attached JSP file and delete the " ]]>" tag with the comment about deleting the line. Immediately, you'll get exceptions being thrown (actually, changing almost any part of this file results in exceptions), and if you close IDEA, the project pane will not draw when you open it back up.

Sorry that the JSP file really makes no sense at all -- part of why is that the HTML is really that bad, and another part is that I had to scrub it of IP before I could send it legally, so the sections that actually do something are missing or altered. If I had time, I would have made a test project to re-create the error.

--Mike


Attachment(s):
BadJSP.jsp

0
Comment actions Permalink

Thanks a lot! We've been able to reproduce exception so fixing hopefully
won't take a long.
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Thank you, Maxim! I look forward to the fix.

--Mike


0
Comment actions Permalink

mkwerle_no_spam@nospam.yahoo.com wrote:

Is anyone else who has a project with JSP files in it getting these
stack traces on startup? I tried clearing my caches and even the local
VCS. I believe that they might be what is preventing the project view


Snap - got 2-3 different variations on these...

0
Comment actions Permalink

I've some "bad" JSP's too. If you need them - I can post them here. They represent parts of my page, so unclosed tags can be there easily...

One of them is attached. On every text change I get these:

com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$4: Operation is not supported
java.lang.RuntimeException: Operation is not supported
at com.intellij.psi.impl.source.parsing.jsp.ConditionalLexer.start(ConditionalLexer.java:132)
at com.intellij.lexer.MergingLexerAdapter.start(MergingLexerAdapter.java:29)
at com.intellij.lexer.LexerBase.restore(LexerBase.java:15)
at com.intellij.lexer.FilterLexer.restore(FilterLexer.java:102)
at com.intellij.psi.impl.source.parsing.tabular.ParserPosition.restorePosition(ParserPosition.java:1)
at com.intellij.psi.impl.source.parsing.tabular.impl.ParserStackImpl.restoreLastPosition(ParserStackImpl.java:16)
at com.intellij.psi.impl.source.parsing.tabular.impl.ParserImpl.a(ParserImpl.java:236)
at com.intellij.psi.impl.source.parsing.tabular.impl.ParserImpl.parse(ParserImpl.java:33)
at com.intellij.psi.impl.source.parsing.tabular.impl.ParserImpl.parse(ParserImpl.java:357)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJsp(JspxParsing.java:32)
at com.intellij.psi.impl.source.tree.JspElementType$1.parseContents(JspElementType.java:12)
at com.intellij.psi.impl.source.tree.ChameleonElement.transform(ChameleonElement.java:12)
at com.intellij.psi.impl.source.parsing.ChameleonTransforming.transform(ChameleonTransforming.java:0)
at com.intellij.psi.impl.source.tree.ChameleonElement.getTransformedLastOrSelf(ChameleonElement.java:31)
at com.intellij.psi.impl.source.tree.SharedImplUtil.getLastChild(SharedImplUtil.java:13)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.getLastChild(TreeWrapperPsiElement.java:91)
at com.intellij.psi.impl.source.jsp.JspJavaTextGenerator.]]>(JspJavaTextGenerator.java:75)
at com.intellij.psi.impl.source.jsp.JspxParsing.a(JspxParsing.java:108)
at com.intellij.psi.impl.source.jsp.JspxParsing.parseJspDeclarations(JspxParsing.java:136)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass$2.run(JspClass.java:3)
at com.intellij.psi.impl.source.jsp.jspJava.NonReentrantExecutor.execute(NonReentrantExecutor.java:6)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.b(JspClass.java:77)
at com.intellij.psi.impl.source.jsp.jspJava.JspClass.synchronizeWithXmlTree(JspClass.java:49)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getJavaRoot(JspxFileImpl.java:50)
at com.intellij.psi.impl.source.jsp.JspxFileImpl.getClasses(JspxFileImpl.java:25)
at com.intellij.ide.projectView.impl.ClassesTreeStructureProvider.modify(ClassesTreeStructureProvider.java:18)
at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:7)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.b(AbstractTreeBuilder.java:191)
at com.intellij.ide.util.treeView.AbstractTreeBuilder.updateSubtree(AbstractTreeBuilder.java:47)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.updateSubtree(AbstractTreeUpdater.java:9)
at com.intellij.ide.util.treeView.AbstractTreeUpdater.performUpdate(AbstractTreeUpdater.java:5)
at com.intellij.ide.util.treeView.AbstractTreeUpdater$1.run(AbstractTreeUpdater.java:2)
at com.intellij.util.Alarm$1.run(Alarm.java:85)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:227)
at com.intellij.openapi.application.impl.LaterInvocatorEx$FlushQueue.run(LaterInvocatorEx.java:7)
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:18)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:37)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:16)
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)


And by the way. I've got "Unhandled Exceptions" underlining in JSP's - is that correct? It's so annoying...



Attachment(s):
userInfo.jsp
0
Comment actions Permalink

Alexander Babaev wrote:

I've some "bad" JSP's too. If you need them - I can post them here.
They represent parts of my page, so unclosed tags can be there
easily...


Do you have a web module set up as well? I notice I have some bad JSPs,
but I also don't (currently) have my project setup to refer to them as a
webmodule.

I wonder if we can convince Maxim to push a new EAP that fixes the
killing of the project pane....

0
Comment actions Permalink

Mark Derricutt wrote:

Do you have a web module set up as well? I notice I have some bad JSPs,
but I also don't (currently) have my project setup to refer to them as a
webmodule.


Ug - just converted my module over to a web module, now I'm getting
StackOverflow exceptions everywhere :( ( this is under the previous EAP )

0
Comment actions Permalink

Back on 3316, can't afford to have my IDE horribly unstable right now :(

0
Comment actions Permalink

May be, web module's setup is incorrect. And what is needed there? What critical options can break JSP editing?

0
Comment actions Permalink

Alexander Babaev wrote:

com.intellij.ide.projectView.impl.AbstractProjectViewPSIPane$4: Operation is not supported
java.lang.RuntimeException: Operation is not supported
at com.intellij.psi.impl.source.parsing.jsp.ConditionalLexer.start(ConditionalLexer.java:132)
at com.intellij.lexer.MergingLexerAdapter.start(MergingLexerAdapter.java:29)
at com.intellij.lexer.LexerBase.restore(LexerBase.java:15)


Same here. Heading back to 3326, 3339 is unusable. Sorry.

Sascha

0
Comment actions Permalink

Waiting for fixes. Posting issues :)

0
Comment actions Permalink

Alexander, could you please send me this file (ik user on intellij.com).

Alexander Babaev wrote:
> Waiting for fixes. Posting issues :)

Thanks,
IK

0

Please sign in to leave a comment.