Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 41792 invoked from network); 31 Aug 2009 11:50:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Aug 2009 11:50:02 -0000 Received: (qmail 1186 invoked by uid 500); 31 Aug 2009 11:50:02 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 1150 invoked by uid 500); 31 Aug 2009 11:50:02 -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 1140 invoked by uid 99); 31 Aug 2009 11:50:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 11:50:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.216 as permitted sender) Received: from [209.85.218.216] (HELO mail-bw0-f216.google.com) (209.85.218.216) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 11:49:50 +0000 Received: by bwz12 with SMTP id 12so1790153bwz.20 for ; Mon, 31 Aug 2009 04:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=rWs4aZNllytKmXtFUcUl5mux1r1TIAl9DEzsEhsA+mM=; b=xZcfKKjRHOeklZMVUeVYjME2Nsai3gfhV6zQyBq5cMFow/ytNmY4IRezXtKmuWO5Ne 7n3wOj1GXufAGl7SL9QBy/GDXl3awTq36wqSt1vLcaz0+WJrzbkabtvIdls40tr732bm VCGkjUzJWRdcvyH/jWhqbtqHX8zgjxVJ00Ybo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=cH9r9MFP/O0BzHdBc96d1NsFQo9650jrBC9Q5eJt0LrsMxPrLr3oVpTIV7NBcN8n01 hej1u1qIXVA+T67W52jk1LuBBPfO5npdBFBbySzCCMXANWemhJQyIZpd5pKBbOQFd0gc lNI3YuZ0scNoI4X2QDYJ/MKDGAVAlVWEQIRqA= MIME-Version: 1.0 Received: by 10.204.155.69 with SMTP id r5mr4217550bkw.136.1251719370128; Mon, 31 Aug 2009 04:49:30 -0700 (PDT) In-Reply-To: <25221443.post@talk.nabble.com> References: <25221443.post@talk.nabble.com> From: Claus Ibsen Date: Mon, 31 Aug 2009 13:49:10 +0200 Message-ID: <5380c69c0908310449p38e1d4a6o92253075a26f193d@mail.gmail.com> Subject: Re: XML processing error To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Yeah you are using Camel 1.x schema "http://activemq.apache.org/camel/schema/spring":bean, doTry is part of Camel 2.0 which have a schema at: "http://camel.apache.org/schema/spring":bean, So you have to use the correct schema for the correct version of Camel you are using. On Mon, Aug 31, 2009 at 12:44 PM, Max Ulanovskiy w= rote: > > > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0in:header('fr= om') =3D 'username@domain.ru' | > in:header('subject') =3D 'some_subj' > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 > > com.mycompany.mail.processor.AttachmentsProcessorExcepti= on > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 > =A0 =A0 =A0 =A0 > > > XML code on top generates parsing exception. Could somebody explain whats= my > mistake. > > Invalid content was found starting with element 'camel:doTry'. One of > '{"http://activemq.apache.org/camel/schema/spring":aggregator, > "http://activemq.apache.org/camel/schema/spring":bean, > "http://activemq.apache.org/camel/schema/spring":catch, > "http://activemq.apache.org/camel/schema/spring":choice, > "http://activemq.apache.org/camel/schema/spring":when, > "http://activemq.apache.org/camel/schema/spring":otherwise, > "http://activemq.apache.org/camel/schema/spring":convertBodyTo, > "http://activemq.apache.org/camel/schema/spring":delayer, > "http://activemq.apache.org/camel/schema/spring":onException, > "http://activemq.apache.org/camel/schema/spring":filter, > "http://activemq.apache.org/camel/schema/spring":finally, > "http://activemq.apache.org/camel/schema/spring":handleFault, > "http://activemq.apache.org/camel/schema/spring":interceptor, > "http://activemq.apache.org/camel/schema/spring":idempotentConsumer, > "http://activemq.apache.org/camel/schema/spring":intercept, > "http://activemq.apache.org/camel/schema/spring":loadBalance, > "http://activemq.apache.org/camel/schema/spring":marshal, > "http://activemq.apache.org/camel/schema/spring":multicast, > "http://activemq.apache.org/camel/schema/spring":pipeline, > "http://activemq.apache.org/camel/schema/spring":policy, > "http://activemq.apache.org/camel/schema/spring":proceed, > "http://activemq.apache.org/camel/schema/spring":process, > "http://activemq.apache.org/camel/schema/spring":recipientList, > "http://activemq.apache.org/camel/schema/spring":resequencer, > "http://activemq.apache.org/camel/schema/spring":route, > "http://activemq.apache.org/camel/schema/spring":routingSlip, > "http://activemq.apache.org/camel/schema/spring":setBody, > "http://activemq.apache.org/camel/schema/spring":setHeader, > "http://activemq.apache.org/camel/schema/spring":splitter, > "http://activemq.apache.org/camel/schema/spring":thread, > "http://activemq.apache.org/camel/schema/spring":throttler, > "http://activemq.apache.org/camel/schema/spring":throwFault, > "http://activemq.apache.org/camel/schema/spring":to, > "http://activemq.apache.org/camel/schema/spring":transform, > "http://activemq.apache.org/camel/schema/spring":try, > "http://activemq.apache.org/camel/schema/spring":unmarshal}' is expected. > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanD= efinitions(XmlBeanDefinitionReader.java:404) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef= initions(XmlBeanDefinitionReader.java:342) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDef= initions(XmlBeanDefinitionReader.java:310) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo= adBeanDefinitions(AbstractBeanDefinitionReader.java:143) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo= adBeanDefinitions(AbstractBeanDefinitionReader.java:178) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo= adBeanDefinitions(AbstractBeanDefinitionReader.java:149) > =A0 =A0 =A0 =A0at > org.springframework.beans.factory.support.AbstractBeanDefinitionReader.lo= adBeanDefinitions(AbstractBeanDefinitionReader.java:212) > =A0 =A0 =A0 =A0at > org.springframework.context.support.AbstractXmlApplicationContext.loadBea= nDefinitions(AbstractXmlApplicationContext.java:113) > =A0 =A0 =A0 =A0at > org.springframework.context.support.AbstractXmlApplicationContext.loadBea= nDefinitions(AbstractXmlApplicationContext.java:80) > =A0 =A0 =A0 =A0at > org.springframework.context.support.AbstractRefreshableApplicationContext= .refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) > =A0 =A0 =A0 =A0at > org.springframework.context.support.AbstractApplicationContext.obtainFres= hBeanFactory(AbstractApplicationContext.java:423) > =A0 =A0 =A0 =A0at > org.springframework.context.support.AbstractApplicationContext.refresh(Ab= stractApplicationContext.java:353) > =A0 =A0 =A0 =A0at > org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:140) > =A0 =A0 =A0 =A0at > org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:84) > =A0 =A0 =A0 =A0... more > -- > View this message in context: http://www.nabble.com/XML-%3Ccamel%3AdoTry%= 3E-processing-error-tp25221443p25221443.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > --=20 Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus