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.
Actual Bpel model async while working with Javascript activity edit dialog. Steps to reproduce: 1. add JavaScript activity to the bpel 2. invoke edit dialog (double click) 3. fulfill input, output fields and write some javascript code in textarea. 4. Press ok and go to the source, to see that all changes are on the place 5. invoke edit dialog again (double click) the dialog is empty. Restart netbeans - invoke edit dialog - see it isn't empty. 1. add JavaScript activity to the bpel 2. invoke edit dialog (double click) 3. fulfill input, output fields and write some javascript code in textarea. 4. Press ok and go to the source, to see that all changes are on the place
if one starts netbeans with enabled assertion ( add -J-ea to the <netbeans inst dir>/etc/netbeans.conf line starting with netbeans_default_options ) The next assertion error occur: java.lang.AssertionError at org.netbeans.modules.bpel.model.impl.BpelModelImpl.undoableEditHappened(BpelModelImpl.java:404) at org.netbeans.modules.xml.xdm.XDMModel.fireUndoableEditEvent(XDMModel.java:968) at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:408) at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:339) at org.netbeans.modules.xml.xdm.XDMModel.setAttribute(XDMModel.java:743) at org.netbeans.modules.xml.xdm.xam.XDMAccess.setAttribute(XDMAccess.java:239) at org.netbeans.modules.bpel.model.impl.AssignImpl.setInput(AssignImpl.java:122) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor.save(JavaScriptEditor.java:334) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor.access$100(JavaScriptEditor.java:91) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor$1.actionPerformed(JavaScriptEditor.java:113) at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1139) 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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6216) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5981) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4583) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4413) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4413)
Save button also doesn't work: 1. Add JavaScript entity from the palette 2. Open the JavaScript Editor (double click on the activity) 3. Write something in text area (or don't write at all) 4. Press "Save", see exception: java.lang.IllegalArgumentException: old node must be in the tree at org.netbeans.modules.xml.xdm.XDMModel.getPathToRoot(XDMModel.java:320) at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:350) at org.netbeans.modules.xml.xdm.XDMModel.mutate(XDMModel.java:339) at org.netbeans.modules.xml.xdm.XDMModel.replaceChild(XDMModel.java:724) at org.netbeans.modules.xml.xdm.xam.XDMAccess.replaceChild(XDMAccess.java:332) at org.netbeans.modules.bpel.model.impl.AssignImpl.setJavaScript(AssignImpl.java:102) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor.save(JavaScriptEditor.java:342) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor.access$100(JavaScriptEditor.java:91) at org.netbeans.modules.bpel.nodes.actions.JavaScriptEditor$2.actionPerformed(JavaScriptEditor.java:126) 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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) at java.awt.Container.dispatchEventImpl(Container.java:2085) at java.awt.Window.dispatchEventImpl(Window.java:2475) at java.awt.Component.dispatchEvent(Component.java:4460) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178) at java.awt.Dialog$1.run(Dialog.java:1045) at java.awt.Dialog$3.run(Dialog.java:1097) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Dialog.show(Dialog.java:1095) at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:985) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1019) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1007) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:115) at org.openide.util.Mutex.doEventAccess(Mutex.java:1355) at org.openide.util.Mutex.readAccess(Mutex.java:268) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:992) at java.awt.Component.show(Component.java:1563) at java.awt.Component.setVisible(Component.java:1515) at java.awt.Window.setVisible(Window.java:841) at java.awt.Dialog.setVisible(Dialog.java:985) at org.netbeans.modules.xml.util.ui.UI$Dialog$2.run(UI.java:684) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Vladimir, reassigned this issue to you.
Fix is another implementation indeed. More testing is required.
Fixed in gfesbv23. Changeset: 35f0f356e0f1
fixed in gfesbv22. Changeset: c41728bb323a.
JavaScript edit dialog works as expected. This is verified to work correctly in CAPS 63 M5 build (20101103-1248). This issue can be closed.