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 57707 - IndexOutOfBoundsException when calling web service operation from java class
Summary: IndexOutOfBoundsException when calling web service operation from java class
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-10 13:54 UTC by sigalduek
Modified: 2006-03-24 13:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
wsdl file (3.25 KB, text/xml)
2005-04-10 13:55 UTC, sigalduek
Details
messages.log (19.17 KB, text/plain)
2005-04-11 13:38 UTC, Lukas Jungmann
Details
Diff against 4.1 branch (1.48 KB, text/plain)
2005-04-13 16:26 UTC, Martin Grebac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sigalduek 2005-04-10 13:54:49 UTC
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)
Comment 1 sigalduek 2005-04-10 13:55:53 UTC
Created attachment 21521 [details]
wsdl file
Comment 2 Lukas Jungmann 2005-04-11 13:35:38 UTC
[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
Comment 3 Lukas Jungmann 2005-04-11 13:38:33 UTC
Created attachment 21540 [details]
messages.log
Comment 4 Martin Grebac 2005-04-11 16:27:07 UTC
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
Comment 5 Lukas Jungmann 2005-04-12 14:20:12 UTC
v. in cont. build 20050412-1145, commit it to the release41 branch after the
review, thanks
Comment 6 Milan Kuchtiak 2005-04-13 15:31:15 UTC
The fix looks OK.
Comment 7 Martin Grebac 2005-04-13 16:26:07 UTC
Created attachment 21619 [details]
Diff against 4.1 branch
Comment 8 Martin Grebac 2005-04-14 12:56:25 UTC
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
Comment 9 Lukas Jungmann 2005-04-15 10:54:47 UTC
v. in 200504142205