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 177369 - NullPointerException at org.netbeans.modules.xml.multiview.XmlMultiViewElement.componentShowing
Summary: NullPointerException at org.netbeans.modules.xml.multiview.XmlMultiViewElemen...
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XML Multiview (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords:
: 177776 178371 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-22 04:11 UTC by Michal Mocnak
Modified: 2011-10-26 13:57 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162646


Attachments
stacktrace (5.26 KB, text/plain)
2009-11-22 04:11 UTC, Michal Mocnak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Mocnak 2009-11-22 04:11:37 UTC
Build: NetBeans IDE Dev (Build 091122-6522a52efb4a)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.1-b02-90, Java(TM) SE Runtime Environment, 1.6.0_15-b03-219
OS: Mac OS X, 10.6.2, x86_64

User Comments:
mmocnak: Create java ee 6 EAR with all modules included -> then open the application-client.xml -> NPE is occured ... probably it's related with updated xml schemas



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.xml.multiview.XmlMultiViewElement.componentShowing(XmlMultiViewElement.java:86)
        at org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing(MultiViewPeer.java:199)
        at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentShowing(MultiViewCloneableTopComponent.java:119)
        at org.openide.windows.WindowManager.componentShowing(WindowManager.java:332)
        at org.netbeans.core.windows.WindowManagerImpl.componentShowing(WindowManagerImpl.java:1022)
        at org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:161)
Comment 1 Michal Mocnak 2009-11-22 04:11:40 UTC
Created attachment 91482 [details]
stacktrace
Comment 2 Michal Mocnak 2009-11-22 04:12:33 UTC
Upgrading to P1 -> it should be fixed in FCS
Comment 3 mslama 2009-11-23 02:22:07 UTC
There seems to be problem that inner editor is not created but it should if component is going to be visible.
Comment 4 Milan Kuchtiak 2009-11-23 06:07:38 UTC
I cannot reproduce this issue on my linux :

Tested before and after schema updates (build 091123)
Comment 5 Petr Jiricka 2009-11-23 09:05:09 UTC
I also can not reproduce.

Product Version: NetBeans IDE Dev (Build web-main-2148-on-091123)
Java: 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-92
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)
Comment 6 Michal Mocnak 2009-11-23 10:11:00 UTC
Actually i am not able to reproduce it as well now. It's strange but functional ;o) Closing as works for me. I will check it in RC build when it will be ready.
Comment 7 David Konecny 2010-02-02 15:21:22 UTC
Happens to me regularly (on the same XML file) and it is highly annoying. First time it sometimes works - try to close file and reopen it, try the same xml file from several proejcts.
Comment 8 David Konecny 2010-02-02 15:21:37 UTC
*** Bug 178371 has been marked as a duplicate of this bug. ***
Comment 9 David Konecny 2010-02-02 17:24:19 UTC
Potential cause of this problem might be that application-client.xml has MultiView DO but only XML view is available (UI was removed/disabled a while ago). Multi view support should still cope with that or throw invalid state exception much earlier.

Independent on that perhaps application-client.xml DO should not be multi view based - simple to removed but some of the features might be lost, eg. annotating xml file's node whern there is parsing error; possibly some actions; ... unless there is some replacement (use XmlDataObject instead of XmlMultiViewDataObject). MilanK you seems to be author of some of the multi view files - any suggestion?
Comment 10 Milan Kuchtiak 2010-02-03 02:08:45 UTC
Trying to reproduce unsuccessfully. Is that still the same exception ?
Comment 11 David Konecny 2010-02-03 02:13:31 UTC
Yes, check exceptions attached to issues closed as duplicate of this one.
Comment 12 Milan Kuchtiak 2010-02-03 03:55:47 UTC
There were some changes recently in EditorSupport API.
Though I don't understand entirely the work-flow now, the following change should help: 
 http://hg.netbeans.org/main/rev/ 0c932f25c1b9
Comment 13 Quality Engineering 2010-02-03 21:57:35 UTC
Integrated into 'main-golden', will be available in build *201002040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0c932f25c1b9
User: mkuchtiak@netbeans.org
Log: #177369: fixing NPE
Comment 14 Svata Dedic 2011-10-26 13:57:33 UTC
*** Bug 177776 has been marked as a duplicate of this bug. ***