WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] One question about running Test.java
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] One question about running Test.java, 张彭善 <=