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.

Bug 100800 - Navigator window causes exceptions
Summary: Navigator window causes exceptions
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks: 108077
  Show dependency tree
 
Reported: 2007-04-12 15:41 UTC by Mikhail Matveev
Modified: 2007-06-25 21:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2007-04-12 15:41:06 UTC
1. Create new project.
2. Show Navigator window.
3. Create new XML schema.
4. Create new XML document.
5. Close schema, document and Navigator window.
6. Reopen Navigator.
6. Reopen document.
7  Reopen schema.
7. Switch to document.

Result: exception below comes.
In similar situations, two other exceptions may appear. Their stacktrace is
below too.

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.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:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)




java.lang.NullPointerException
	at
org.netbeans.modules.xml.text.navigator.XMLNavigatorPanel$1.resultChanged(XMLNavigatorPanel.java:43)
	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.schema.abe.navigator.ABENavigatorPanel.resultChanged(ABENavigatorPanel.java:80)
	at
org.netbeans.modules.xml.schema.abe.navigator.ABENavigatorPanel.panelActivated(ABENavigatorPanel.java:68)
	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:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

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.lookup(SimpleProxyLookup.java:130)
	at
org.netbeans.modules.navigator.NavigatorController.updateContext(NavigatorController.java:243)
	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:597)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Samaresh Panda 2007-04-13 21:25:27 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.
Comment 2 tonybeckham 2007-04-16 17:24:31 UTC
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.
Comment 3 tonybeckham 2007-04-16 17:49:26 UTC
I didn't realize that 2 errors were posted originally, so I can say that I can
reproduce every time.
Comment 4 tonybeckham 2007-04-16 20:21:14 UTC
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)

Comment 5 tonybeckham 2007-04-16 20:26:25 UTC
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.
Comment 6 Samaresh Panda 2007-04-16 20:31:10 UTC
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
Comment 7 tonybeckham 2007-04-17 17:09:31 UTC
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