asolfre / typica

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

Exception in ec2.monitorInstances(monitorInstanceList) #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Invoke  ec2.monitorInstances(monitorInstanceList), with just 1 instance 
id in the monitorInstanceList( my instance was less than 2 minutes old)
2. Monitoring is enabled, but exception is thrown
3. This may have something to do with the state of the instance showing 
as "pending".

What is the expected output? What do you see instead?
No expection. 
I see excetion with null exception.getmessage()

Please use labels and text to provide additional information.

Original issue reported on code.google.com by srinivas...@gmail.com on 27 Feb 2010 at 11:47

GoogleCodeExporter commented 9 years ago
I got the following exception when passing in a list of instance ids whcih 
contained 
one ID. It enables monitoring but returns an exception.

java.lang.ClassCastException: Cannot cast javax.xml.bind.JAXBElement to 
com.xerox.amazonws.typica.jaxb.MonitorInstancesResponseType
        at java.lang.Class.cast(Class.java:3007)
        at com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream(JAXBuddy.java:80)
        at 
com.xerox.amazonws.common.AWSQueryConnection.makeRequest(AWSQueryConnection.java
:434)
        at com.xerox.amazonws.ec2.Jec2.makeRequestInt(Jec2.java:2292)
        at com.xerox.amazonws.ec2.Jec2.monitorInstances(Jec2.java:2144)

Original comment by David.M.Beer@gmail.com on 8 Mar 2010 at 4:24

GoogleCodeExporter commented 9 years ago
This seems to be related to how the monitor/unmonitor response structures are 
defined 
in the schema and how jaxb handles them. I'll have to tweak the schema, then 
the code 
to match.

Original comment by dkavan...@gmail.com on 23 Mar 2010 at 2:01

GoogleCodeExporter commented 9 years ago
This is fixed in svn r315

Original comment by dkavan...@gmail.com on 23 Mar 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Confirmed with source built as of today 23rd March

Original comment by David.M.Beer@gmail.com on 23 Mar 2010 at 11:04