camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <john.d.am...@gmail.com>
Subject Re: getting java.io.NotSerializableException when soap request recived in POJO format is routed to active mq
Date Tue, 10 Sep 2013 15:13:26 GMT
Does DTPowerConsumption implement java.io.Serializable?  It needs to.

On Tue, Sep 10, 2013 at 10:52 AM, vsmahesh <aneesh_124@yahoo.co.in> wrote:
> Hi  i am getting the following erro when i try to route to activemq from cxf
> endpoint which  is getting soap request in POJO format.When i route to queue
> i am getting not serializable error.The error is
>
> java.lang.RuntimeException:
> outotec.pi.mes.id59.powerconsumption.DTPowerConsumption
>         at
> org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:112)[125:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
>         at
> org.apache.activemq.command.ActiveMQObjectMessage.setObject(ActiveMQObjectMessage.java:163)[125:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsBinding.createJmsMessageForType(JmsBinding.java:558)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsBinding.createJmsMessage(JmsBinding.java:470)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsBinding.makeJmsMessage(JmsBinding.java:287)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsProducer$2.createMessage(JmsProducer.java:270)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.doSendToDestination(JmsConfiguration.java:216)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.access$100(JmsConfiguration.java:159)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate$1.doInJms(JmsConfiguration.java:173)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:466)[153:org.springframework.jms:3.0.7.RELEASE]
>         at
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:170)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:402)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:356)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:132)[154:org.apache.camel.camel-jms:2.10.0.fuse-71-047]
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:122)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:298)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:117)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:73)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:99)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>         at
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:90)[147:org.apache.camel.camel-core:2.10.0.fuse-71-047]
>
>
>
> *Caused by: java.io.NotSerializableException:
> outotec.pi.mes.id59.powerconsumption.DTPowerConsumption*
>         at java.io.ObjectOutputStream.writeObject0(Unknown Source)[:1.6.0_45]
>         at java.io.ObjectOutputStream.writeObject(Unknown Source)[:1.6.0_45]
>         at java.util.ArrayList.writeObject(Unknown Source)[:1.6.0_45]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_45]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[:1.6.0_45]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)[:1.6.0_45]
>         at java.lang.reflect.Method.invoke(Unknown Source)[:1.6.0_45]
>         at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)[:1.6.0_45]
>         at java.io.ObjectOutputStream.writeSerialData(Unknown Source)[:1.6.0_45]
>         at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown
> Source)[:1.6.0_45]
>         at java.io.ObjectOutputStream.writeObject0(Unknown Source)[:1.6.0_45]
>         at java.io.ObjectOutputStream.writeObject(Unknown Source)[:1.6.0_45]
>         at
> org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:106)[125:org.apache.activemq.activemq-core:5.7.0.fuse-71-047]
>         ... 66 more
>
>
>
> kindly help me to resolve this.
> thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/getting-java-io-NotSerializableException-when-soap-request-recived-in-POJO-format-is-routed-to-activq-tp5739033.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message