camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEPREZ Arnaud AWL-IT" <arnaud.dep...@atos.net>
Subject RE: Strange behavior with Camel Validator Component
Date Thu, 26 Jul 2012 13:55:33 GMT
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<mailto: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<mailto: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."


Mime
View raw message