I am using camel and cfx-bc to implement an external service-
proxy,
this is my camel-context.xml:
<camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="jbi:service:http://server/HelloWorldPre"/>
<to uri="jbi:service:http://server/HelloWorld"/>
</route>
</camelContext>
then I turned on "Audit " service,I got followed errors:
ERROR - JdbcAuditor - Could not persist
exchange
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:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
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
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
.servicemix
.jbi.messaging.ExchangePacket.getData(ExchangePacket.java:
472)
at
org
.apache
.servicemix
.jbi.audit.jdbc.JdbcAuditor.exchangeSent(JdbcAuditor.java:
122)
at
org
.apache
.servicemix
.jbi
.messaging.DeliveryChannelImpl.doSend(DeliveryChannelImpl.java:
380)
at
org
.apache
.servicemix
.jbi.messaging.DeliveryChannelImpl.send(DeliveryChannelImpl.java:
432)
at
org
.apache
.servicemix
.common.EndpointDeliveryChannel.send(EndpointDeliveryChannel.java:
88)
at
org
.apache
.servicemix
.common.endpoints.SimpleEndpoint.send(SimpleEndpoint.java:
70)
at
org
.apache
.servicemix
.common.endpoints.SimpleEndpoint.done(SimpleEndpoint.java:
85)
at
org
.apache
.servicemix
.camel.CamelConsumerEndpoint.process(CamelConsumerEndpoint.java:
72)
at
org
.apache
.servicemix
.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:627)
at
org
.apache
.servicemix
.common
.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:
598)
at
org
.apache
.servicemix
.common
.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:
535)
at
org
.apache
.servicemix
.common
.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:
60)
at
org
.apache
.servicemix
.jbi
.messaging
.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:623)
at
org
.apache
.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:
172)
at
org
.apache
.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:
168)
at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue
$1.run(SedaQueue.java:134)
at
java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Is this because of smx-camel?
--
View this message in context:
http://www.nabble.com/SMX3.3.1-Could-not-persist-exchange-tp24386623p24386623.html
Sent from the ServiceMix - User mailing list archive at
Nabble.com.