Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while calling the webservice using XFire  RSS feed

Anand Natarajan
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(
at org.codehaus.xfire.client.Client.onReceive(
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(
at org.codehaus.xfire.transport.http.HttpChannel.send(
at org.codehaus.xfire.handler.OutMessageSender.invoke(
at org.codehaus.xfire.handler.HandlerPipeline.invoke(
at org.codehaus.xfire.client.Invocation.invoke(
at org.codehaus.xfire.client.Invocation.invoke(
at org.codehaus.xfire.client.Client.invoke(
at org.codehaus.xfire.client.XFireProxy.handleRequest(
at org.codehaus.xfire.client.XFireProxy.invoke(
at $Proxy12.retrieveAccessControlDetails(Unknown Source)
at com.test.isagent.bdaccess.AccessControlServiceClient.main(
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.util.LinkedList.entry(
at java.util.LinkedList.get(
at java.util.Collections$UnmodifiableList.get(
at org.codehaus.xfire.service.binding.DocumentBinding.readMessage(
at org.codehaus.xfire.soap.handler.SoapBodyHandler.invoke(
at org.codehaus.xfire.handler.HandlerPipeline.invoke(
at org.codehaus.xfire.client.Client.onReceive(
... 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.


Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!