google-code-export / typica

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

Eucalyptus CC - typica 1.7.2 describeAvailabilityZones throws NullPointerException #116

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Connect to Eucalyptus at ecc.eucalyptus.com
2. Call describeAvailabilityZones 

What is the expected output? What do you see instead?

I expect to get a list of ECC availability zones. Instead, I get a 
NullPointerException.

What version of the product are you using? On what operating system?

Eucalyptus Community Cloud at ecc.eucalyptus.com
typica 1.7.2
Windows XP

Please provide any additional information below.

The following code reproduces the problem:

Jec2 ecc = new Jec2("myecckey", "myeccsecretkey",
  false, "ecc.eucalyptus.com", 8773);
ecc.setResourcePrefix("/services/Eucalyptus");
ecc.setSignatureVersion(1);

try {
    eccZones = ecc.describeAvailabilityZones(null);
} catch (Exception ex) {
    Logger.getLogger(Main.class.getName()).log(Level.SEVERE,
      "ecc describeAvailabilityZones", ex);
}

Original issue reported on code.google.com by skodell on 28 Nov 2010 at 1:57

GoogleCodeExporter commented 9 years ago
Adding the exception message and source code:

Nov 27, 2010 5:38:04 PM ecuatest.Main main
SEVERE: ecc describeAvailabilityZones
java.lang.NullPointerException
        at com.xerox.amazonws.ec2.Jec2.describeAvailabilityZones(Jec2.java:1429)
        at ecuatest.Main.main(Main.java:44)

Source code (Jec2.java:1429):

1429:    for (AvailabilityZoneMessageType msg : 
item.getMessageSet().getItems()) {
1430:        messages.add(msg.getMessage());
1440:    }

Original comment by skodell on 28 Nov 2010 at 2:00