Dear sir,
I am using Xen-api to do some work. But when I run
the Test.java file, the JVM throws exceptions like this:
org.apache.xmlrpc.XmlRpcException: Failed to create input stream: Unexpected end of
file from server
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:60)
at
org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:95)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at
com.xensource.xenapi.ConnectionHelper.dispatch(ConnectionHelper.java:97)
at
com.xensource.xenapi.Session.loginWithPassword(Session.java:263)
at Test.main(Test.java:29)
Caused by:
java.net.SocketException: Unexpected end of file from server
at
sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at
sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at
sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown
Source)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.getInputStream(XmlRpcSunHttpTransport.java:58)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:145)
at
org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:95)
at
org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
at
org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:136)
at
org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:125)
at
com.xensource.xenapi.ConnectionHelper.dispatch(ConnectionHelper.java:97)
at
com.xensource.xenapi.Session.loginWithPassword(Session.java:263)
at Test.main(Test.java:29)
I think the connection is well. It may be the
problem from session.loginWithPassword. I don’t know why, so I hope to get the
solution about this.
Thanks very much!
Best wishes!
Pengshan Zhang
2007.7.16