Announcement Announcement Module
Collapse
No announcement yet.
handleMessage issue with Object? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • handleMessage issue with Object?

    When trying to use Object in handleMessage...i get the following error..

    i see a thread with similar issue..but didnt get that one

    Execution of Rabbit message listener failed, and no ErrorHandler has been set.
    org.springframework.amqp.rabbit.listener.adapter.L istenerExecutionFailedException: Failed to invoke target method 'handleMessage' with argument type = [class [B], value = [{[B@197f538}]

    Caused by: java.lang.NoSuchMethodException:

  • #2
    Do you have the content-type property set on the Message? If not, it will default to application/octet-stream, so the converter passes it as a simple byte array.

    Comment


    • #3
      I am using jsonMessageConverter as the message convertor. It is working now..not sure what happened..Cleaned the project in STS and restarted my RabbitMQ server and it started working...

      Comment

      Working...
      X