rajatdt / typica

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

ELB endpoint is incorrect #62

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the following code:

        LoadBalancing ELB = new LoadBalancing(awsAccessId, awsSecretKey);
        try {
            ELB.describeLoadBalancers();
        } catch (LoadBalancingException e) {
            e.printStackTrace();
        } 

What is the expected output? What do you see instead?
It should terminate normally. Instead the connection attempt times out.
When I specify the endpoint "elasticloadbalancing.amazonaws.com" in the
constructor I get a JAXB XML exception complaining that the namespaces do
not match:
Caused by: javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://elasticloadbalancing.amazonaws.com/doc/2009-05-15/",
local:"DescribeLoadBalancersResponse"). Expected elements are
<{http://lbs.amazonaws.com/doc/2009-05-15/}ConfigureHealthCheck>,<{http://lbs.am
azonaws.com/doc/2009-05-15/}ConfigureHealthCheckResponse>,<{http://lbs.amazonaws
.com/doc/2009-05-15/}ConfigureHealthCheckResult>,<{http://lbs.amazonaws.com/doc/
2009-05-15/}CreateLoadBalancer>,<{http://lbs.amazonaws.com/doc/2009-05-15/}Creat
eLoadBalancerResponse>,<{http://lbs.amazonaws.com/doc/2009-05-15/}CreateLoadBala
ncerResult>,<{http://lbs.amazonaws.com/doc/2009-05-15/}DeleteLoadBalancer>,<{htt
p://lbs.amazonaws.com/doc/2009-05-15/}DeleteLoadBalancerResponse>,<{http://lbs.a
mazonaws.com/doc/2009-05-15/}DeleteLoadBalancerResult>,<{http://lbs.amazonaws.co
m/doc/2009-05-15/}DeregisterInstancesFromLoadBalancer>,<{http://lbs.amazonaws.co
m/doc/2009-05-15/}DeregisterInstancesFromLoadBalancerResponse>,<{http://lbs.amaz
onaws.com/doc/2009-05-15/}DeregisterInstancesFromLoadBalancerResult>,<{http://lb
s.amazonaws.com/doc/2009-05-15/}DescribeInstanceHealth>,<{http://lbs.amazonaws.c
om/doc/2009-05-15/}DescribeInstanceHealthResponse>,<{http://lbs.amazonaws.com/do
c/2009-05-15/}DescribeInstanceHealthResult>,<{http://lbs.amazonaws.com/doc/2009-
05-15/}DescribeLoadBalancers>,<{http://lbs.amazonaws.com/doc/2009-05-15/}Describ
eLoadBalancersResponse>,<{http://lbs.amazonaws.com/doc/2009-05-15/}DescribeLoadB
alancersResult>,<{http://lbs.amazonaws.com/doc/2009-05-15/}DisableAvailabilityZo
nesForLoadBalancer>,<{http://lbs.amazonaws.com/doc/2009-05-15/}DisableAvailabili
tyZonesForLoadBalancerResponse>,<{http://lbs.amazonaws.com/doc/2009-05-15/}Disab
leAvailabilityZonesForLoadBalancerResult>,<{http://lbs.amazonaws.com/doc/2009-05
-15/}EnableAvailabilityZonesForLoadBalancer>,<{http://lbs.amazonaws.com/doc/2009
-05-15/}EnableAvailabilityZonesForLoadBalancerResponse>,<{http://lbs.amazonaws.c
om/doc/2009-05-15/}EnableAvailabilityZonesForLoadBalancerResult>,<{http://lbs.am
azonaws.com/doc/2009-05-15/}Error>,<{http://lbs.amazonaws.com/doc/2009-05-15/}Er
rorResponse>,<{http://lbs.amazonaws.com/doc/2009-05-15/}RegisterInstancesWithLoa
dBalancer>,<{http://lbs.amazonaws.com/doc/2009-05-15/}RegisterInstancesWithLoadB
alancerResponse>,<{http://lbs.amazonaws.com/doc/2009-05-15/}RegisterInstancesWit
hLoadBalancerResult>,<{http://lbs.amazonaws.com/doc/2009-05-15/}ResponseMetadata
>
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(Unmars
hallingContext.java:523)
        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.reportUnexpectedChildElement(Loa
der.java:71)
        at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.
childElement(UnmarshallingContext.java:920)

What version of the product are you using? On what operating system?
1.6 on Max OS X.

Please provide any additional information below.
See this thread for more info, including a diagnosis and proposed fix:
http://groups.google.com/group/typica/t/f3aa7299bd28a20e

Original issue reported on code.google.com by shlomo.s...@gmail.com on 6 Sep 2009 at 8:43

GoogleCodeExporter commented 9 years ago
same here, Typica 1.6 on Java 1.6 on Linux

Original comment by mikhail....@gmail.com on 24 Sep 2009 at 7:26

GoogleCodeExporter commented 9 years ago
I've fixed this in the schema and java.

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

GoogleCodeExporter commented 9 years ago
Issue 68 has been merged into this issue.

Original comment by dkavan...@gmail.com on 23 Mar 2010 at 10:57