Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8BD6A1886F for ; Tue, 20 Oct 2015 16:49:08 +0000 (UTC) Received: (qmail 88375 invoked by uid 500); 20 Oct 2015 16:49:08 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 88327 invoked by uid 500); 20 Oct 2015 16:49:08 -0000 Mailing-List: contact dev-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 dev@camel.apache.org Delivered-To: moderator for dev@camel.apache.org Received: (qmail 8078 invoked by uid 99); 20 Oct 2015 16:25:09 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.286 X-Spam-Level: ** X-Spam-Status: No, score=2.286 tagged_above=-999 required=6.31 tests=[SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Date: Tue, 20 Oct 2015 09:24:58 -0700 (MST) From: davedrinkbeer To: dev@camel.apache.org Message-ID: <1445358298689-5772915.post@n5.nabble.com> Subject: Hawtio trace causes InputStream body to dissapear MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am making a to() call with http4 component and the result is of type InputStream. I am using convertBodyTo(String.class) to convert the InputStream to String so it can be read again. I have also enabled stream caching so the stream can be read multiple times, but when using "trace" option in hawtio console, I can only see the stream once and then the body disappears. Note, this works fine, when not using trace in hawtio...seems like a bug. Some code for reference... //global stream cache set on camel context Injector injector = Guice.createInjector(modules); GuiceCamelContext context = (GuiceCamelContext)injector.getInstance(CamelContext.class); context.setStreamCaching(true); //route .to(gatewayStatusUrl) .convertBodyTo(String.class) //I have even tried a bean to manually convert the InputStream to String, but get same results, lose body .to(gatewayStatusUrl) .bean(InputStreamConverter.class, "convertTo") -- View this message in context: http://camel.465427.n5.nabble.com/Hawtio-trace-causes-InputStream-body-to-dissapear-tp5772915.html Sent from the Camel Development mailing list archive at Nabble.com.