google-code-export / typica

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

unable to use the autoscalin #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I tried to use createAutoScalingGroup() function and updated my code in 
the trunk(csls to autoscaling e.g).But still I can not make it out. 
2. It seems there is still something wrong with typica.jar uncompressed 
from typica1.6.zip
3. Where can I get the newest version of  "com.xerox.amazonws.typica"

What is the expected output? What do you see instead?
  It is expected to return a description.But it output

Exception in thread "main" com.xerox.amazonws.ec2.AutoScalingException: 
Problem parsing returned message.
    at com.xerox.amazonws.ec2.AutoScaling.makeRequestInt
(AutoScaling.java:588)
    at com.xerox.amazonws.ec2.AutoScaling.createAutoScalingGroup
(AutoScaling.java:463)
    at TestAutoScaling.main(TestAutoScaling.java:44)
Caused by: javax.xml.bind.UnmarshalException: unexpected element 
(uri:"http://autoscaling.amazonaws.com/doc/2009-05-15/", 
local:"ErrorResponse"). Expected elements are <
{http://csls.amazonaws.com/doc/2009-05-15/}CreateAutoScalingGroup>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
CreateAutoScalingGroupResponse>,<{http://csls.amazonaws.com/doc/2009-05-
15/}CreateLaunchConfiguration>,<{http://csls.amazonaws.com/doc/2009-05-15/}
CreateLaunchConfigurationResponse>,<{http://csls.amazonaws.com/doc/2009-05-
15/}CreateOrUpdateScalingTrigger>,<{http://csls.amazonaws.com/doc/2009-05-
15/}CreateOrUpdateScalingTriggerResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}DeleteAutoScalingGroup>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
DeleteAutoScalingGroupResponse>,<{http://csls.amazonaws.com/doc/2009-05-
15/}DeleteLaunchConfiguration>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DeleteLaunchConfigurationResponse>,<{http://csls.amazonaws.com/doc/2009-05-
15/}DeleteTrigger>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DeleteTriggerResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeAutoScalingGroups>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeAutoScalingGroupsResponse>,<{http://csls.amazonaws.com/doc/2009-05-
15/}DescribeAutoScalingGroupsResult>,<{http://csls.amazonaws.com/doc/2009-
05-15/}DescribeLaunchConfigurations>,<{http://csls.amazonaws.com/doc/2009-
05-15/}DescribeLaunchConfigurationsResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeLaunchConfigurationsResult>,<{http://csls.amazonaws.com/doc/2009-
05-15/}DescribeScalingActivities>,<{http://csls.amazonaws.com/doc/2009-05-
15/}DescribeScalingActivitiesResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeScalingActivitiesResult>,<{http://csls.amazonaws.com/doc/2009-05-
15/}DescribeTriggers>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeTriggersResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}
DescribeTriggersResult>,<{http://csls.amazonaws.com/doc/2009-05-15/}
Error>,<{http://csls.amazonaws.com/doc/2009-05-15/}ErrorResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}ResponseMetadata>,<
{http://csls.amazonaws.com/doc/2009-05-15/}SetDesiredCapacity>,<
{http://csls.amazonaws.com/doc/2009-05-15/}SetDesiredCapacityResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
TerminateInstanceInAutoScalingGroup>,<{http://csls.amazonaws.com/doc/2009-
05-15/}TerminateInstanceInAutoScalingGroupResponse>,<
{http://csls.amazonaws.com/doc/2009-05-15/}
TerminateInstanceInAutoScalingGroupResult>,<
{http://csls.amazonaws.com/doc/2009-05-15/}UpdateAutoScalingGroup>,<
{http://csls.amazonaws.com/doc/2009-05-15/}UpdateAutoScalingGroupResponse>
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent
(UnmarshallingContext.java:556)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError
(Loader.java:199)
    at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError
(Loader.java:194)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElemen
t(Loader.java:71)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLo
ader.childElement(UnmarshallingContext.java:957)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement
(UnmarshallingContext.java:399)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement
(UnmarshallingContext.java:380)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement
(SAXConnector.java:101)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement
(AbstractSAXParser.java:501)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE
lement(XMLNSDocumentScannerImpl.java:400)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentD
river.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Frag
mentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver
.next(XMLDocumentScannerImpl.java:921)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next
(XMLDocumentScannerImpl.java:648)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next
(XMLNSDocumentScannerImpl.java:140)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan
Document(XMLDocumentFragmentScannerImpl.java:510)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:807)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(XML11Configuration.java:737)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
(XMLParser.java:107)
    at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(AbstractSAXParser.java:1205)
    at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse
(SAXParserImpl.java:522)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0
(UnmarshallerImpl.java:195)
    at 
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal
(UnmarshallerImpl.java:168)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:137)
    at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
(AbstractUnmarshallerImpl.java:184)
    at com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream
(JAXBuddy.java:80)
    at com.xerox.amazonws.common.AWSQueryConnection.createException
(AWSQueryConnection.java:575)
    at com.xerox.amazonws.common.AWSQueryConnection.makeRequest
(AWSQueryConnection.java:447)
    at com.xerox.amazonws.ec2.AutoScaling.makeRequestInt
(AutoScaling.java:584)
    ... 2 more

Please use labels and text to provide additional information.

Original issue reported on code.google.com by Thomasy...@gmail.com on 18 Mar 2010 at 3:05

GoogleCodeExporter commented 9 years ago
Looks like a problem parsing the error response. I'll try to reproduce 
(shouldn't be 
hard).

Original comment by dkavan...@gmail.com on 22 Mar 2010 at 11:39

GoogleCodeExporter commented 9 years ago
I tried to reproduce. I made good calls for creating launch config, then 
autoscaling 
group. Then, I tried creating an autoscaling group with a bogus launch config 
name, 
and got this response;
     [java] Exception in thread "main" com.xerox.amazonws.ec2.AutoScalingException: 
Client error : (ValidationError) Launch configuration name not found - null

So, I think the error handling is working fine. 

To your comment about a problem with the typica.jar. I'm not sure how. It's 
been 
downloaded over 1000 times. I also use an automate build script for releases, 
so it's 
been done exactly the same way for almost 3 years now.

What version of Java are you using? Could there be 2 versions of JAXB in your 
classpath? That could cause an unmarshalling exception like this.

I'm closing this out if I don't hear back.

Original comment by dkavan...@gmail.com on 22 Mar 2010 at 11:50

GoogleCodeExporter commented 9 years ago

Original comment by dkavan...@gmail.com on 8 Jul 2010 at 8:53