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 137679 - NPEs in mapper when WSDL is not present
Summary: NPEs in mapper when WSDL is not present
Status: VERIFIED WORKSFORME
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Permyakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-19 10:13 UTC by Kirill Sorokin
Modified: 2008-10-15 01:23 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 Kirill Sorokin 2008-06-19 10:13:24 UTC
Reproduced on a build from NetBeans 6.1 fixes repository. Steps to reproduce are fairly simple:
1) Create a synchronous sample
2) Delete the WSDL file
3) Open the BPEL process, select the assign, switch to mapper.

The following two NPEs will be thrown:

ava.lang.NullPointerException
	at java.util.ArrayList.addAll(ArrayList.java:473)
	at org.netbeans.modules.bpel.mapper.tree.models.VariableTreeModel.getChildren(VariableTreeModel.java:181)
	at org.netbeans.modules.bpel.mapper.tree.models.EmptyTreeModel.getChildren(EmptyTreeModel.java:56)
	at org.netbeans.modules.bpel.mapper.tree.MapperSwingTreeModel.getChildren(MapperSwingTreeModel.java:261)
	at org.netbeans.modules.bpel.mapper.tree.MapperSwingTreeModel.isLeaf(MapperSwingTreeModel.java:106)
	at javax.swing.plaf.basic.BasicTreeUI$NodeDimensionsHandler.getNodeDimensions(BasicTreeUI.java:2693)
	at javax.swing.tree.AbstractLayoutCache.getNodeDimensions(AbstractLayoutCache.java:475)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.updatePreferredSize(VariableHeightLayoutCache.java:1342)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1478)
	at javax.swing.tree.VariableHeightLayoutCache$TreeStateNode.expand(VariableHeightLayoutCache.java:1270)
	at javax.swing.tree.VariableHeightLayoutCache.ensurePathIsExpanded(VariableHeightLayoutCache.java:966)
	at javax.swing.tree.VariableHeightLayoutCache.setExpandedState(VariableHeightLayoutCache.java:164)
	at javax.swing.plaf.basic.BasicTreeUI.updateExpandedDescendants(BasicTreeUI.java:1556)
	at javax.swing.plaf.basic.BasicTreeUI$Handler.treeExpanded(BasicTreeUI.java:3649)
	at javax.swing.JTree.fireTreeExpanded(JTree.java:2235)
	at javax.swing.JTree.setExpandedState(JTree.java:3006)
	at javax.swing.JTree.expandPath(JTree.java:1742)
	at org.netbeans.modules.bpel.mapper.model.GraphExpandProcessor.expandVariablesNode(GraphExpandProcessor.java:346)
	at org.netbeans.modules.bpel.mapper.model.GraphExpandProcessor.expandGraph(GraphExpandProcessor.java:85)
[catch] at
org.netbeans.modules.bpel.mapper.multiview.DesignContextControllerImpl2$3.run(DesignContextControllerImpl2.java:358)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	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)

java.lang.NullPointerException
	at java.util.ArrayList.addAll(ArrayList.java:473)
	at org.netbeans.modules.bpel.mapper.tree.models.VariableTreeModel.getChildren(VariableTreeModel.java:181)
	at org.netbeans.modules.bpel.mapper.tree.models.EmptyTreeModel.getChildren(EmptyTreeModel.java:56)
	at org.netbeans.modules.bpel.mapper.tree.MapperSwingTreeModel.getChildren(MapperSwingTreeModel.java:261)
	at org.netbeans.modules.bpel.mapper.tree.MapperSwingTreeModel.isLeaf(MapperSwingTreeModel.java:106)
	at javax.swing.plaf.basic.BasicTreeUI.paint(BasicTreeUI.java:1155)
	at apple.laf.AquaTreeUI.paint(AquaTreeUI.java:129)
	at javax.swing.plaf.ComponentUI.update(ComponentUI.java:154)
	at javax.swing.JComponent.paintComponent(JComponent.java:743)
	at org.netbeans.modules.soa.mappercore.LeftTree.paintComponent(LeftTree.java:251)
	at javax.swing.JComponent.paint(JComponent.java:1006)
	at javax.swing.JComponent.paintChildren(JComponent.java:843)
	at javax.swing.JComponent.paint(JComponent.java:1015)
	at javax.swing.JViewport.paint(JViewport.java:726)
	at javax.swing.JComponent.paintChildren(JComponent.java:843)
	at javax.swing.JComponent.paint(JComponent.java:1015)
	at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
[catch] at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	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 1 Alexander Permyakov 2008-07-02 15:47:00 UTC
work in build Dev 2008 06 30 12-34 18
Comment 2 ggenipudi 2008-10-15 01:23:14 UTC
tested and verified using Build 200810130101 and followed the steps below and got error message.
XML validation started.
C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:46,4
ERROR: The imported file is invalid or not reachable.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:77,8
ERROR: Element "receive" has reference to another element via attribute "operation" and this element can not be found.
Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:67,8
ERROR: Element "variable" has reference to another element via attribute "messageType" and this element can not be
found. Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:101,8
ERROR: Element "reply" has reference to another element via attribute "portType" and this element can not be found.
Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:51,8
ERROR: Element "partnerLink" has reference to another element via attribute "partnerLinkType" and this element can not
be found. Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:51,8
ERROR: Element "partnerLink" has reference to another element via attribute "myRole" and this element can not be found.
Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:101,8
ERROR: Element "reply" has reference to another element via attribute "operation" and this element can not be found.
Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:77,8
ERROR: Element "receive" has reference to another element via attribute "portType" and this element can not be found.
Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:63,8
ERROR: Element "variable" has reference to another element via attribute "messageType" and this element can not be
found. Please check namespace declarations, "import" elements, attribute value or the name of the referenced element.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:101,8
ERROR: If the portType attribute is included for readability, in a <receive>, <reply>, <invoke>, <onEvent> or
<onMessage> element, the value of the portType attribute must match the portType value implied by the combination of the
specified partnerLink and the role implicitly specified by the activity. It means that Invoke requires partnerRole,
another - myRole.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:77,8
ERROR: If the portType attribute is included for readability, in a <receive>, <reply>, <invoke>, <onEvent> or
<onMessage> element, the value of the portType attribute must match the portType value implied by the combination of the
specified partnerLink and the role implicitly specified by the activity. It means that Invoke requires partnerRole,
another - myRole.

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:96,16
ERROR: From: Can not retrive the type "ns1:requestMessage" of the variable "inputVar". Expression:
"$inputVar.inputType/ns2:paramA"

C:/Users/ggenipudi/Documents/NetBeansProjects/Synchronous/Synchronous/src/Synchronous.bpel:97,16
ERROR: To: Can not retrive the type "ns1:responseMessage" of the variable "outputVar". Expression:
"$outputVar.resultType/ns2:paramA"

13 Error(s),  0 Warning(s).
XML validation finished