You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Gabriel Huerta <hu...@globalhitss.com.INVALID> on 2020/03/13 19:29:33 UTC

Problem using org.apache.xmlrpc.XmlRpcClientLite

I have followed instructions regarding this article

https://www.javaworld.com/article/2072991/call-perl-routines-from-java.html

What I have achieved is running client program with below error

java -jar xlm-rpc.jar
org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC response
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpc
ClientResponseProcessor.java:80)
        at
org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:
73)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
        at
perlClientExample.XmlRpcClientExample.say_hello(XmlRpcClientExample.j
ava:18)
        at
perlClientExample.XmlRpcClientExample.main(XmlRpcClientExample.java:4
7)
Caused by: org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC
excep
tion response
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRp
cClientResponseProcessor.java:111)
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpc
ClientResponseProcessor.java:71)
        ... 6 more
Caused by: java.lang.NumberFormatException: For input string: "Client"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRp
cClientResponseProcessor.java:104)
        ... 7 more
Output from say_hello() : NaN
org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC response
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpc
ClientResponseProcessor.java:80)
        at
org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:
73)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
        at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
        at
perlClientExample.XmlRpcClientExample.echo_args(XmlRpcClientExample.j
ava:37)
        at
perlClientExample.XmlRpcClientExample.main(XmlRpcClientExample.java:4
8)
Caused by: org.apache.xmlrpc.XmlRpcClientException: Error decoding XML-RPC
excep
tion response
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRp
cClientResponseProcessor.java:111)
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpc
ClientResponseProcessor.java:71)
        ... 6 more
Caused by: java.lang.NumberFormatException: For input string: "Client"
        at
java.lang.NumberFormatException.forInputString(NumberFormatException.
java:65)
        at java.lang.Integer.parseInt(Integer.java:580)
        at java.lang.Integer.parseInt(Integer.java:615)
        at
org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRp
cClientResponseProcessor.java:104)
        ... 7 more
Output from echo_args() : []

I have read other article which suggests seeing internal protocol response.
But it is clear that if I do not get below response everything else is wrong

Output from say_hello() : Hello from thePreExistingMod
Output from echo_args() : {Status=Test, EchoData=TestSessionIDValue,
FromIP=10.1.1.22}

So what seems to be the trouble and how can I solve it?

Regards




--
Sent from: http://apache-xml-project.6118.n7.nabble.com/Apache-Xml-RPC-Dev-f27887.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org