org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Listener threw exception

Stack Overflow | Flaviu Cicio | 10 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd , Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    AMQP(RabbitMQ) Could not deserialize object, ClassNotFoundException

    Stack Overflow | 10 months ago | Flaviu Cicio
    org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Listener threw exception
  2. 0

    ClassNotFoundException in spring-rabbit depending on when consumer or producer is started

    Stack Overflow | 3 months ago | nickb
    org.springframework.amqp.rabbit.listener.exception.ListenerExecutionFailedException: Listener threw exception
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  5. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.productservice.model.Product

    at java.net.URLClassLoader.findClass()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_91]
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_91]
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_91]
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_91]
    4 frames
  3. Spring Core
    ConfigurableObjectInputStream.resolveClass
    1. org.springframework.util.ClassUtils.forName(ClassUtils.java:250)[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.core.ConfigurableObjectInputStream.resolveClass(ConfigurableObjectInputStream.java:75)[spring-core-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  4. Spring AMQP Core
    SimpleMessageConverter$1.resolveClass
    1. org.springframework.amqp.support.converter.SimpleMessageConverter$1.resolveClass(SimpleMessageConverter.java:179)[spring-amqp-1.5.6.RELEASE.jar:na]
    1 frame
  5. Java RT
    ObjectInputStream.readObject
    1. java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1620)[na:1.8.0_91]
    2. java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1521)[na:1.8.0_91]
    3. java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1781)[na:1.8.0_91]
    4. java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)[na:1.8.0_91]
    5. java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)[na:1.8.0_91]
    5 frames
  6. Spring AMQP Core
    SimpleMessageConverter.fromMessage
    1. org.springframework.amqp.utils.SerializationUtils.deserialize(SerializationUtils.java:76)[spring-amqp-1.5.6.RELEASE.jar:na]
    2. org.springframework.amqp.support.converter.SimpleMessageConverter.fromMessage(SimpleMessageConverter.java:110)[spring-amqp-1.5.6.RELEASE.jar:na]
    2 frames
  7. Spring RabbitMQ Support
    MessagingMessageListenerAdapter$MessagingMessageConverterAdapter.extractPayload
    1. org.springframework.amqp.rabbit.listener.adapter.AbstractAdaptableMessageListener.extractMessage(AbstractAdaptableMessageListener.java:185)[spring-rabbit-1.5.6.RELEASE.jar:na]
    2. org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter$MessagingMessageConverterAdapter.extractPayload(MessagingMessageListenerAdapter.java:173)[spring-rabbit-1.5.6.RELEASE.jar:na]
    2 frames
  8. Spring AMQP Core
    MessagingMessageConverter.fromMessage
    1. org.springframework.amqp.support.converter.MessagingMessageConverter.fromMessage(MessagingMessageConverter.java:118)[spring-amqp-1.5.6.RELEASE.jar:na]
    1 frame
  9. Spring RabbitMQ Support
    SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run
    1. org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.toMessagingMessage(MessagingMessageListenerAdapter.java:102)[spring-rabbit-1.5.6.RELEASE.jar:na]
    2. org.springframework.amqp.rabbit.listener.adapter.MessagingMessageListenerAdapter.onMessage(MessagingMessageListenerAdapter.java:88)[spring-rabbit-1.5.6.RELEASE.jar:na]
    3. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:757)[spring-rabbit-1.5.6.RELEASE.jar:na]
    4. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:680)[spring-rabbit-1.5.6.RELEASE.jar:na]
    5. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$001(SimpleMessageListenerContainer.java:93)[spring-rabbit-1.5.6.RELEASE.jar:na]
    6. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$1.invokeListener(SimpleMessageListenerContainer.java:183)[spring-rabbit-1.5.6.RELEASE.jar:na]
    7. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.invokeListener(SimpleMessageListenerContainer.java:1358)[spring-rabbit-1.5.6.RELEASE.jar:na]
    8. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:661)[spring-rabbit-1.5.6.RELEASE.jar:na]
    9. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:1102)[spring-rabbit-1.5.6.RELEASE.jar:na]
    10. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:1086)[spring-rabbit-1.5.6.RELEASE.jar:na]
    11. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1100(SimpleMessageListenerContainer.java:93)[spring-rabbit-1.5.6.RELEASE.jar:na]
    12. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1203)[spring-rabbit-1.5.6.RELEASE.jar:na]
    12 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
    1 frame