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

EndpointParams in @Delegate apis are ignored if the parent api already defines and endpoint

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.2
    • Fix Version/s: 2.0.0
    • Component/s: jclouds-core
    • Labels:
    • Environment:
      Windows 10 x64, Java 1.8.0_71 x64, Maven 3.3.9

      Description

      I'm having issue to use SQS Service with jclouds.

      I could perform all the basic operations except delete a queue.

      SQSExample.java
      // Build SQSApi
      SQSApi sqsApi = ContextBuilder.newBuilder("aws-sqs")
                      .credentials("<identity>", "<credential>")
                      .buildApi(SQSApi.class);
      // Build QueueApi 
      QueueApi queueApi = sqsApi.getQueueApiForRegion("sa-east-1");
      // Create Queue (Works!)
      URI url = queueApi.create("my-queue-1");
      // Get Queue (Works!)
      url = queueApi.get("my-queue-1");
      // Build MessageApi
      MessageApi messageApi = sqsApi.getMessageApiForQueue(url);
      // Send message (Works!)
      messageApi.send(message);
      // Receive message (Works!)
      Message message = messageApi.receive(options);
      // Delete message (Works!)
      messageApi.delete(message.getReceiptHandle());
      // Delete Queue ( Not Works :( )
      queueApi.delete(url);
      
      pom.xml
          <properties>
              <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
              <maven.compiler.source>1.8</maven.compiler.source>
              <maven.compiler.target>1.8</maven.compiler.target>
              <jclouds.version>1.9.2</jclouds.version>
          </properties>
          
          <dependencies>
              <!-- jclouds -->
              <dependency>
                  <groupId>org.apache.jclouds</groupId>
                  <artifactId>jclouds-all</artifactId>
                  <version>${jclouds.version}</version>
                  <scope>provided</scope>
              </dependency>
              <!-- -->
          </dependencies>
      

      No exception is thrown. It seems to occur normally, but the queue is not removed. What am I doing wrong?
      Let me know if you need more information.

        Attachments

          Activity

            People

            • Assignee:
              nacx Ignasi Barrera
              Reporter:
              douglasjunior Douglas Nassif Roma Junior
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: