Announcement Announcement Module
Collapse
No announcement yet.
Sending and Receiving Messages/Objects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sending and Receiving Messages/Objects

    I'm trying to perform asynchronous message exchanges, but I'm getting the following error:
    java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: failed to convert to serialized Message content
    Anyone know how to correctly receive and convert the message?

    I've setup a MessageListenerAdapter to delegate the 'onMessage' event.

    Below are the message sender and receiver.

    Sender:
    Code:
    	
    rabbitTemplate.convertAndSend(msgQueue.getName(), new HashMap<String, String>(2) {
            {
            ...
            }
    });
    Receiver:
    Code:
     public void notify(Map msg) { ... }

  • #2
    Could you show the configuration of your rabbitTemplate? Seems you are missing the configuration for your converter..

    Comment

    Working...
    X