Rupesh029 / typica

Automatically exported from code.google.com/p/typica
Apache License 2.0
0 stars 0 forks source link

ERROR com.xerox.amazonws.common.AWSQueryConnection - Couldn't parse error response! #131

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running TypicaTutorial.java using Eclipse. Code downloaded from google code.
2. Using eucalyptus instances (version 2.0.3)
3. Fails when calling describeInstances

What is the expected output? What do you see instead?
euca{.....eucalyptus specific authentication information....}
Run: Instance ID = i-432207BB, State = pending

What version of the product are you using? On what operating system?
Eucalyptus-2.0.3
Eclipse - Version: Indigo Release
System - Ubuntu 10.04 LTS - the Lucid Lynx 

Please provide any additional information below.

Starts the eucalyptus instance, then fails with this error message.

[Fatal Error] :1:1: Content is not allowed in prolog.
1    [main] ERROR com.xerox.amazonws.common.AWSQueryConnection  - Couldn't 
parse error response!
org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
    at com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream(JAXBuddy.java:117)
    at com.xerox.amazonws.common.AWSQueryConnection.createException(AWSQueryConnection.java:708)
    at com.xerox.amazonws.common.AWSQueryConnection.makeRequest(AWSQueryConnection.java:497)
    at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2357)
    at com.xerox.amazonws.ec2.Jec2.describeInstances(Jec2.java:826)
    at com.xerox.amazonws.ec2.Jec2.describeInstances(Jec2.java:806)
    at org.cybera.TypicaTutorial.runInstance(TypicaTutorial.java:122)
    at org.cybera.TypicaTutorial.start(TypicaTutorial.java:83)
    at org.cybera.TypicaTutorial.main(TypicaTutorial.java:61)
Exception in thread "main" com.xerox.amazonws.ec2.EC2Exception: Client error : 
Couldn't parse error response!
    at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2359)
    at com.xerox.amazonws.ec2.Jec2.describeInstances(Jec2.java:826)
    at com.xerox.amazonws.ec2.Jec2.describeInstances(Jec2.java:806)
    at org.cybera.TypicaTutorial.runInstance(TypicaTutorial.java:122)
    at org.cybera.TypicaTutorial.start(TypicaTutorial.java:83)
    at org.cybera.TypicaTutorial.main(TypicaTutorial.java:61)

Original issue reported on code.google.com by vana.re...@gmail.com on 24 Apr 2012 at 2:03

GoogleCodeExporter commented 9 years ago
I increased the sleep time in code and the error is gone.

do {
            instance = cloud.describeInstances(instances).get(0).getInstances().get(0);

            System.out.println("Run: Instance ID = " + instance.getInstanceId() + ", State = " + instance.getState());

            Thread.sleep(5000); //Increase this TIME
        } while (!instance.isRunning());

Original comment by vana.re...@gmail.com on 24 Apr 2012 at 2:21