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 93701 - NullPointerException in in-line schema import
Summary: NullPointerException in in-line schema import
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-31 18:57 UTC by htt
Modified: 2007-02-12 15:56 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 htt 2007-01-31 18:57:29 UTC
Using 070131_5 with jdk1.6...

Create BPEL module:
  File > New Proj > SOA > Bpel Mod; Finish (BpelModule1)
Create new WSDL Doc:
  right-click Process Files > New > WSDL Doc
  in New WSDL Doc, accept defaults: Next; Next; Finish
Create sample PO.xsd under BpelModule1:
  right-click Process Files > New > File/Folder > XML > Sample Schemas
  select Purchase Order schema; Next; Finish
Open newWSDL.wsdl
In WSDL editor, 
  right-click Types > Add > Inline Schema
  right-click "(No Targetnamespace)" > Add > Import
  in Import, expand By File > BpelModule1 > Process Files
  select newpo.xsd; click OK
  ==> java.lang.NullPointerException
        at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.UIUtilities.findPathFromRoot(UIUtilities.java:208)
        at
org.netbeans.modules.xml.wsdl.ui.view.treeeditor.TreeEditorView.showComponent(TreeEditorView.java:184)
        at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLTreeCategory.showComponent(WSDLTreeCategory.java:124)
        at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLTreeViewMultiViewElement$1.show(WSDLTreeViewMultiViewElement.java:125)
        at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLMultiViewSupport.viewInSwingThread(WSDLMultiViewSupport.java:112)
        at
org.netbeans.modules.xml.wsdl.ui.netbeans.module.WSDLMultiViewSupport.view(WSDLMultiViewSupport.java:70)
        at
org.netbeans.modules.xml.schema.ui.nodes.categorized.newtype.AdvancedSchemaComponentNewType.create(AdvancedSchemaComponentNewType.java:115)
        at org.openide.actions.NewAction.performAction(NewAction.java:79)
        at org.openide.actions.NewAction.access$100(NewAction.java:43)
        at
org.openide.actions.NewAction$ActSubMenuModel.performActionAt(NewAction.java:233)
        at
org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:1000)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
        at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        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 Shivanand Kini 2007-02-06 20:59:50 UTC
Fixed. 
Comment 2 htt 2007-02-07 15:58:37 UTC
Verified in 070207_5.
Comment 3 kozlov 2007-02-12 15:56:36 UTC
Keyword "EP551_BETA_RN" was removed as the issue was fixed.