users@jax-rpc.java.net

Re: DII client: IndexOutOfBoundsException when calling method with 0 argument

From: kathy walsh <Kathleen.Walsh_at_Sun.COM>
Date: Mon, 11 Oct 2004 15:11:27 -0400

Hello-
 From the jaxrpc 1.1 release notes-this is a known bug-
I will still take a look at it-
Kathy


    * If there is a null parameter in a remote procedure call made by a
      DII or dynamic proxy client, the parameter is not serialized
      properly. (4847980)



Abhishek Agrawal wrote:

> I am trying to call "GetLondonGoldAndSilverFix" method on the
> "LondonGoldAndSilverFix"
> (http://www.webservicex.net/LondonGoldFix.asmx?WSDL)
>
> This perticular method does not take any parameter and hence in my DII
> client I am not calling method
> call.addParameter()
>
> But somehow DII client does not like it and seems like its
> alwaysexpecting at least 1 parameter.
> I get the following exception when I try to call invoke.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:507)
> at java.util.ArrayList.get(ArrayList.java:324)
> at
> com.sun.xml.rpc.client.dii.BasicCall.createLiteralRequestSerializer(BasicCall.java:652)
> at
> com.sun.xml.rpc.client.dii.BasicCall.getRequestSerializer(BasicCall.java:621)
> at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:473)
> at
> com.appiancorp.process.runtime.activities.WebServiceActivity.doCall(WebServiceActivity.java:308)
> at
> com.appiancorp.process.runtime.activities.WebServiceActivity.main(WebServiceActivity.java:119)
>
>
> The DII client works fine for functions that take one or more
> parameters (Obviously, I have not been able to run it for complex
> types, but thatýs a different story..)
>
> Has anyone else noticed this problem?
>
> Thanks !
>