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 77797 - Editing variable that is used somewhere throws exception
Summary: Editing variable that is used somewhere throws exception
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
: 78098 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-13 12:32 UTC by Mikhail Kondratyev
Modified: 2006-08-31 02:01 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 12:32:20 UTC
Steps to reproduce:
 - create a new Sync sample project
 - make use of one of the existing variables (create a throw element for example
and set it as a Fault variable)
 - select the variable in the Navigator and chose Edit from context menu
 - change the variable type
 - click OK button to confirm the changes
Exception will be thrown:
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:618)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applySimpleControlsValues(AbstractCustomNodeEditor.java:434)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValuesImpl(AbstractCustomNodeEditor.java:181)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:70)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:158)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:160)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:156)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:229)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:98)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor$1.actionPerformed(NodeEditorDescriptor.java:55)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1074)
	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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	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.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:810)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:853)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:841)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1172)
	at org.openide.util.Mutex.readAccess(Mutex.java:209)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:826)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.bpel.properties.PropertyNodeFactory.showNodeCustomEditor(PropertyNodeFactory.java:354)
	at
org.netbeans.modules.bpel.navigator.nodes.NavigatorNodeFactory.showNodeCustomEditor(NavigatorNodeFactory.java:137)
	at
org.netbeans.modules.bpel.properties.nodes.actions.ShowPropertyEditorAction.performAction(ShowPropertyEditorAction.java:39)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:531)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47)
	at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:527)
	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)
	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)
Caused by: java.lang.AssertionError
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.updateReference(AttributeAccess.java:711)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.updateReference(BpelEntityImpl.java:559)
	at
org.netbeans.modules.bpel.model.impl.ReferenceIntegrityService.postDispatch(ReferenceIntegrityService.java:100)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.postInnerEventNotify(BpelModelImpl.java:449)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.postGlobalEvent(BpelEntityImpl.java:626)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.postGlobalEvent(BpelEntityImpl.java:631)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:208)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:402)
	at org.netbeans.modules.bpel.model.impl.VariableImpl.setName(VariableImpl.java:67)
	... 79 more
==>
java.lang.AssertionError
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.updateReference(AttributeAccess.java:711)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.updateReference(BpelEntityImpl.java:559)
	at
org.netbeans.modules.bpel.model.impl.ReferenceIntegrityService.postDispatch(ReferenceIntegrityService.java:100)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.postInnerEventNotify(BpelModelImpl.java:449)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.postGlobalEvent(BpelEntityImpl.java:626)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.postGlobalEvent(BpelEntityImpl.java:631)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:208)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:402)
	at org.netbeans.modules.bpel.model.impl.VariableImpl.setName(VariableImpl.java:67)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at
org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:618)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applySimpleControlsValues(AbstractCustomNodeEditor.java:434)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValuesImpl(AbstractCustomNodeEditor.java:181)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:70)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:158)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:160)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:156)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:229)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:98)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor$1.actionPerformed(NodeEditorDescriptor.java:55)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1074)
	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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	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.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:810)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:853)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:841)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1172)
	at org.openide.util.Mutex.readAccess(Mutex.java:209)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:826)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.bpel.properties.PropertyNodeFactory.showNodeCustomEditor(PropertyNodeFactory.java:354)
	at
org.netbeans.modules.bpel.navigator.nodes.NavigatorNodeFactory.showNodeCustomEditor(NavigatorNodeFactory.java:137)
	at
org.netbeans.modules.bpel.properties.nodes.actions.ShowPropertyEditorAction.performAction(ShowPropertyEditorAction.java:39)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:531)
	at
org.netbeans.modules.openide.util.ActionsBridge.doPerformAction(ActionsBridge.java:47)
	at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:527)
	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)
	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 Nikita Krjukov 2006-07-10 14:48:16 UTC
*** Issue 78098 has been marked as a duplicate of this issue. ***
Comment 2 Nikita Krjukov 2006-07-10 14:49:34 UTC
See also the issue #78098 which is the duplicate but has another steps to 
reproduce
Comment 3 Denis Anisimov 2006-07-13 11:20:50 UTC
Bad attribute type was used ONLY in Throw element for faultVariable.
Comment 4 Mikhail Kondratyev 2006-07-24 11:00:58 UTC
Verified with build 060723