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 77802 - Editing Flow activity in source breaks diagram-source sync and my throw exception
Summary: Editing Flow activity in source breaks diagram-source sync and my throw excep...
Status: VERIFIED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-13 13:11 UTC by Mikhail Kondratyev
Modified: 2006-08-29 10:19 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 Mikhail Kondratyev 2006-06-13 13:11:33 UTC
Steps to reproduce:
 - create a BPEL diagram
 - add a Flow to the diagram
 - add several Empty activities to the Flow activity so that each Empty is in
different branch
 - switch to source
 - delete an Empty activity
 - switch back to diagram. Try to delete the remaining activities. When deleting
the last one an exception will be thrown. Try adding activities in source -
diagram will be out of sync. Exception stack trace:
java.lang.AssertionError
	at org.netbeans.modules.xml.xdm.XDMModel$6.update(XDMModel.java:553)
	at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:331)
	at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:283)
	at org.netbeans.modules.xml.xdm.XDMModel.remove(XDMModel.java:557)
	at org.netbeans.modules.xml.xdm.xam.XDMAccess.removeChild(XDMAccess.java:188)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.removeChild(AbstractDocumentComponent.java:412)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.removeChildQuietly(AbstractDocumentComponent.java:250)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent.removeChildQuietly(AbstractDocumentComponent.java:43)
	at
org.netbeans.modules.xml.xam.AbstractComponent._removeChildQuietly(AbstractComponent.java:114)
	at
org.netbeans.modules.xml.xam.AbstractComponent.removeChild(AbstractComponent.java:340)
	at
org.netbeans.modules.bpel.model.impl.BpelContainerImpl.removeChild(BpelContainerImpl.java:675)
	at
org.netbeans.modules.bpel.model.impl.BpelContainerImpl.remove(BpelContainerImpl.java:122)
	at
org.netbeans.modules.bpel.properties.nodes.actions.DeleteAction.performAction(DeleteAction.java:66)
	at
org.netbeans.modules.bpel.properties.nodes.actions.BpelNodeAction$1.call(BpelNodeAction.java:61)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:160)
	at
org.netbeans.modules.bpel.properties.nodes.actions.BpelNodeAction.performAction(BpelNodeAction.java:59)
	at
org.netbeans.modules.bpel.properties.nodes.actions.DeleteAction.performAction(DeleteAction.java:53)
	at org.openide.util.actions.NodeAction.performAction(NodeAction.java:255)
	at
org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:94)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47)
	at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:90)
	at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:244)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	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:1774)
	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)
Comment 1 Denis Anisimov 2006-06-21 09:32:36 UTC
This is XML team issue actually.
I will monitor the state for this issue.
Comment 2 Nam Nguyen 2006-07-25 22:51:55 UTC
I did a fresh build (using release55_beta2 binaries) and cannot reproduce this
exception.  

Note that the stack line number at XDMModel.java:553 is off from release55_beta2
version (1.2.2.34).
Comment 3 Mikhail Kondratyev 2006-08-29 10:19:36 UTC
Verified with build from 06.08.25