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 42B70D78C for ; Thu, 26 Jul 2012 19:30:43 +0000 (UTC) Received: (qmail 40043 invoked by uid 500); 26 Jul 2012 19:30:42 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 40012 invoked by uid 500); 26 Jul 2012 19:30:42 -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 40001 invoked by uid 99); 26 Jul 2012 19:30:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 19:30:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.mueller@gmail.com designates 209.85.217.173 as permitted sender) Received: from [209.85.217.173] (HELO mail-lb0-f173.google.com) (209.85.217.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 19:30:35 +0000 Received: by lbok6 with SMTP id k6so1948316lbo.32 for ; Thu, 26 Jul 2012 12:30:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ky5VULLZt2QN4FDZAn1tKKKQULYN3yozIjMK8T/bIsM=; b=sjSi7Gp8Mz1aui4w1TY343hzMdJ4ll5kd6l6V1gvFGIiExbqAlXodRAEsHcv05BO3L uFxPPYpg2OvburuWvsfF1cip5wGHJFeTsL7nFBQ9PKuhQc4RNAXyGfPRrdyZ9NzB0+qj syCTmog60TRw4KH26TEi40FPLZLt2Zf5xyovcIUJFa/78B2twKbrwKaUnpTYqa+C5nsy BWspKSGMb6QntPuS8a3GDdZmyQZbCYE8dgEmRKvhPb5nBifA39oUxfujFqtqt6cnuGKR QN3To/H5XfUiP/TUsmvJpzYjAAmv9nbLrS92jxdHsOOmibJznYYkzLD4DDLAm3G598L2 WBgQ== MIME-Version: 1.0 Received: by 10.112.101.196 with SMTP id fi4mr213142lbb.67.1343331015047; Thu, 26 Jul 2012 12:30:15 -0700 (PDT) Received: by 10.114.14.1 with HTTP; Thu, 26 Jul 2012 12:30:14 -0700 (PDT) In-Reply-To: References: Date: Thu, 26 Jul 2012 21:30:14 +0200 Message-ID: Subject: Re: Strange behavior with Camel Validator Component From: =?ISO-8859-1?Q?Christian_M=FCller?= To: users@camel.apache.org Content-Type: multipart/alternative; boundary=f46d0401682bf7bbef04c5c09fe1 --f46d0401682bf7bbef04c5c09fe1 Content-Type: text/plain; charset=ISO-8859-1 Hey Arnaud, did you could solve the issue by yourself? Best, Christian On Thu, Jul 26, 2012 at 3:55 PM, DEPREZ Arnaud AWL-IT < arnaud.deprez@atos.net> wrote: > Sorry, for this mail ! > > It was a very bad code that send this message "com.awl.acq.wlsi.sips.xsd" > doesnt contain ObjectFactory.class or jaxb.index to validate with a xsd. > > KR, > > > Arnaud Deprez > > -----Original Message----- > From: DEPREZ Arnaud AWL-IT [mailto:arnaud.deprez@atos.net] > Sent: jeudi 26 juillet 2012 14:59 > To: users@camel.apache.org > Subject: Strange behavior with Camel Validator Component > > Hi all, > > I'm very surprised with this strange behavior. > I'm using Camel 2.6.0-fuse-02-05 with Servicemix 4.3.1-fuse02-05. > > When I try to validate an xml file with the endpoint : > validator:file:path_to_the_file, I get the following exception : > > 14:11:49,633 | ERROR | 82 - org.apache.camel.camel-core - 2.6.0.fuse-02-05 > | processSynchronize | Failed delivery for exchangeId: > ID-sqsia0005ap-52996-1343303938957-27-1. Exhausted after delivery attempt: > 1 caught: org.apache.camel.processor.validation.SchemaValidationException: > Validation failed for: > com.sun.org.apache.xerces.internal.jaxp.validation.SimpleXMLSchema@78cd3e08 > com.sun.org.apache.xerces.internal.jaxp.validation.SimpleXMLSchema@78cd3e08> > fatal errors: [org.xml.sax.SAXParseException: Content is not allowed in > prolog.]. Exchange[Message: "com.awl.acq.wlsi.sips.xsd" doesnt contain > ObjectFactory.class or jaxb.index] > org.apache.camel.processor.validation.SchemaValidationException: > Validation failed for: > com.sun.org.apache.xerces.internal.jaxp.validation.SimpleXMLSchema@78cd3e08 > com.sun.org.apache.xerces.internal.jaxp.validation.SimpleXMLSchema@78cd3e08> > fatal errors: [org.xml.sax.SAXParseException: Content is not allowed in > prolog.]. Exchange[Message: "com.awl.acq.wlsi.sips.xsd" doesnt contain > ObjectFactory.class or jaxb.index] > at > org.apache.camel.processor.validation.ValidatingProcessor.process(ValidatingProcessor.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:102)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:72)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:62)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:62)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:62)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:62)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:62)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:211)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:171)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)[83:org.springframework.transaction:3.0.5.RELEASE] > at > org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)[83:org.springframework.transaction:3.0.5.RELEASE] > at > org.apache.camel.spring.spi.TransactionErrorHandler.doInTransactionTemplate(TransactionErrorHandler.java:164)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.apache.camel.spring.spi.TransactionErrorHandler.processInTransaction(TransactionErrorHandler.java:121)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:92)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:101)[84:org.apache.camel.camel-spring:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:64)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[82:org.apache.camel.camel-core:2.6.0.fuse-02-05] > at > net.atos.mm.network.mom.jms.impl.camel.MOMEndpointListener.onMessageReceived(MOMEndpointListener.java:51)[160:mom:2.5.5] > at > net.atos.mm.network.mom.jms.JMSConnectorImpl$ML.onMessage(JMSConnectorImpl.java:1130)[160:mom:2.5.5] > at > net.atos.mm.network.mom.statistics.jms.impl.MomStatisticsJMSMessageListener.onMessage(MomStatisticsJMSMessageListener.java:58)[160:mom:2.5.5] > at > org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1229)[43:org.apache.activemq.activemq-core:5.4.2.fuse-04-05] > at > org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:134)[43:org.apache.activemq.activemq-core:5.4.2.fuse-04-05] > at > org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:205)[43:org.apache.activemq.activemq-core:5.4.2.fuse-04-05] > at > org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122)[43:org.apache.activemq.activemq-core:5.4.2.fuse-04-05] > at > org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43)[43:org.apache.activemq.activemq-core:5.4.2.fuse-04-05] > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)[:1.6.0_07] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)[:1.6.0_07] > at java.lang.Thread.run(Thread.java:619)[:1.6.0_07] > > > Which is very strange because ObjectFactory isn't needed for the W3C > schema validation. > > If someone has any idea ? > > KR, > > Arnaud Deprez > > ________________________________ > > Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg > - 1130 Brussels - Belgium > RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 > Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 > BIC BBRUBEBB - IBAN BE55 3100 2694 2444 > > "The information contained in this e-mail and any attachment thereto is > confidential and may contain information which is protected by intellectual > property rights. > This information is intended for the exclusive use of the recipient(s) > named above. > This e-mail does not constitute any binding relationship or offer toward > any of the addressees. > If you are not one of the addressees , one of their employees or a proxy > holder entitled to hand over this message to the addressee(s), any use of > the information contained herein (e.g. reproduction, divulgation, > communication or distribution,...) is prohibited. > If you have received this message in error, please notify the sender and > destroy it immediately after. > The integrity and security of this message cannot be guaranteed and it may > be subject to data corruption, interception and unauthorized amendment, for > which we accept no liability." > > > Atos Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg > - 1130 Brussels - Belgium > RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 > Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 > BIC BBRUBEBB - IBAN BE55 3100 2694 2444 > > "The information contained in this e-mail and any attachment thereto is > confidential and may contain information which is protected by intellectual > property rights. > This information is intended for the exclusive use of the recipient(s) > named above. > This e-mail does not constitute any binding relationship or offer toward > any of the addressees. > If you are not one of the addressees , one of their employees or a proxy > holder entitled to hand over this message to the addressee(s), any use of > the information contained herein (e.g. reproduction, divulgation, > communication or distribution,...) is prohibited. > If you have received this message in error, please notify the sender and > destroy it immediately after. > The integrity and security of this message cannot be guaranteed and it may > be subject to data corruption, interception and unauthorized amendment, for > which we accept no liability." > > --f46d0401682bf7bbef04c5c09fe1--