I'm having an issue with this as well.  My code runs fine synchronously.
I am trying to get it to make a few simple calls that return
status/output of my remote object asynchronous.
 
My class implements handleResult and handleError and I am making my
remote call as follows:
 
client.executeAsync(handler + ".getStatus", new Object[] { }, this)
 
I get the following error:
 
[Fatal Error] :-1:-1 Premature end of file.
 
In addition, if I print the stack traces on the from the error in
handleError I get:
 
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse servers
response: Premature end of file.
    at
org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStream
Transport.java:177)
    at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamT
ransport.java:145)
    at
org.apache.xmlrpc.client.RpcHttpTransport.sendRequest(XmlRpcHttpTranspor
t.java:94)
    at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHtt
pTransport.java:39)
    at
org.apache.xmlrpc.client.XmlRpcClientWorker$1.run(XmlRpcClientWorker.jav
a:77)
    at java.lang.Thread.run(Thread.java:595)
 
 
Thanks
Dan
 

Reply via email to