Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-834

Azure API operation failed (The reference to entity "redirect_uri" must end with the ';' delimiter.)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None

    Description

      Try to do simple test against the AzureAPI, but failed because of the following:

      [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
      

      Here's the simple test 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");
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            xianhengma Xianheng Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: