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.
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) ...
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.
Verified in build from 060723