Thanks for your answer, Freeman 。
I upload my testcase.

camel-cxf-proxy.zip is my JBI package.
HelloWorld.rar is my test webservice which is deployed in tomcat6.0's webapp
dir.
Then use eclipse's ws-explorer to test it at 
http://localhost:8199/HelloWorld?wsdl

The package is too large,so i removed two jars out of 
HelloWorld's lib dir,they are spring-1.2.6.jar and xbean-2.2.0.jar.
http://www.nabble.com/file/p24387957/test.rar test.rar 


Freeman Fang wrote:
> 
> Hi,
> 
> Seems an entry in the HashMap(it should be properties in the  
> MessageExchange added by camel or cxf) which doesn't implement  
> Serializable cause this error.
> Would you please append your testcase, which is more helpmore to  
> reproduce and figure out the problem.
> Thanks
> Freeman
> On 2009-7-8, at 下午3:17, inter wrote:
> 
>>
>> 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.
>>
> 
> 
> -- 
> Freeman Fang
> ------------------------
> Open Source SOA: http://fusesource.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SMX3.3.1-Could-not-persist-exchange-tp24386623p24387957.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to