This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Navigator window causes exceptions | ||
---|---|---|---|
Product: | xml | Reporter: | Mikhail Matveev <mikhailmatveev> |
Component: | Schema Tools | Assignee: | Samaresh Panda <samaresh> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | tonybeckham |
Priority: | P1 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 108077 |
Description
Mikhail Matveev
2007-04-12 15:41:06 UTC
I'm not able to reproduce this. Are you able to reproduce this consistently? In any case, I'll take care of the NPE. I can reproduce this with the following system: NetBeans IDE Dev (Build 200704091800) 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 Mac OS X version 10.4.9 running on i386 en_US (nb); MacRoman I also get this exception when opening the XML document the second time: java.lang.AssertionError at org.netbeans.modules.xml.schema.abe.navigator.NavigatorContent.getAXIModel(NavigatorContent.java:169) at org.netbeans.modules.xml.schema.abe.navigator.NavigatorContent.show(NavigatorContent.java:87) at org.netbeans.modules.xml.schema.abe.navigator.ABENavigatorPanel.resultChanged(ABENavigatorPanel.java:85) at org.openide.util.lookup.SimpleProxyLookup.checkLookup(SimpleProxyLookup.java:89) at org.openide.util.lookup.SimpleProxyLookup.access$000(SimpleProxyLookup.java:36) at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.checkResult(SimpleProxyLookup.java:161) at org.openide.util.lookup.SimpleProxyLookup$ProxyResult.allInstances(SimpleProxyLookup.java:233) at org.netbeans.modules.xml.text.navigator.XMLNavigatorPanel$1.resultChanged(XMLNavigatorPanel.java:43) at org.netbeans.modules.xml.text.navigator.XMLNavigatorPanel.panelActivated(XMLNavigatorPanel.java:70) at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:267) at org.netbeans.modules.navigator.NavigatorController.access$800(NavigatorController.java:62) [catch] at org.netbeans.modules.navigator.NavigatorController$ActNodeSetter.run(NavigatorController.java:453) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) This assertion error looks similar to the other error message, but like I said I do get the npe when doing the last step and it is the same as the one posted. I didn't realize that 2 errors were posted originally, so I can say that I can reproduce every time. I am getting exceptions very frequently once the steps to reproduce are performed. Even just switching between source, schema, and design views throws: java.lang.NullPointerException at org.netbeans.modules.xml.schema.abe.navigator.ABENavigatorPanel.resultChanged(ABENavigatorPanel.java:80) at org.openide.util.lookup.SimpleProxyLookup.checkLookup(SimpleProxyLookup.java:89) at org.openide.util.lookup.SimpleProxyLookup.lookup(SimpleProxyLookup.java:130) at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:245) at org.netbeans.modules.navigator.NavigatorController.access$800(NavigatorController.java:64) [catch] at org.netbeans.modules.navigator.NavigatorController$ActNodeSetter.run(NavigatorController.java:466) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Also, creating a new web project throws this exception when you click finish: java.lang.NullPointerException at org.netbeans.modules.xml.schema.abe.navigator.ABENavigatorPanel.panelDeactivated(ABENavigatorPanel.java:73) at org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:264) at org.netbeans.modules.navigator.NavigatorController.access$800(NavigatorController.java:64) [catch] at org.netbeans.modules.navigator.NavigatorController$ActNodeSetter.run(NavigatorController.java:466) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Restarting the IDE will allow you to create new projects and files without exceptions, but once you run into into one, almost any view or file switch/open/new throws exceptions and you must restart to be able to use at all. Module: xml/schema/abe /cvs/xml/schema/abe/src/org/netbeans/modules/xml/schema/abe/navigator/ABENavigatorPanel.java,v new revision: 1.4; previous revision: 1.3 /cvs/xml/schema/abe/src/org/netbeans/modules/xml/schema/abe/navigator/NavigatorContent.java,v new revision: 1.5; previous revision: 1.4 Module: xml/text-edit /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/navigator/XMLNavigatorPanel.java,v new revision: 1.12; previous revision: 1.11 fix RESOLVED in build: NetBeans IDE Dev (Build 070417) 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 Mac OS X version 10.4.9 running on i386 en_US (nb); MacRoman |