[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] One question about running Test.java


  • To: <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: 张彭善 <pszhang@xxxxxxxxxxxxx>
  • Date: Mon, 16 Jul 2007 15:13:23 +0800
  • Cc: pszhang@xxxxxxxxxxx
  • Delivery-date: Tue, 17 Jul 2007 10:53:55 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: AcfHeNVtS7m4iT9MSOavHBKwhGwm8g==
  • Thread-topic: One question about running Test.java

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  

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.