org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'receiveMessage' with argument type = [class [B], value = [{[B@136c2849}]

Spring JIRA | Shawn Clark | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    While developing a RabbitMQ simple project I had not implemented a method that I had specified when creating the MessageListenerAdapter. {code} new MessageListenerAdapter(new AlertsReceiver(), "receiveMessage"); {code} Below is the corresponding stack trace. These logs continue to repeat until the application is killed. My understanding is with something as critical as finding a method that has not been implemented the logic should stop the processing of the message such that there isn't an endless loop. {code} 2013-12-19 11:21:11.559 WARN 95672 [SimpleAsyncTaskExecutor-1] --- o.s.a.r.l.SimpleMessageListenerContainer : Execution of Rabbit message listener failed, and no ErrorHandler has been set. org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'receiveMessage' with argument type = [class [B], value = [{[B@136c2849}] at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:467) at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:358) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:546) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:472) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$001(SimpleMessageListenerContainer.java:61) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$1.invokeListener(SimpleMessageListenerContainer.java:110) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.invokeListener(SimpleMessageListenerContainer.java:611) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:454) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:474) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:458) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$300(SimpleMessageListenerContainer.java:61) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.NoSuchMethodException: *omitted*.AlertReceiver.receiveMessage([B) at java.lang.Class.getMethod(Class.java:1655) at org.springframework.util.MethodInvoker.prepare(MethodInvoker.java:178) at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:450) ... 12 common frames omitted {code}

    Spring JIRA | 3 years ago | Shawn Clark
    org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'receiveMessage' with argument type = [class [B], value = [{[B@136c2849}]
  2. 0

    While developing a RabbitMQ simple project I had not implemented a method that I had specified when creating the MessageListenerAdapter. {code} new MessageListenerAdapter(new AlertsReceiver(), "receiveMessage"); {code} Below is the corresponding stack trace. These logs continue to repeat until the application is killed. My understanding is with something as critical as finding a method that has not been implemented the logic should stop the processing of the message such that there isn't an endless loop. {code} 2013-12-19 11:21:11.559 WARN 95672 [SimpleAsyncTaskExecutor-1] --- o.s.a.r.l.SimpleMessageListenerContainer : Execution of Rabbit message listener failed, and no ErrorHandler has been set. org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'receiveMessage' with argument type = [class [B], value = [{[B@136c2849}] at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:467) at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:358) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:546) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:472) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$001(SimpleMessageListenerContainer.java:61) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$1.invokeListener(SimpleMessageListenerContainer.java:110) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.invokeListener(SimpleMessageListenerContainer.java:611) at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:454) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:474) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:458) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$300(SimpleMessageListenerContainer.java:61) at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551) at java.lang.Thread.run(Thread.java:724) Caused by: java.lang.NoSuchMethodException: *omitted*.AlertReceiver.receiveMessage([B) at java.lang.Class.getMethod(Class.java:1655) at org.springframework.util.MethodInvoker.prepare(MethodInvoker.java:178) at org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:450) ... 12 common frames omitted {code}

    Spring JIRA | 3 years ago | Shawn Clark
    org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'receiveMessage' with argument type = [class [B], value = [{[B@136c2849}]
  3. 0

    Execution of Rabbit message listener failed, and no ErrorHandler has been set. Failed to invoke target method with argument type = [class [B],

    Stack Overflow | 3 years ago | vishal
    org.springframework.amqp.rabbit.listener.ListenerExecutionFailedException: Failed to invoke target method 'importExchange' with argument type = [class [B], value = [{[B@427829d8}]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring SimpleMessageListenerContainer for RabbitMQ is aborting on invalid message

    Stack Overflow | 8 months ago | johannesv
    org.springframework.amqp.rabbit.listener.exception.FatalListenerExecutionException: Invalid listener
  6. 0

    How to use pojo with Message type parameter in spring amqp using MessageListenerAdapter?

    Stack Overflow | 3 years ago | vishal
    java.lang.NoSuchMethodException: com.stockopedia.symfony.Foundation.importExchange([B)

  1. Indri Yunita 10 times, last 2 days ago
  2. kimihanif 3 times, last 1 month ago
  3. gamebusterz 2 times, last 2 months ago
  4. filpgame 7 times, last 2 months ago
  5. Adrien 16 times, last 3 months ago
46 more registered users
35 unregistered visitors
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.NoSuchMethodException

    *omitted*.AlertReceiver.receiveMessage([B)

    at java.lang.Class.getMethod()
  2. Java RT
    Class.getMethod
    1. java.lang.Class.getMethod(Class.java:1655)
    1 frame
  3. Spring Core
    MethodInvoker.prepare
    1. org.springframework.util.MethodInvoker.prepare(MethodInvoker.java:178)
    1 frame
  4. Spring RabbitMQ Support
    SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run
    1. org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:450)
    2. org.springframework.amqp.rabbit.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:358)
    3. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:546)
    4. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:472)
    5. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$001(SimpleMessageListenerContainer.java:61)
    6. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$1.invokeListener(SimpleMessageListenerContainer.java:110)
    7. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.invokeListener(SimpleMessageListenerContainer.java:611)
    8. org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:454)
    9. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:474)
    10. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:458)
    11. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$300(SimpleMessageListenerContainer.java:61)
    12. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:551)
    12 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame