java.lang.NoClassDefFoundError: com.rabbitmq.client.impl.AMQChannel$$Lambda$0

802 views
Skip to first unread message

Shayan Sabahi

unread,
Oct 2, 2017, 5:13:55 AM10/2/17
to rabbitmq-users

hello
i got the following error from this line after i upgraded rabbitmq library to version 5


connection = factory.newConnection();



FATAL EXCEPTION: Thread-1669 Process: com.****, PID: 18398 java.lang.NoClassDefFoundError: com.rabbitmq.client.impl.AMQChannel$$Lambda$0 at com.rabbitmq.client.impl.AMQChannel.enqueueRpc(AMQChannel.java:204) at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:289) at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:64) at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(AutorecoveringConnection.java:99) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:944) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:903) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:861) at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:1013) at com.****.*****.*****.****.lambda$onStartCommand$2$*****(*****.java:130) at com.****.****.service.****$$Lambda$2.run(Unknown Source) at java.lang.Thread.run(Thread.java:818)



i've changed every callback to lamda btw


everything worked perfectly in prior version

Michael Klishin

unread,
Oct 2, 2017, 5:16:50 AM10/2/17
to rabbitm...@googlegroups.com
See https://github.com/rabbitmq/rabbitmq-java-client/releases/tag/v5.0.0. JDK 8 is now the minimum required
version.

Earlier Java versions do not support lambdas.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Michael Klishin

unread,
Oct 2, 2017, 5:23:28 AM10/2/17
to rabbitm...@googlegroups.com
Shayan posted some additional info on GitHub, where this question was posted originally.

It is not sufficient to build your app with JDK 8. You must also use JDK 8 when you run it.

To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Shayan Sabahi

unread,
Oct 2, 2017, 5:36:56 AM10/2/17
to rabbitmq-users

sry i was confused about google group and github issue . thats why i answered there 

. so i should run on jdk 8 
 i didnt know that
 thank u 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages