The cause is showing that something isn't serializable. The XMLType object has a toString(), and a constructor that accepts a String to re-create the oracle.xdb.XMLType if you need it on the other end.

Its also possible, that you have a header or other object in the exchange that is not serializable. Try adding a <to uri="log..?showAll=true" /> line before the AMQ step and Camel will output the exchange contents (incl headers) to the log.

On 2/9/12 1:04 PM, tops wrote:
*Caused by: java.io.NotSerializableException:
oracle.jdbc.driver.T2CConnection
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
        at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at 
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        at
org.apache.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:98)

Reply via email to