camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Ford (JIRA)" <>
Subject [jira] [Created] (CAMEL-9506) STOMP component does not handle stream objects
Date Tue, 12 Jan 2016 20:35:40 GMT
Alex Ford created CAMEL-9506:

             Summary: STOMP component does not handle stream objects
                 Key: CAMEL-9506
             Project: Camel
          Issue Type: Bug
          Components: camel-stomp
    Affects Versions: 2.16.1
            Reporter: Alex Ford

The STOMP component only performs a very simple toString() on the body of the incoming exchange
when it creates a STOMP message. This does not work when the body does not support a toString()
which gives some reasonable human readable representation of the object. This is exactly the
case if you try to do the following:


The result of the JSON serialization is a Stream, and the toString() on a Stream results in
an object hash (e.g. "[B@30479402"). A more appropriate thing to do here is similar to what
the File component does. (Basically, read the stream for the data.)

This message was sent by Atlassian JIRA

View raw message