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 80195 - Deleting not empty Scope activity from diagram throws NPE
Summary: Deleting not empty Scope activity from diagram throws NPE
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-07-13 16:46 UTC by Andrey Yamkovoy
Modified: 2006-07-24 12:50 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 Andrey Yamkovoy 2006-07-13 16:46:11 UTC
Steps to reproduce:
- Create Synchronous sample project.
- Add Scope activity to process.
- Add Empty activity to Scope.
- Select Scope on diagram and delete it.
- Following NPE occurs:

java.lang.NullPointerException
	at 
org.netbeans.modules.bpel.nodes.CorrelationSetContainerNode.getContainerReferenc
e(CorrelationSetContainerNode.java:63)
	at 
org.netbeans.modules.bpel.nodes.CorrelationSetContainerNode.getContainerReferenc
e(CorrelationSetContainerNode.java:34)
	at org.netbeans.modules.bpel.nodes.ContainerBpelNode.isEventRequreUpdate
(ContainerBpelNode.java:62)
	at org.netbeans.modules.bpel.nodes.BpelNode$Synchronizer.notifyEvent
(BpelNode.java:468)
	at 
org.netbeans.modules.bpel.model.api.events.ChangeEventListenerAdapter.notifyEnti
tyRemoved(ChangeEventListenerAdapter.java:72)
	at 
org.netbeans.modules.bpel.model.api.events.ChangeEventSupport.notifyChangeEvent
(ChangeEventSupport.java:182)
	at 
org.netbeans.modules.bpel.model.api.events.ChangeEventSupport.fireChangeEvent
(ChangeEventSupport.java:152)
	at 
org.netbeans.modules.bpel.model.impl.BpelModelImpl$Transaction.commitEvents
(BpelModelImpl.java:804)
	at org.netbeans.modules.bpel.model.impl.BpelModelImpl$Transaction.end
(BpelModelImpl.java:719)
	at org.netbeans.modules.bpel.model.impl.BpelModelImpl.writeUnlock
(BpelModelImpl.java:475)
	at org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke
(BpelModelImpl.java:228)
	at org.netbeans.modules.bpel.nodes.actions.BpelNodeAction.performAction
(BpelNodeAction.java:65)
	at org.netbeans.modules.bpel.nodes.actions.DeleteAction.performAction
(DeleteAction.java:59)
	at org.openide.util.actions.NodeAction.performAction
(NodeAction.java:261)
	at org.openide.util.actions.CallableSystemAction$1.run
(CallableSystemAction.java:100)
	at org.netbeans.modules.openide.util.ActionsBridge.doPerformAction
(ActionsBridge.java:53)
	at org.openide.util.actions.CallableSystemAction.actionPerformed
(CallableSystemAction.java:96)
	at org.openide.util.actions.NodeAction.actionPerformed
(NodeAction.java:250)
	at 
org.netbeans.modules.bpel.design.DesignView$DeleteAction.actionPerformed
(DesignView.java:968)
...
Comment 1 Nikita Krjukov 2006-07-19 17:13:15 UTC
The described issue has been fixed. But other problems can remain. 
It is because of the NPE is a result of changes in BPEL model. 
Particularly the main reason is the fact that the deleted BPEL entity 
now can't be found by the unique identifier and the corresponding method 
returns null. 

Now the nodes which correspond to deleted BPEL entities are unsubscribed 
from BPEL model and destroyed so they sould not be notified with the model 
changes. 

Also there is a suspicious that there is a memory leak because of too many 
nodes remains subscribed to the BPEL model. 
Comment 2 Mikhail Kondratyev 2006-07-24 12:50:09 UTC
Verified in build from 060723