Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07038E8C1 for ; Thu, 30 May 2013 14:27:28 +0000 (UTC) Received: (qmail 60830 invoked by uid 500); 30 May 2013 14:27:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 60689 invoked by uid 500); 30 May 2013 14:27:22 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 60278 invoked by uid 99); 30 May 2013 14:27:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 14:27:20 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: encountered temporary error during SPF processing of domain of bovas.thao@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 14:27:16 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Ui3oJ-0002cj-Qy for users@camel.apache.org; Thu, 30 May 2013 07:26:35 -0700 Date: Thu, 30 May 2013 07:26:35 -0700 (PDT) From: Bovas To: users@camel.apache.org Message-ID: <1369923995829-5733508.post@n5.nabble.com> In-Reply-To: References: <1369819424292-5733397.post@n5.nabble.com> Subject: Re: Help Jaxb MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I put @Autowire because i read this post http://camel.465427.n5.nabble.com/ProducerTemplate-td4552750.html#a4553023 but nothing. I remove the @Autowire, I have always the same error : *Caught: java.lang.NullPointerException: Cannot invoke method sendBody() on null object java.lang.NullPointerException: Cannot invoke method sendBody() on null object* I try several tests to use jaxb but nothing : My method initialize : In this example the error is : Caught: org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Marshal[org.apache.camel.model.dataformat.JaxbDataFormat@559b808a] <<< in route: Route(route1)[[From[file://c/dev/camel/in2]] -> [To[bean://v... *because of Data format 'jaxb' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath* org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Marshal[org.apache.camel.model.dataformat.JaxbDataFormat@559b808a] <<< in route: Route(route1)[[From[file://c/dev/camel/in2]] -> [To[bean://v... *because of Data format 'jaxb' could not be created. Ensure that the data format is valid and the associated Camel component is present on the classpath* I'm missing something. I'm hopeless ----- regards, Bovas -- View this message in context: http://camel.465427.n5.nabble.com/Help-Jaxb-tp5733397p5733508.html Sent from the Camel - Users mailing list archive at Nabble.com.