jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xianheng Ma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-834) Azure API operation failed (The reference to entity "redirect_uri" must end with the ';' delimiter.)
Date Sun, 01 Mar 2015 06:31:05 GMT
Xianheng Ma created JCLOUDS-834:
-----------------------------------

             Summary: Azure API operation failed (The reference to entity "redirect_uri" must
end with the ';' delimiter.)
                 Key: JCLOUDS-834
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-834
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-labs
            Reporter: Xianheng Ma


Try to do simple test against the AzureAPI, but failed because of the following:
{code}
[Fatal Error] :1:303: The reference to entity "redirect_uri" must end with the ';' delimiter.
Exception in thread "main" java.lang.RuntimeException: request: GET https://manage.windowsazure.com/<my
subscriberid>/services/hostedservices/<my service name>?embed-detail=true HTTP/1.1;
response: HTTP/1.1 200 OK; cause: java.lang.RuntimeException: request: GET https://manage.windowsazure.com/<my
subscriberid>/services/hostedservices/<my service name>?embed-detail=true HTTP/1.1;
error at 303:1 in document ; cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber:
303; The reference to entity "redirect_uri" must end with the ';' delimiter.
	at org.jclouds.http.functions.ParseSax.addDetailsAndPropagate(ParseSax.java:173)
	at org.jclouds.http.functions.ParseSax.addDetailsAndPropagate(ParseSax.java:145)
	at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:85)
	at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:51)
	at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90)
	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73)
	at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44)
	at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117)
	at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
	at com.sun.proxy.$Proxy47.get(Unknown Source)
	at org.xxx.jclouds.compute.azure.ComputeTest.main(ComputeTest.java:27)
Caused by: java.lang.RuntimeException: request: GET https://manage.windowsazure.com/<my
subscriberid>/services/hostedservices/<my service name>?embed-detail=true HTTP/1.1;
error at 303:1 in document ; cause: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber:
303; The reference to entity "redirect_uri" must end with the ';' delimiter.
	at org.jclouds.http.functions.ParseSax.addDetailsAndPropagate(ParseSax.java:173)
	at org.jclouds.http.functions.ParseSax.addDetailsAndPropagate(ParseSax.java:145)
	at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:131)
	at org.jclouds.http.functions.ParseSax.apply(ParseSax.java:83)
	... 8 more
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 303; The reference
to entity "redirect_uri" must end with the ';' delimiter.
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648)
	at org.jclouds.http.functions.ParseSax.doParse(ParseSax.java:140)
	at org.jclouds.http.functions.ParseSax.parse(ParseSax.java:129)
	... 9 more
{code}

Here's the simple test code:
{code}
AzureComputeApi api = ContextBuilder.newBuilder(new AzureComputeProviderMetadata()).credentials(ComputeTest.class.getResource("path_to_azure.p12").getFile(),
"my_cred").endpoint("https://manage.windowsazure.com/<my subscriber id>").buildApi(AzureComputeApi.class);
CloudService cloudService = api.getCloudServiceApi().get("test_name");
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message