[ 
https://issues.apache.org/jira/browse/CAMEL-6214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13615149#comment-13615149
 ] 

Alan Foster commented on CAMEL-6214:
------------------------------------

[~muellerc] - I have tried using the transferExchange option before.

The scnearios are :
 - when using the transferExchange option only on the producer, I don't get the 
body back, but not the header.
 - When I use the transferExchange option on both producer and consumer, I get 
the headers back, but not the body. And instead I get the following exception

{code:java}
[ryQueueReplyManager[temporary]] TemporaryQueueReplyManager     WARN  Execution 
of JMS message listener failed. Caused by: [java.lang.NullPointerException - 
null]
java.lang.NullPointerException
        at 
org.apache.camel.impl.DefaultExchangeHolder.unmarshal(DefaultExchangeHolder.java:107)
        at 
org.apache.camel.component.jms.JmsBinding.extractBodyFromJms(JmsBinding.java:128)
        at 
org.apache.camel.component.jms.JmsMessage.createBody(JmsMessage.java:214)
        at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:41)
        at 
org.apache.camel.component.jms.reply.ReplyManagerSupport.processReply(ReplyManagerSupport.java:136)
        at 
org.apache.camel.component.jms.reply.TemporaryQueueReplyHandler.onReply(TemporaryQueueReplyHandler.java:54)
        at 
org.apache.camel.component.jms.reply.TemporaryQueueReplyManager.handleReplyMessage(TemporaryQueueReplyManager.java:71)
        at 
org.apache.camel.component.jms.reply.ReplyManagerSupport.onMessage(ReplyManagerSupport.java:113)
        at 
org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:560)
        at 
org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:498)
        at 
org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:467)
        at 
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
        at 
org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)
        at 
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1058)
        at 
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1050)
        at 
org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)
        at java.lang.Thread.run(Thread.java:662)
{code}
                
> ActiveMq InOut MEP headers lost during 
> ---------------------------------------
>
>                 Key: CAMEL-6214
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6214
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-activemq, camel-core
>         Environment: Windows server 2008 r2
>            Reporter: Alan Foster
>         Attachments: camel-6214-testCase.java
>
>
> I seem to be losing complex type headers when I send them as InOut over 
> activemq for some reason.
> It seems to work works fine using the InOut MEP for the 'direct' component 
> though
> The complex body is transferred fine, but the header is lost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to