Giter Club home page Giter Club logo

Comments (18)

jgangemi avatar jgangemi commented on August 21, 2024 5

up to 1.10.77 works w/o issue. the 1.11.x series seems to have broken compatibility (and aws needs to read up on semantic versioning).

hopefully we'll get a response on this soon.

from amazon-sqs-java-messaging-lib.

trex-amazon avatar trex-amazon commented on August 21, 2024 4

We are aware of this issue and are working on a fix. Stay tuned.

Trevor @ AWS

from amazon-sqs-java-messaging-lib.

trex-amazon avatar trex-amazon commented on August 21, 2024 4

We are actively working on this JMS library and will continue to support it going forward.

from amazon-sqs-java-messaging-lib.

jgangemi avatar jgangemi commented on August 21, 2024 1

have you not tried just including the aws libraries you want directly in the pom and excluding the dependencies from this library?

i am currently using this library w/ 1.10.56 just fine.

from amazon-sqs-java-messaging-lib.

sanjaypujare avatar sanjaypujare commented on August 21, 2024 1

Here it is

  <groupId>com.amazonaws</groupId>

  <artifactId>aws-java-sdk-sqs</artifactId>

  <version>1.10.73</version>

  <scope>test</scope>

</dependency>

<dependency>

  <groupId>com.amazonaws</groupId>

  <artifactId>amazon-sqs-java-messaging-lib</artifactId>

  <version>1.0.0</version>

  <scope>test</scope>

  <exclusions>

    <exclusion>

      <groupId>com.amazonaws</groupId>

      <artifactId>aws-java-sdk-sqs</artifactId>

    </exclusion>

  </exclusions>

</dependency>

On Tue, Jul 19, 2016 at 10:11 PM, Eitan Sela [email protected]
wrote:

@sanjaypujare https://github.com/sanjaypujare
Thanks for the quick answer!
Can you attach this part in pom.xml you have done to make it work, with
the exclusion?
Thanks again.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANgpj5gSJbHRkOcNjDG8pucmMCF-q0rEks5qXa4RgaJpZM4JN2Ub
.

from amazon-sqs-java-messaging-lib.

CristiGuran avatar CristiGuran commented on August 21, 2024 1

Hi,
I have the same problem. I have tried with thea latest sdk-sqs version.
In my pom.xml I have only this:

com.amazonaws
aws-java-sdk-sqs
1.11.417

My dependency:tree shows only these additional dependencies from a library I added:
+- com.amazonaws:aws-java-sdk-s3:jar:1.11.201:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-kms:jar:1.11.201:compile
[INFO] | | | - com.amazonaws:jmespath-java:jar:1.11.201:compile

Do I need to add anything else?
Thanks!

from amazon-sqs-java-messaging-lib.

sanjaypujare avatar sanjaypujare commented on August 21, 2024

Thanks, I will try that. I wasn't aware of the POM dependency exclusion feature (I guess that's what you are referring to) and try 1.10.73.

from amazon-sqs-java-messaging-lib.

fgauthier avatar fgauthier commented on August 21, 2024

An easy trap to fall into happens if you only add the following dependency to your pom:

    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk</artifactId>
        <version> {aws-sdk-version > 1.9.6} </version>
    </dependency>

Where: {aws-sdk-version > 1.9.6} is some version greater than 1.9.6

This will cause all aws jars to be included with the newer version except to the specific sqs jar - that one will still have version 1.9.6. The reason for this is due to the fact that the amazon-sqs-java-messaging-lib pom includes an explicit version 1.9.6 dependency for the aws-java-sdk-sqs artifact. The resulting mismatched versions lead to the NoSuchMethodError above.

To avoid this make sure you have the following dependency in your pom:

    <dependency>
        <groupId>com.amazonaws</groupId>
        <artifactId>aws-java-sdk-sqs</artifactId>
        <version> {aws-sdk-version > 1.9.6} </version>
    </dependency>

from amazon-sqs-java-messaging-lib.

sanjaypujare avatar sanjaypujare commented on August 21, 2024

I tried jgangemi 's suggestion and it worked. Thx

from amazon-sqs-java-messaging-lib.

eitansela avatar eitansela commented on August 21, 2024

@sanjaypujare
Have you modified the pom.xml of the amazon-sqs-java-messaging-lib jar and then you use it?
What should be the solution if I want to build it with gradle or maven? Then I will need my own repo to store this jar...

from amazon-sqs-java-messaging-lib.

sanjaypujare avatar sanjaypujare commented on August 21, 2024

Use the exclusion feature described here
https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html

This is for maven. Not sure about gradle.

On Tue, Jul 19, 2016 at 10:02 PM, Eitan Sela [email protected]
wrote:

@sanjaypujare https://github.com/sanjaypujare
Have you modified the pom.xml of the amazon-sqs-java-messaging-lib jar and
then you use it?
What should be the solution if I want to build it with gradle or maven?
Then I will need my own repo to store this jar...

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#24 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANgpjyWj4neHzw3Ete2iXJx3Ppl0wn8lks5qXav4gaJpZM4JN2Ub
.

from amazon-sqs-java-messaging-lib.

eitansela avatar eitansela commented on August 21, 2024

@sanjaypujare
Thanks for the quick answer!
Can you attach this part in pom.xml you have done to make it work, with the exclusion?
Thanks again.

from amazon-sqs-java-messaging-lib.

joshuadavis avatar joshuadavis commented on August 21, 2024

I've got a similar issue with amazon-sqs-java-messaging-lib:1.0.0 and aws-java-sdk-sqs:1.11.8

I'm using Gradle and I'm overriding the aws-java-sdk-sqs version.

When the message is being acknowledged the following exception is thrown:

java.lang.NoSuchMethodError: com.amazonaws.services.sqs.AmazonSQS.deleteMessage(Lcom/amazonaws/services/sqs/model/DeleteMessageRequest;)V

from amazon-sqs-java-messaging-lib.

jgangemi avatar jgangemi commented on August 21, 2024

does that mean some of the other things ppl have asked for, etc might also get addressed given this library is gonna get some love?

from amazon-sqs-java-messaging-lib.

jgangemi avatar jgangemi commented on August 21, 2024

awesome - i'd love to see #8 addressed since i want to use this library w/o the jms interface bits and catching exceptions that are never actually thrown is annoying, but that's a separate discussion.

from amazon-sqs-java-messaging-lib.

trex-amazon avatar trex-amazon commented on August 21, 2024

This issue is now fixed.

from amazon-sqs-java-messaging-lib.

jgangemi avatar jgangemi commented on August 21, 2024

it's great that this is fixed but you guys need to read up on semantic versioning - i don't think this qualifies as a bug fix.

from amazon-sqs-java-messaging-lib.

sidath80 avatar sidath80 commented on August 21, 2024

Hi Team,

I am getting following error when try to conect to the AWS sqs with following libs,

	<aws.sdk.version>1.11.192</aws.sdk.version>

            <groupId>com.amazonaws</groupId>
		<artifactId>amazon-sqs-java-messaging-lib</artifactId>
		<version>1.0.0</version>

14:07:16,927 WARN [org.springframework.jms.listener.DefaultMessageListenerContainer] Setup of JMS message listener invoker failed for destination 'testq' - trying to recover. Cause: com.amazonaws.services.sqs.AmazonSQS.deleteMessage(Lcom/amazonaws/services/sqs/model/DeleteMessageRequest;)V

thanks

from amazon-sqs-java-messaging-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.