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 92795 - NPE when changing attribute in WSDL extensibility element property editor
Summary: NPE when changing attribute in WSDL extensibility element property editor
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: WSDL Tools (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Shivanand Kini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-18 17:50 UTC by Jim Fu
Modified: 2007-02-21 20:27 UTC (History)
0 users

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 Jim Fu 2007-01-18 17:50:05 UTC
tried to re-configure some of the BC’s extensibility element’s attributes 
using WSDL editor, and there is NPE:

(this happens for both new WSDL generated from the wsdl wiz and existing wsdl 
as well)

 

java.lang.NullPointerException

            at org.netbeans.modules.xml.xdm.nodes.Element.getAttributeNode
(Element.java:181)

            at org.netbeans.modules.xml.xdm.nodes.Element.getAttribute
(Element.java:165)

            at 
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.getAttribute
(AbstractDocumentComponent.java:79)

            at 
org.netbeans.modules.xml.wsdl.ui.view.treeeditor.WSDLNamedElementNode.valueChang
ed(WSDLNamedElementNode.java:150)

            at org.netbeans.modules.xml.xam.ComponentEvent$EventType$1.fireEvent
(ComponentEvent.java:51)

            at 
org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireCompleteEventSet
(AbstractModel.java:427)

            at org.netbeans.modules.xml.xam.AbstractModel$Transaction.fireEvents
(AbstractModel.java:389)

            at org.netbeans.modules.xml.xam.AbstractModel.endTransaction
(AbstractModel.java:292)

            at org.netbeans.modules.xml.xam.AbstractModel.endTransaction
(AbstractModel.java:284)

            at 
org.netbeans.modules.xml.wsdl.ui.commands.XMLAttributePropertyAdapter.setValue
(XMLAttributePropertyAdapter.java:56)

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)

            at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)

            at java.lang.reflect.Method.invoke(Method.java:585)

            at org.openide.nodes.PropertySupport$Reflection.setValue
(PropertySupport.java:293)

            at org.openide.explorer.propertysheet.NodePropertyModel.setValue
(NodePropertyModel.java:88)

            at org.openide.explorer.propertysheet.PropUtils.noDlgUpdateProp
(PropUtils.java:565)

            at org.openide.explorer.propertysheet.PropUtils.updateProp
(PropUtils.java:533)

            at org.openide.explorer.propertysheet.PropUtils.updateProp
(PropUtils.java:639)

            at 
org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing
(SheetCellEditor.java:350)

            at 
org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed
(SheetCellEditor.java:217)

            at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1197)

            at 
org.openide.explorer.propertysheet.ComboInplaceEditor.fireActionEvent
(ComboInplaceEditor.java:191)

            at javax.swing.JComboBox.setSelectedItem(JComboBox.java:561)

            at 
org.openide.explorer.propertysheet.ComboInplaceEditor.setSelectedItem
(ComboInplaceEditor.java:171)

            at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:597)

            at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased
(BasicComboPopup.java:808)

            at java.awt.AWTEventMulticaster.mouseReleased
(AWTEventMulticaster.java:232)

            at java.awt.Component.processMouseEvent(Component.java:5488)

            at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)

            at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent
(BasicComboPopup.java:476)

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

            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)

            at java.awt.Container.dispatchEventImpl(Container.java:2010)

            at java.awt.Window.dispatchEventImpl(Window.java:1778)

            at java.awt.Component.dispatchEvent(Component.java:3803)

[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)

            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)

 

nb551 + entpack used: both 01/11/2007 and 01/17/2007 – built from all source.
Comment 1 Shivanand Kini 2007-01-18 19:40:45 UTC
This is a bug from the ui. moving it to wsdltools.
Comment 2 Ritesh Adval 2007-01-19 01:04:45 UTC
Fixed, check for null.
Comment 3 jlautz 2007-02-06 19:09:04 UTC
I cannot verify this fix based on the information provided. Would the reporter
(jfu) please verify this fix, or provide a WSDL file that produced the problem.
Comment 4 jlautz 2007-02-21 20:27:50 UTC
Cannot reproduce this NPE on on Windows XP with EP Gavotte 070220_4 and JDK
1.5.0_10.