Results 1 to 5 of 5

Thread: Please publish which versions of Rabbit are compatible with Spring AMQP

  1. #1

    Default Please publish which versions of Rabbit are compatible with Spring AMQP

    I may have missed it somewhere but it would be awesome if known issues are published. For example, I lost a bunch of time troubleshooting an issue that turned out to be an incompatibility with the latest Java client. Code works with version 2.1.0 but not 2.6.1. Here's the exception I was getting before figuring out that there was an issue with the client:

    java.lang.NoClassDefFoundError: com/rabbitmq/client/impl/LongString

  2. #2

    Default

    I was mistaken. It looks like spring-rabbit has a transitive dependency on amqp-client 2.5.0. Once I removed the java client dependency everything worked.

  3. #3
    Join Date
    Nov 2011
    Posts
    2

    Default CAUTION: amqp-client v2.5 and and v2.6 are not compatible :-(

    Unfortunately version v2.5 and v2.6 of the rabbitmq amqp-client are not compatible to each other (LongString moved from com.rabbitmq.client.impl to com.rabbitmq.client IIRC) so that you might run into problems when using v2.6.

    Because of this you might get a ClassNotFoundException in spring-rabbit if you try to it with v2.6

  4. #4

    Default

    Are you not using maven?

  5. #5
    Join Date
    Nov 2011
    Posts
    2

    Default I was using maven...

    ... never the less the 2.6.1 version (I had still declared) was picked up instead of the 2.5 version :-( I would have expected that both versions would then be present, but that wasn't the case. Please ask maven why :-)
    Just by removing the 2.6 version solved the problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •