Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B87021855B for ; Tue, 12 Jan 2016 20:35:40 +0000 (UTC) Received: (qmail 23685 invoked by uid 500); 12 Jan 2016 20:35:40 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 23562 invoked by uid 500); 12 Jan 2016 20:35:40 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 23352 invoked by uid 99); 12 Jan 2016 20:35:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jan 2016 20:35:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5DF262C1F57 for ; Tue, 12 Jan 2016 20:35:40 +0000 (UTC) Date: Tue, 12 Jan 2016 20:35:40 +0000 (UTC) From: "Alex Ford (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CAMEL-9506) STOMP component does not handle stream objects MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alex Ford created CAMEL-9506: -------------------------------- Summary: STOMP component does not handle stream objects Key: CAMEL-9506 URL: https://issues.apache.org/jira/browse/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: {code} from("direct:a").marshal().json(JsonLibrary.Gson).to("stomp:topic:foobar") {code} 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 (v6.3.4#6332)