camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6218) TransferExchage InOut ActiveMQ Exception
Date Wed, 27 Mar 2013 12:47:15 GMT

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

Christian Müller commented on CAMEL-6218:
-----------------------------------------

Can you try not to use inner classes!?
And can you assign serialVersionUID to your classes!?
                
> TransferExchage InOut ActiveMQ Exception
> ----------------------------------------
>
>                 Key: CAMEL-6218
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6218
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Alan Foster
>         Attachments: camel-6214-transferExchange.java
>
>
> 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}

--
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

Mime
View raw message