Hi All,
I am using XFire to generate and call the web service. I have two web services. The first method in the webservice returns a user defined class and the second method returns a list of User defined class. I am getting the following error while accessing the second method. The first method passes through without any problems:
Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
org.codehaus.xfire.fault.XFireFault: Index: 1, Size: 1
at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
at org.codehaus.xfire.client.Client.onReceive(Client.java:410)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy12.retrieveAccessControlDetails(Unknown Source)
at com.test.isagent.bdaccess.AccessControlServiceClient.main(AccessControlServiceClient.java:102)
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.LinkedList.entry(LinkedList.java:368)
at java.util.LinkedList.get(LinkedList.java:313)
at java.util.Collections$UnmodifiableList.get(Collections.java:1155)
at org.codehaus.xfire.service.binding.AbstractBinding.read(AbstractBinding.java:187)
at org.codehaus.xfire.service.binding.DocumentBinding.readMessage(DocumentBinding.java:35)
at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(SoapBodyHandler.java:42)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:406)
... 11 more
The method signatures are:
1. public AccessUserResults validateUser(
String processId, String userId) (This method is called without any problem)
2. public List<AccessControlDetail> retrieveAccessControlDetails(String processId) (this method gives the above error)
Am i missing something. Any help is highly appreciated.
Thanks in advance.
Regards,
Anand
Thanks,
Anand