You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sandp <sa...@gmail.com> on 2014/10/06 22:23:43 UTC

camel-jms consumer 2.14.0 on JBOSS EAP 6.1.1.

hi,
I'm sending a java pojo extending serializable inteface to a JMS queue. When
a message arrives,a  consumer reads from the queue and  throws an exception 
below.

>From what I see from the log is: the
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl is
different than the one on JDK 7
com/sun/org/apache/xerces/internal/jaxp/datatype

The weird thing is it works fine in standalone mode. The issue is when
deployed to JBOSS,  from xerces or other dependency issue I believe. I
excluded xerces in jboss-deployment-structrure.xml.  However it doesn't fix
the issue. Looks like JBoss is loading it by default even though I excluded.
*
Appreciate help on this.*

2014-10-06 16:06:32,353 [MER.UPDATE.V01]] WARN  EndpointMessageListener       
- Execution of JMS message listener failed. Caused by:
[org.apache.camel.RuntimeCamelException - Failed to extract body due to:
javax.jms.MessageFormatException: Deserialization failed:
com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl
from [Module "deployment.cts-rest.war:main" from Service Module Loader].
Message: ObjectMessage={ Header={
JMSMessageID={ID:ISO_EMS-DEV-SERVER.300F5409CDD66C83:2}
JMSDestination={Queue[ISONE.CTS.CUSTOMER_SERVICES.CUSTOMER.UPDATE.V01]}
JMSReplyTo={null} JMSDeliveryMode={PERSISTENT} JMSRedelivered={false}
JMSCorrelationID={null} JMSType={null} JMSTimestamp={Mon Oct 06 16:06:32 EDT
2014} JMSExpiration={0} JMSPriority={4} } Properties={
breadcrumbId={String:ID-sporeddy-54240-1412625984130-0-1}
firedTime={String:Mon Oct 06 16:06:31 EDT 2014} } Object={?} }]
org.apache.camel.RuntimeCamelException: Failed to extract body due to:
*javax.jms.MessageFormatException: Deserialization failed:
**com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl
from* [Module "deployment.cts-rest.war:main" from Service Module Loader].
Message: ObjectMessage={ Header={
JMSMessageID={ID:ISO_TEST_SERVER.300F5409CDD66C83:2}
JMSDestination={Queue[ISONE.CTS.CUSTOMER_SERVICES.CUSTOMER.UPDATE.V01]}
JMSReplyTo={null} JMSDeliveryMode={PERSISTENT} JMSRedelivered={false}
JMSCorrelationID={null} JMSType={null} JMSTimestamp={Mon Oct 06 16:06:32 EDT
2014} JMSExpiration={0} JMSPriority={4} } Properties={
breadcrumbId={String:ID-sporeddy-54240-1412625984130-0-1}
firedTime={String:Mon Oct 06 16:06:31 EDT 2014} } Object={?} }
	at
org.apache.camel.component.jms.JmsBinding.extractBodyFromJms(JmsBinding.java:151)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-jms-2.14.0.jar:2.14.0]
	at
org.apache.camel.component.jms.JmsMessage.createBody(JmsMessage.java:214)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-jms-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:41)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.DefaultUnitOfWork.<init>(DefaultUnitOfWork.java:90)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.MDCUnitOfWork.<init>(MDCUnitOfWork.java:54)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.DefaultUnitOfWorkFactory.createUnitOfWork(DefaultUnitOfWorkFactory.java:32)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.createUnitOfWork(CamelInternalProcessor.java:647)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(CamelInternalProcessor.java:629)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(CamelInternalProcessor.java:610)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:139)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/camel-jms-2.14.0.jar:2.14.0]
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)[vfs:/C:/jboss-eap-6.1/bin/content/cts-rest.war/WEB-INF/lib/spring-*jms-3.2.11.RELEASE.jar:3.2.11.RELEASE]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_65]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_65]
	at java.lang.Thread.run(Thread.java:745)[:1.7.0_65]*




--
View this message in context: http://camel.465427.n5.nabble.com/camel-jms-consumer-2-14-0-on-JBOSS-EAP-6-1-1-tp5757369.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-jms consumer 2.14.0 on JBOSS EAP 6.1.1.

Posted by sandp <sa...@gmail.com>.
Its a xerces dependency issue in pom.xml.



--
View this message in context: http://camel.465427.n5.nabble.com/camel-jms-consumer-2-14-0-on-JBOSS-EAP-6-1-1-tp5757369p5757391.html
Sent from the Camel - Users mailing list archive at Nabble.com.