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.
1.create web service client using attached wsdl file 2.create new java class file using default name anfd default package 3. using the editor add a new method to the class and righ click to open pop-up menu 4. Call web service operation , menu is opened, select the web service method and press the OK button. 5.java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:507) at java.util.ArrayList.get(ArrayList.java:324) at org.netbeans.modules.javacore.jmiimpl.javamodel.DeferredAttrList.get(DeferredAttrList.java:208) at org.netbeans.mdr.handlers.AttrListWrapper.get(AttrListWrapper.java:109) at org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.get(LightAttrList.java:332) at org.netbeans.modules.websvc.core.client.actions.InvokeOperationAction.insertMethodCall(InvokeOperationAction.java:492) at org.netbeans.modules.websvc.core.client.actions.InvokeOperationAction.performAction(InvokeOperationAction.java:155) at org.openide.util.actions.NodeAction.performAction(NodeAction.java:207) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76) at org.openide.util.actions.NodeAction.actionPerformed(NodeAction.java:196) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:289) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113) at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Created attachment 21521 [details] wsdl file
[build: 200504101930] Other steps to reproduce: 1. create websvc client for arbitrary websvc 2. create new arbitrary java class 3.-4. same as above This scenario is supported in EJB module for EJBs (user can call EJB from java class in EJB module) => increasing priority to P2
Created attachment 21540 [details] messages.log
Fixed in trunk: Checking in InvokeOperationAction.java; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/actions/InvokeOperationAction.java,v <-- InvokeOperationAction.java new revision: 1.12; previous revision: 1.11 done
v. in cont. build 20050412-1145, commit it to the release41 branch after the review, thanks
The fix looks OK.
Created attachment 21619 [details] Diff against 4.1 branch
Fixed in release41 branch: Checking in InvokeOperationAction.java; /cvs/websvc/core/src/org/netbeans/modules/websvc/core/client/actions/InvokeOperationAction.java,v <-- InvokeOperationAction.java new revision: 1.11.2.1; previous revision: 1.11 done
v. in 200504142205