Comments (18)
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.
We are aware of this issue and are working on a fix. Stay tuned.
Trevor @ AWS
from amazon-sqs-java-messaging-lib.
We are actively working on this JMS library and will continue to support it going forward.
from amazon-sqs-java-messaging-lib.
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.
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.
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.
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.
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.
I tried jgangemi 's suggestion and it worked. Thx
from amazon-sqs-java-messaging-lib.
@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.
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.
@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.
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.
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.
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.
This issue is now fixed.
from amazon-sqs-java-messaging-lib.
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.
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)
- Dependency mismatch with `aws-java-sdk-pom` HOT 1
- Switch from javax.jms.* to jakarta.jms.* to support Spring Boot 3 HOT 18
- constructor SQSConnectionFactory migrating from com.amazonaws ยป amazon-sqs-java-messaging-lib version 1.1.2 to 2.0.2 HOT 1
- Vulnerability issue in amazon-sqs-java-messaging-lib:jar:2.0.2:compile
- Inconsistent Maven deployment for com.amazonaws:amazon-sqs-java-messaging-lib 1.1.3 HOT 1
- RangedAcknowledger logs "SQSMessageID: xxx with SQSMessageReceiptHandle: xxx does not exist." when acknowledge SQSTextMessage HOT 2
- Library latest version is not compatible with spring version 6.0.x HOT 8
- `SQSConnectionFactory` can't consume `SqsAsyncClient`
- Avoid pulling in Lombok as transitive dependency HOT 3
- Exception listener on connection is not supported
- Is there any documentation about how to get started with JMS for amazon-sqs-java-messaging-lib 2.x ? HOT 1
- Version mismatch in maven central repo HOT 2
- Java 11 support not there on amazon-sqs-java-messaging-lib:2.1.1 version HOT 1
- c
- Spring Infinity Loop For QueueDoesNotExistException HOT 3
- When retrying error on Queue Throttled, client must use a new ReceiveRequestAttemptId.
- Spring boot 3.X - change to jakarta HOT 1
- Will this ever be packaged under software.amazon.awssdk for AWS SDK V2? HOT 1
- Supported JMS specification version is still 1.1? HOT 1
- SQSMessageConsumerPrefetch keeps fetching messages after stop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-sqs-java-messaging-lib.