Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 49380 invoked from network); 3 Feb 2009 12:48:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 12:48:21 -0000 Received: (qmail 28357 invoked by uid 500); 3 Feb 2009 12:48:21 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 28328 invoked by uid 500); 3 Feb 2009 12:48:21 -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 Received: (qmail 28317 invoked by uid 500); 3 Feb 2009 12:48:21 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 28314 invoked by uid 99); 3 Feb 2009 12:48:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 04:48:21 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 12:48:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1ECE8234C48D for ; Tue, 3 Feb 2009 04:48:00 -0800 (PST) Message-ID: <730458107.1233665280120.JavaMail.jira@brutus> Date: Tue, 3 Feb 2009 04:48:00 -0800 (PST) From: "Gert Vanthienen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-1271) Can only interact with servicemix-http if logging is at DEBUG In-Reply-To: <975631539.1232310779886.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-1271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49101#action_49101 ] Gert Vanthienen commented on CAMEL-1271: ---------------------------------------- Claus: Do we want noStreamCaching() to disable stream caching for the DeadLetterChannel? Sending a stream through the DeadLetterChannel without caching it won't work anyhow. I agree we should at least make the streamCaching options behave the same in the DLC and in the RouteBuilder though -- right now the first one uses an InterceptStrategy and the latter one uses a plain Interceptor. > Can only interact with servicemix-http if logging is at DEBUG > ------------------------------------------------------------- > > Key: CAMEL-1271 > URL: https://issues.apache.org/activemq/browse/CAMEL-1271 > Project: Apache Camel > Issue Type: Bug > Components: camel-jbi > Affects Versions: 1.5.0 > Reporter: Darren Davison > Assignee: Gert Vanthienen > Fix For: 1.5.1, 2.0.0 > > > Given the following camel DSL: > from("activemq:queue.testJms.in") > .to("jbi:service:urn:oms:testHttp?mep=in-out") > .to("activemq:queue.testJms.out"); > and the following xbean.xml for the smx (3.3) SU: > service="oms:testHttp" > endpoint="testHttp" > role="provider" > locationURI="http://localhost:8080/testP1"> > > then Camel operates correctly (or at least as desired) only if DEBUG logging is enabled in the org.apache.servicemix.http package. This seems to be because a DOMSource is returned (which Camel can convert). If the log level is reduced (say to WARN) then a StreamSource object is returned instead which Camel appears unable to convert. This results in stack traces such as: > ERROR - DeadLetterChannel - Failed delivery for exchangeId: > ID-davisond-laptop/53380-1232099798317/0-0. On delivery attempt: 0 > caught: org.apache.camel.RuntimeCamelException: > javax.xml.transform.TransformerException: java.io.IOException: Attempted > read on closed stream. > org.apache.camel.RuntimeCamelException: > javax.xml.transform.TransformerException: java.io.IOException: Attempted > read on closed stream. > at > org.apache.camel.util.ObjectHelper.invokeMethod(ObjectHelper.java:441) > at > org.apache.camel.impl.converter.InstanceMethodTypeConverter.convertTo(InstanceMethodTypeCo > +nverter.java:57) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.