Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 94787 invoked from network); 23 Jun 2009 06:48:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jun 2009 06:48:08 -0000 Received: (qmail 50613 invoked by uid 500); 23 Jun 2009 06:46:08 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 50598 invoked by uid 500); 23 Jun 2009 06:46: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 Received: (qmail 50584 invoked by uid 500); 23 Jun 2009 06:46:07 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 50581 invoked by uid 99); 23 Jun 2009 06:46:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2009 06:46:07 +0000 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, 23 Jun 2009 06:45:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 57107234C004 for ; Mon, 22 Jun 2009 23:45:35 -0700 (PDT) Message-ID: <1380338842.1245739535306.JavaMail.jira@brutus> Date: Mon, 22 Jun 2009 23:45:35 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-1742) MessageSupport - when using message fallback type converter Camel should not report type converter issue with message instead of the real type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org MessageSupport - when using message fallback type converter Camel should not report type converter issue with message instead of the real type ---------------------------------------------------------------------------------------------------------------------------------------------- Key: CAMEL-1742 URL: https://issues.apache.org/activemq/browse/CAMEL-1742 Project: Apache Camel Issue Type: Bug Components: camel-core Affects Versions: 1.6.1 Reporter: Claus Ibsen Assignee: Claus Ibsen Fix For: 1.6.2 See this forum http://fusesource.com/forums/thread.jspa?threadID=963&tstart=0 {code} org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: class org.apache.camel.impl.DefaultMessage to the required type: java.io.InputStream with value Message: org.apache.camel.CamelException: java.lang.Exception at org.apache.camel.impl.converter.DefaultTypeConverter.doConvertTo(DefaultTypeConverter.java:147) at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:90) at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:86) at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:85) at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52) {code} Camel should instead this confusing type converter issue, instead it should report the real body type as not having a type converter. And the fallback should also be optimized like the regular type to only be invoked when needed (i.e. to skip when we know for a fact there is no type converter possible) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.