• Post Reply Bookmark Topic Watch Topic
  • New Topic

XmlRpcClientException

 
giri shetty
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I tried xmlrpc communication between java client and a PERL( active perl 5.8.6 installed on tomcat server) server and that worked fine. But when I try the same activeperl 5.8.6 with IIS6 installed on windows 2003 I am getting an error . I would like to know what is causing this problem


org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC response
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:78)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:72)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:193)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:184)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:177)
at perlClientExample.XmlRpcClientExample.say_hello(XmlRpcClientExample.java:33)
at perlClientExample.XmlRpcClientExample.main(XmlRpcClientExample.java:92)
Caused by: org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC exception response
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:109)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:69)
... 6 more
Caused by: java.lang.NumberFormatException: For input string: "Client"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:102)
... 7 more

Thanks in advance
 
Watsh Rajneesh
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused by: java.lang.NumberFormatException: For input string: "Client"

Probably instead of the "Client" string you needed to pass some number. NumberFormatException is thrown when a number is being parsed as string and converted to either primitive/wrapper java.lang.Number type or subtype of it.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I bet that Watsh is right. If this was my problem I would use TCPMON or similar program to trap the full text of request and response so you can see exactly what the response looks like.
Bill
 
giri shetty
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guys. Let me try with tcpmon tool.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!