jQuery in Action, 3rd edition
The moose likes Web Services and the fly likes Error while calling the webservice using XFire Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error while calling the webservice using XFire" Watch "Error while calling the webservice using XFire" New topic

Error while calling the webservice using XFire

Anand Natarajan

Joined: Feb 25, 2009
Posts: 5
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.


I agree. Here's the link: http://aspose.com/file-tools
subject: Error while calling the webservice using XFire
It's not a secret anymore!