asolfre / typica

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

Unable to use Autoscaling API #61

Closed GoogleCodeExporter closed 9 years ago

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

Instantiate com.xerox.amazonws.ec2.AutoScaling and call the
describeAutoScalingGroups() method.

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

I expect it to return a value.  Instead, it just hangs while waiting to
establish an HTTP Connection to csls.amazonaws.com:443

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

Typica 1.6 on Ubuntu Linux 9.04

Please provide any additional information below.

The AWS docs say to use this url for the server: autoscaling.amazonaws.com
I tried that by passing it to the constructor and then the HTTP connection
succeeded but the response could not be parsed resulting in this exception:

Caused by: javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://autoscaling.amazonaws.com/doc/2009-05-15/",
local:"DescribeAutoScalingGroupsResponse"). Expected elements are
<{http://csls.amazonaws.com/doc/2009-05-15/}CreateAutoScalingGroup>,<{http://csl
s.amazonaws.com/doc/2009-05-15/}CreateAutoScalingGroupResponse>,<{http://csls.am
azonaws.com/doc/2009-05-15/}CreateLaunchConfiguration>,<{http://csls.amazonaws.c
om/doc/2009-05-15/}CreateLaunchConfigurationResponse>,<{http://csls.amazonaws.co
m/doc/2009-05-15/}CreateOrUpdateScalingTrigger>,<{http://csls.amazonaws.com/doc/
2009-05-15/}CreateOrUpdateScalingTriggerResponse>,<{http://csls.amazonaws.com/do
c/2009-05-15/}DeleteAutoScalingGroup>,<{http://csls.amazonaws.com/doc/2009-05-15
/}DeleteAutoScalingGroupResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}De
leteLaunchConfiguration>,<{http://csls.amazonaws.com/doc/2009-05-15/}DeleteLaunc
hConfigurationResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}DeleteTrigge
r>,<{http://csls.amazonaws.com/doc/2009-05-15/}DeleteTriggerResponse>,<{http://c
sls.amazonaws.com/doc/2009-05-15/}DescribeAutoScalingGroups>,<{http://csls.amazo
naws.com/doc/2009-05-15/}DescribeAutoScalingGroupsResponse>,<{http://csls.amazon
aws.com/doc/2009-05-15/}DescribeAutoScalingGroupsResult>,<{http://csls.amazonaws
.com/doc/2009-05-15/}DescribeLaunchConfigurations>,<{http://csls.amazonaws.com/d
oc/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/}DescribeTrigge
rsResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}DescribeTriggersResult>,
<{http://csls.amazonaws.com/doc/2009-05-15/}Error>,<{http://csls.amazonaws.com/d
oc/2009-05-15/}ErrorResponse>,<{http://csls.amazonaws.com/doc/2009-05-15/}Respon
seMetadata>,<{http://csls.amazonaws.com/doc/2009-05-15/}SetDesiredCapacity>,<{ht
tp://csls.amazonaws.com/doc/2009-05-15/}SetDesiredCapacityResponse>,<{http://csl
s.amazonaws.com/doc/2009-05-15/}TerminateInstanceInAutoScalingGroup>,<{http://cs
ls.amazonaws.com/doc/2009-05-15/}TerminateInstanceInAutoScalingGroupResponse>,<{
http://csls.amazonaws.com/doc/2009-05-15/}TerminateInstanceInAutoScalingGroupRes
ult>,<{http://csls.amazonaws.com/doc/2009-05-15/}UpdateAutoScalingGroup>,<{http:
//csls.amazonaws.com/doc/2009-05-15/}UpdateAutoScalingGroupResponse>
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEve
nt(UnmarshallingContext.java:631)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java
:236)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java
:231)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildEl
ement(Loader.java:105)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRo
otLoader.childElement(UnmarshallingContext.java:1038)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startEle
ment(UnmarshallingContext.java:467)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElem
ent(UnmarshallingContext.java:448)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXC
onnector.java:137)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Abstra
ctSAXParser.java:501)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElemen
t(XMLNSDocumentScannerImpl.java:400)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver
.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentC
ontentDriver.next(XMLDocumentFragmentScannerImpl.java:3095)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next
(XMLDocumentScannerImpl.java:922)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentS
cannerImpl.java:648)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocum
entScannerImpl.java:140)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocum
ent(XMLDocumentFragmentScannerImpl.java:510)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configu
ration.java:807)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configu
ration.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(AbstractSAXPa
rser.java:1205)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXPar
serImpl.java:522)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Un
marshallerImpl.java:200)
    at
com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unm
arshallerImpl.java:173)
    at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerIm
pl.java:137)
    at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerIm
pl.java:184)
    at com.xerox.amazonws.common.JAXBuddy.deserializeXMLStream(JAXBuddy.java:80)
    at
com.xerox.amazonws.common.AWSQueryConnection.makeRequest(AWSQueryConnection.java
:414)
    at com.xerox.amazonws.ec2.AutoScaling.makeRequestInt(AutoScaling.java:584)

Original issue reported on code.google.com by adwords%...@gtempaccount.com on 28 Aug 2009 at 11:58

GoogleCodeExporter commented 9 years ago
Is there any known workaround for Typica 1.6?

Original comment by kwei...@gmail.com on 24 Sep 2009 at 12:02

GoogleCodeExporter commented 9 years ago
I found that I had the wrong endpoint in the schema and code. I've fixed that 
in SVN r288

Original comment by dkavan...@gmail.com on 13 Oct 2009 at 1:54