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 80104 - PartnerLink Property Editor doesn't work, get InvocationTargetException
Summary: PartnerLink Property Editor doesn't work, get InvocationTargetException
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P1 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-13 01:26 UTC by _ hong_lin
Modified: 2006-07-27 01:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample app zip file (8.14 KB, application/x-compressed)
2006-07-24 08:17 UTC, _ hong_lin
Details
Updated SynchronousSample.zip file (8.25 KB, application/x-compressed)
2006-07-24 21:08 UTC, _ hong_lin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ hong_lin 2006-07-13 01:26:35 UTC
Build: NB 5.5 Dev 200607120500

Steps to reproduce it:

1. Create a new SOA BPEL Module project BpelModule1.
2. Open the BpelModule1_1.bpel file in Editor window.
3. In Design view, drag and drop a Partner Link from BPEL Palette. 
4. In PartnerLink1 [Partner Link] - Property Editor window, select:
 WSDL File: "BpelModule1_1" 
 Partner Link Type: BpelModule1_1PartnerLinkType
 My Role: BpelModule1_1Provider
5. Click Ok button to close the Property Editor window.
6. Right-click the PartnerLink1, and select Edit from the context menu.
7. The Property Editor window pops up, but all information I set before was
gone. Select the same options as step 4. And click Ok button.
8. Get the following exception:
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:589)
	at
org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:671)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applySimpleControlsValues(AbstractCustomNodeEditor.java:445)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValuesImpl(AbstractCustomNodeEditor.java:193)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:76)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:170)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:223)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:168)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:241)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:104)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor$1.actionPerformed(NodeEditorDescriptor.java:61)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1080)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1039)
	at java.awt.Dialog$2.run(Dialog.java:1085)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1083)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:816)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1178)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832)
	at java.awt.Component.show(Component.java:1416)
	at java.awt.Component.setVisible(Component.java:1369)
	at java.awt.Window.setVisible(Window.java:799)
	at java.awt.Dialog.setVisible(Dialog.java:979)
	at
org.netbeans.modules.bpel.properties.NodeUtils.showNodeCustomEditor(NodeUtils.java:70)
	at
org.netbeans.modules.bpel.nodes.actions.ShowPropertyEditorAction.performAction(ShowPropertyEditorAction.java:45)
	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:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1157)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1198)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	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)
Caused by: java.lang.NullPointerException
	at
org.netbeans.modules.bpel.model.impl.ExpressionConsistencyService.preDispatch(ExpressionConsistencyService.java:84)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.preInnerEventNotify(BpelModelImpl.java:522)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1154)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1145)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:213)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:378)
	at
org.netbeans.modules.bpel.model.impl.NamedElementImpl.setName(NamedElementImpl.java:61)
	... 85 more
==>
java.lang.NullPointerException
	at
org.netbeans.modules.bpel.model.impl.ExpressionConsistencyService.preDispatch(ExpressionConsistencyService.java:84)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.preInnerEventNotify(BpelModelImpl.java:522)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1154)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1145)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:213)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:378)
	at
org.netbeans.modules.bpel.model.impl.NamedElementImpl.setName(NamedElementImpl.java:61)
	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:589)
	at
org.netbeans.modules.bpel.properties.props.PropertyUtils$Reflection.setValue(PropertyUtils.java:671)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applySimpleControlsValues(AbstractCustomNodeEditor.java:445)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValuesImpl(AbstractCustomNodeEditor.java:193)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:76)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:170)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:223)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:168)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:241)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:104)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor$1.actionPerformed(NodeEditorDescriptor.java:61)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1080)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
	at java.awt.Dialog$1.run(Dialog.java:1039)
	at java.awt.Dialog$2.run(Dialog.java:1085)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Dialog.show(Dialog.java:1083)
	at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:816)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1178)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832)
	at java.awt.Component.show(Component.java:1416)
	at java.awt.Component.setVisible(Component.java:1369)
	at java.awt.Window.setVisible(Window.java:799)
	at java.awt.Dialog.setVisible(Dialog.java:979)
	at
org.netbeans.modules.bpel.properties.NodeUtils.showNodeCustomEditor(NodeUtils.java:70)
	at
org.netbeans.modules.bpel.nodes.actions.ShowPropertyEditorAction.performAction(ShowPropertyEditorAction.java:45)
	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:377)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:232)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1157)
	at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1198)
	at java.awt.Component.processMouseEvent(Component.java:5999)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3240)
	at java.awt.Component.processEvent(Component.java:5764)
	at java.awt.Container.processEvent(Container.java:1984)
	at java.awt.Component.dispatchEventImpl(Component.java:4407)
	at java.awt.Container.dispatchEventImpl(Container.java:2042)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4248)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3912)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3842)
	at java.awt.Container.dispatchEventImpl(Container.java:2028)
	at java.awt.Window.dispatchEventImpl(Window.java:2405)
	at java.awt.Component.dispatchEvent(Component.java:4237)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:600)
	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)
Comment 1 _ hong_lin 2006-07-14 02:09:17 UTC
In build 200607130000, the exception is gone after step 8. But still have to
edit the information twice. The issue mentioned in step 7 is still reproducible.
Comment 2 Nikita Krjukov 2006-07-19 12:31:20 UTC
The bug reproduced before but I can't reproduce it with version from 2006-07-18
Comment 3 Nikita Krjukov 2006-07-19 16:25:53 UTC
The issue reprodused again
Comment 4 Nikita Krjukov 2006-07-19 16:46:02 UTC
There is a strange behaviour. 
After dropping a Partner Link from the palette the following code is executed:

org.netbeans.modules.bpel.design.model.patterns.ProcessPattern;

line #487
        public void drop() {
            BpelModel model = getModel().getView().getBPELModel();
            
            Process process = model.getProcess();
            Pattern pattern =  getDraggedPattern();
            
            PartnerLink pl = (PartnerLink) pattern.getOMReference();
            
            
            PartnerLinkContainer plc = process.getPartnerLinkContainer();
            if (plc == null){
                plc = model.getBuilder().createPartnerLinkContainer();
                process.setPartnerLinkContainer(plc);
            }
            plc.insertPartnerLink(pl, 0);
            
            if (pattern.getParent() == null) {
                if (!getModel().getView().showCustomEditor(pattern)){
                    plc.remove(pl);
                }
            }
        }

The code creates the PartnerLinkContainer and adds the PartnerLink there. 
The navigator and the diagram respond to creation of the new PartnerLink with 
showing it. But it doesn't present at the source view at all, that indicates 
a problem inside of BPEL model. 

I suppose the issue relates to such strange effect. 
I also suspect that it can be result of nested BPEL model transaction which 
take place. 

The first transaction is started by the 
org.netbeans.modules.bpel.design.DnDHandler (line #255)

Then the PartnerLink property editor dialog is shown inside of the transaction
and when the Ok button is pressed, the assignment of PartnerLink properties is 
performed inside of other transaciton. 

I hope Denis Anisimov can clarify the issue. 

If my suspicious are correct then, I think, the correction can be done to the 
BPELModel.invoke() method to prevent problems with nested transactions the same 
way as it can be done manually. Manually I can check if the transaction already 
started and skip starting a new transaction if someone has already started. 

Comment 5 Denis Anisimov 2006-07-19 18:42:51 UTC
This is realy strange behaviour.
It seems such situation appears only with partnerLinks.

There should not be any relation to strating transaction.
Actulaly each time when you mutate OM you start transaction .
So nay write method inside "invoke" is transaction inside transaction.
So there no problem.
Comment 6 Denis Anisimov 2006-07-20 13:39:55 UTC
The problem appear in possibility to start "sync" inside "invoke" ( or inside
transaction call ).
The code was checking if there no more locks on model and set inSync flag to 
false only on last unlock.
So if someone starts sync inside "invoke" then no flushing would be done because
inSync flag is set to "true" and in this case flushing is not performed.

"sync" was called from "autosync" feature. It is put in swing queue and
periodically performed. 
In this issue opening dialog was put into "invoke" and somehow showDialog call 
(auto)"sync". This led to described issue.

I add code that doesn't perform "sync" when transaction is started ( via 
"invoke" or startTransaction ).
So one should not put sync inside transaction. Otherwise it will not have effect.
Comment 7 _ hong_lin 2006-07-24 08:17:06 UTC
Created attachment 32121 [details]
sample app zip file
Comment 8 _ hong_lin 2006-07-24 08:19:03 UTC
The bug is still reproducible in NB 5.5 Beta soa auto build 060721_24 (build 
200607190830, Ent. Pack 2006.07.21).

tO quickly reproduce this bug:
1. unzip the attached SynchronousSample.zip file and load it into IDE.
2. Open the SynchronouSample_1.bpel file in the Editor window.
3. In Design view, drag and drop a Partner Link from BPEL Palette. 
4. In PartnerLink1 [Partner Link] - Property Editor window, select:
 WSDL File: "SynchronousSample_1" 
 Partner Link Type: partnerlinktype1
 Partner Role: partnerlinktyperole1
5. Click Ok button to close the Property Editor window.




Comment 9 Denis Anisimov 2006-07-24 13:14:26 UTC
Hong,
the original description in bug is not reproducible.

If you want to correct this description then you need :
1) PLEASE attach CORRECT sample! In the attached sample there is no 
PartnerLink in WSDL file. I cannot reproduce this issue with attached example!
2) Please write full bug description : actions, expected and real result.
In your last description there are no expected and real result. ( as I said before
original description is not valid ).
3) Please check this issue on more fresh build. I understand the issue and I 
absolutely sure that this issue is fixed. I believe you use old build.
Comment 10 _ hong_lin 2006-07-24 21:08:31 UTC
Created attachment 32159 [details]
Updated SynchronousSample.zip file
Comment 11 _ hong_lin 2006-07-24 21:09:46 UTC
Sorry that I didn't save my file because of the exception.
Attached the updated SynchronousSample.zip

Verified the bug is fixed in build 060723.
Comment 12 Sherry Barkodar 2006-07-25 17:34:21 UTC
I am using the latest build Coke trunk build 060724/installer
I get the same exception:
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:671)
	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:193)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:76)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:170)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:232)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:168)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:224)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:39)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.BpelDialogDescriptor$1.actionPerformed(BpelDialogDescriptor.java:64)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1080)
	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:3093)
	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:816)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1178)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.bpel.properties.NodeUtils.showNodeCustomEditor(NodeUtils.java:70)
	at
org.netbeans.modules.bpel.design.DesignView.showCustomEditor(DesignView.java:370)
	at
org.netbeans.modules.bpel.design.model.patterns.ProcessPattern$PartnerlinkPlaceholder.drop(ProcessPattern.java:504)
	at
org.netbeans.modules.bpel.design.selection.PlaceHolderManager.drop(PlaceHolderManager.java:178)
	at org.netbeans.modules.bpel.design.DnDHandler$2.call(DnDHandler.java:247)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:232)
	at org.netbeans.modules.bpel.design.DnDHandler.drop(DnDHandler.java:255)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
	at
sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
	at
sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
	at java.awt.Component.dispatchEventImpl(Component.java:3826)
	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.processDropTargetEvent(Container.java:3963)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3817)
	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.NullPointerException
	at
org.netbeans.modules.bpel.model.impl.ExpressionConsistencyService.preDispatch(ExpressionConsistencyService.java:83)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.preInnerEventNotify(BpelModelImpl.java:508)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1134)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1125)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:213)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:378)
	at
org.netbeans.modules.bpel.model.impl.NamedElementImpl.setName(NamedElementImpl.java:61)
	... 75 more
==>
java.lang.NullPointerException
	at
org.netbeans.modules.bpel.model.impl.ExpressionConsistencyService.preDispatch(ExpressionConsistencyService.java:83)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.preInnerEventNotify(BpelModelImpl.java:508)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1134)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.preUpdateAttribute(AttributeAccess.java:1125)
	at
org.netbeans.modules.bpel.model.impl.AttributeAccess.setBpelAttribute(AttributeAccess.java:213)
	at
org.netbeans.modules.bpel.model.impl.BpelEntityImpl.setBpelAttribute(BpelEntityImpl.java:378)
	at
org.netbeans.modules.bpel.model.impl.NamedElementImpl.setName(NamedElementImpl.java:61)
	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:671)
	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:193)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.access$000(AbstractCustomNodeEditor.java:76)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor$1.call(AbstractCustomNodeEditor.java:170)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:232)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.applyNewValues(AbstractCustomNodeEditor.java:168)
	at
org.netbeans.modules.bpel.properties.editors.controls.AbstractCustomNodeEditor.doValidateAndSave(AbstractCustomNodeEditor.java:224)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.NodeEditorDescriptor.processOkButton(NodeEditorDescriptor.java:39)
	at
org.netbeans.modules.bpel.properties.editors.controls.valid.BpelDialogDescriptor$1.actionPerformed(BpelDialogDescriptor.java:64)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1080)
	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:3093)
	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:816)
	at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:859)
	at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:847)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1178)
	at org.openide.util.Mutex.readAccess(Mutex.java:215)
	at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:832)
	at java.awt.Component.show(Component.java:1300)
	at java.awt.Component.setVisible(Component.java:1253)
	at
org.netbeans.modules.bpel.properties.NodeUtils.showNodeCustomEditor(NodeUtils.java:70)
	at
org.netbeans.modules.bpel.design.DesignView.showCustomEditor(DesignView.java:370)
	at
org.netbeans.modules.bpel.design.model.patterns.ProcessPattern$PartnerlinkPlaceholder.drop(ProcessPattern.java:504)
	at
org.netbeans.modules.bpel.design.selection.PlaceHolderManager.drop(PlaceHolderManager.java:178)
	at org.netbeans.modules.bpel.design.DnDHandler$2.call(DnDHandler.java:247)
	at
org.netbeans.modules.bpel.model.impl.BpelModelImpl.invoke(BpelModelImpl.java:232)
	at org.netbeans.modules.bpel.design.DnDHandler.drop(DnDHandler.java:255)
	at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
	at
sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
	at
sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
	at
sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
	at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
	at java.awt.Component.dispatchEventImpl(Component.java:3826)
	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.processDropTargetEvent(Container.java:3963)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3817)
	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 13 Denis Anisimov 2006-07-26 07:40:57 UTC
Yes, there was a bug.
It is my fault, I have wrongly used ThreadLocal varaible.
It should be initialized in EACH thread, not only once in constructor of service
( in this way it was done before fix ).
Comment 14 Michael Frisino 2006-07-26 07:43:56 UTC
I hope this bug will finally die. It is like cockroach, very hard to kill.
Comment 15 _ hong_lin 2006-07-26 19:35:27 UTC
Verified the fix is in nightly build 060725.