camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Camel message -How long custom headers and properties live
Date Wed, 07 Dec 2011 22:14:28 GMT
Of course. It's what the WIKI says...
But I'm wondering why you receive an exception. It should "exclude any
non-serializable objects and log it at WARN level". Do you consider to
raise a JIRA if you receive an exception?

Best,
Christian

On Tue, Dec 6, 2011 at 6:38 AM, rspeter <rspeter@yahoo.com> wrote:

> Hi Christian,
>
> The transferExchange options requires that the objects are serializable.
> I tried with the options below, but there were errors.
>
> <inOnly uri="activemq:myqueue1?transferExchange=true"
> > inheritErrorHandler="true"/>
>
>
> java.lang.RuntimeException: org.restlet.data.Parameter
>        at
>
> org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:111)
>        at
>
> org.apache.activemq.command.ActiveMQObjectMessage.setObject(ActiveMQObjectMessage.java:162)
>        at
>
> org.apache.activemq.ActiveMQSession.createObjectMessage(ActiveMQSession.java:380)
>        at
>
> org.apache.camel.component.jms.JmsBinding.createJmsMessage(JmsBinding.java:416)
>        at
>
> org.apache.camel.component.jms.JmsBinding.makeJmsMessage(JmsBinding.java:267)
>        at
>
> org.apache.camel.component.jms.JmsProducer$2.createMessage(JmsProducer.java:225)
> ....................
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.NotSerializableException: org.restlet.data.Parameter
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
>        at
> java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1346)
>        at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1154)
>        at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
>        at java.util.HashMap.writeObject(HashMap.java:1001)
>
> Regards
> Peter
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-message-How-long-custom-headers-and-properties-live-tp5047495p5051051.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message