You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Stan Lewis (JIRA)" <ji...@apache.org> on 2009/04/09 21:22:34 UTC

[jira] Updated: (SMXCOMP-18) Camel component crashes when using JMS flow

     [ https://issues.apache.org/activemq/browse/SMXCOMP-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stan Lewis updated SMXCOMP-18:
------------------------------

    Attachment: patch.txt

Here's a patch that addresses this problem, which is due to CamelConsumerEndpoint adding both the camel exchange object and the callback object as properties to the JBI message.  This fix simply adds a key instead and keeps a table used to look up the exchange/callback later once the message has been sent.

> Camel component crashes when using JMS flow
> -------------------------------------------
>
>                 Key: SMXCOMP-18
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-18
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-camel
>    Affects Versions: servicemix-camel-2008.01
>            Reporter: Jérôme Pochat
>         Attachments: patch.txt
>
>
> Camel adds JBI properties that are not serializable. When using it with JMS flow, the following exception occurs:
> Caused by: java.io.NotSerializableException: org.apache.camel.management.InstrumentationProcessor$1
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
>         at java.util.HashMap.writeObject(HashMap.java:1039)
>         at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
>         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
>         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
>         at org.apache.servicemix.jbi.messaging.ExchangePacket.writeExternal(ExchangePacket.java:404)
>         at org.apache.servicemix.jbi.messaging.MessageExchangeImpl.writeExternal(MessageExchangeImpl.java:605)
>         at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
>         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
>         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
>         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
>         at org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:98)
>         ... 37 more 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.