camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamie3 <james.archib...@gdcanada.com>
Subject ActiveMQStreamMessage issues and XSLT endpoint
Date Thu, 02 Oct 2008 18:54:47 GMT

I am trying to do the following:

1) consumer messages from activemq
2) pass them to the xsl endpoint
3) save the kml to a file

route builder as follows:

JmsEndpoint jmsEndpoint =
(JmsEndpoint)context.getEndpoint("activemq:topic:myTopic");
from(jmsEndpoint).	// grab stuff from JMS
to("xslt:com/gdc/hfxrnd/xslt/toXML.xslt").
to("file://c:/output.kml");

I am not sure what data format type the xslt requires for input. I get the
following error as it appears that it is passing a ActiveMQStreamSession. I
would like the transformation between the jmsEndpoint and xslt endpoint to
be transparent to me (ie: it is called implicitly), how do I go about doing
this?

here are my errors

[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 0
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 1
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 2
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 3
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 4
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:189) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. On delivery attempt: 5
caught: org.apache.camel.ExpectedBodyTypeException: Could not extract IN
message body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
org.apache.camel.ExpectedBodyTypeException: Could not extract IN message
body as type: interface javax.xml.transform.Source body is:
ActiveMQStreamMessage {commandId = 12, responseRequired = false, messageId =
ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination = null,
originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }
	at org.apache.camel.builder.xml.XsltBuilder.getSource(XsltBuilder.java:257)
	at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:75)
	at
org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:92)
	at
org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:66)
	at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:155)
	at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:91)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:41)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:66)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:68)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:531)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:466)
	at
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:435)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:322)
	at
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:260)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:944)
	at
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:875)
	at java.lang.Thread.run(Thread.java:619)
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.process(Logger.java:78) process -
Exchange[BodyType:org.apache.activemq.command.ActiveMQStreamMessage,
Body:ActiveMQStreamMessage {commandId = 12, responseRequired = false,
messageId = ID:buttercup-4305-1222972306750-0:0:1:1:8, originalDestination =
null, originalTransactionId = null, producerId =
ID:buttercup-4305-1222972306750-0:0:1:1, destination = topic://XCOP-Topic,
transactionId = null, expiration = 0, timestamp = 1222973331500, arrival =
0, brokerInTime = 1222973331500, brokerOutTime = 1222973331500,
correlationId = null, replyTo = null, persistent = false, type = null,
priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null,
compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@16fcc4, marshalledProperties =
org.apache.activemq.util.ByteSequence@12ce574, dataStructure = null,
redeliveryCounter = 0, size = 0, properties = {MsgZone=JAMIE,
MsgFrom=f28e7bc4-7368-4fbf-9898-90166ffefcac, MsgInflatedSize=1046,
MsgDeflatedSize=589, MsgRoute=f28e7bc4-7368-4fbf-9898-90166ffefcac,
MsgTo=AllClients, MsgType=TrackCreateEvent}, readOnlyProperties = true,
readOnlyBody = true, droppable = false} ActiveMQStreamMessage{ bytesOut =
null, dataOut = null, dataIn = null }]
[DefaultMessageListenerContainer-6] ERROR
org.apache.camel.processor.Logger.log(Logger.java:152) log - Failed delivery
for exchangeId: ID-buttercup/4553-1222973331593/0-0. Handled by the failure
processor: RecipientList[log:org.apache.camel.DeadLetterChannel?level=error]

-- 
View this message in context: http://www.nabble.com/ActiveMQStreamMessage-issues-and-XSLT-endpoint-tp19785419s22882p19785419.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message