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 a BPEL process - add an Empty activity there - Invoke Wrap With->ForEach for this activity - Activity will be wrapped with a scope and foreach - select the scope, invoke Wrap With->Scope - the scope will be wrapped with another scope - press Ctrl+Z The undo will work incorrect - Empty ForEach will be present on the diagram If you now try to wrap this foreach with e.g. Sequence - ArrayIndexOutOfBounds exception will be thrown If you try to drag this broken ForEach somewhere - it will just disappear Exception stack trace: java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.bpel.model.impl.UIDCreationService.createUid(UIDCreationService.java:156) at org.netbeans.modules.bpel.model.impl.UIDCreationService.postDispatch(UIDCreationService.java:109) at org.netbeans.modules.bpel.model.impl.BpelModelImpl.postInnerEventNotify(BpelModelImpl.java:595) at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.postEvent(BpelEntityImpl.java:762) at org.netbeans.modules.bpel.model.impl.BpelEntityImpl.cut(BpelEntityImpl.java:179) at org.netbeans.modules.bpel.nodes.actions.AbstractWrapWithAction$1.call(AbstractWrapWithAction.java:134) at org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:234) at org.netbeans.modules.bpel.nodes.actions.AbstractWrapWithAction.performAction(AbstractWrapWithAction.java:165) at org.netbeans.modules.bpel.nodes.actions.BpelNodeAction$1.call(BpelNodeAction.java:85) at org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:234) at org.netbeans.modules.bpel.nodes.actions.BpelNodeAction.performAction(BpelNodeAction.java:83) 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 javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:357) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3260) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Window.dispatchEventImpl(Window.java:2429) at java.awt.Component.dispatchEvent(Component.java:4240) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
After fix for IZ87719 I cannot reproduce this issue. I'm absolutely sure that reasons of this issue are the same as for 87719. Please recheck it after obtaining build with fix for 87719. *** This issue has been marked as a duplicate of 87719 ***
Verified