Results 1 to 3 of 3

Thread: handleMessage issue with Object?

  1. #1
    Join Date
    Dec 2010
    Posts
    10

    Default 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,844

    Default

    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.

  3. #3
    Join Date
    Dec 2010
    Posts
    10

    Default

    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...

Posting Permissions

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