Xstream serialization

lundi 3 novembre 2014

Hello,



in 3.0.1, I used to serailize my objects ( mainly Hashmaps) using com.mirth.connect.model.converters.ObjectXMLSerial izer.



It seems something changed in the 3.1 version :



LINE NUMBER: 399

DETAILS: Wrapped com.mirth.connect.donkey.util.xstream.SerializerEx ception: com.thoughtworks.xstream.converters.ConversionExce ption: Could not call org.mozilla.javascript.NativeJavaPackage.writeObje ct() : Could not call org.mozilla.javascript.ImporterTopLevel.writeObjec t() : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject() : Recursive reference to parent object

---- Debugging information ----

item-type : org.mozilla.javascript.ImporterTopLevel

converter-type : com.thoughtworks.xstream.converters.reflection.Ser ializableConverter

-------------------------------

message : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject()

cause-exception : com.thoughtworks.xstream.core.TreeMarshaller$Circu larReferenceException

cause-message : Recursive reference to parent object

-------------------------------

message : Could not call org.mozilla.javascript.ImporterTopLevel.writeObjec t()

cause-exception : com.thoughtworks.xstream.converters.ConversionExce ption

cause-message : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject() : Recursive reference to parent object

---- Debugging information ----

item-type : org.mozilla.javascript.ImporterTopLevel

converter-type : com.thoughtworks.xstream.converters.reflection.Ser ializableConverter

-------------------------------

-------------------------------

message : Could not call org.mozilla.javascript.NativeJavaPackage.writeObje ct()

cause-exception : com.thoughtworks.xstream.converters.ConversionExce ption

cause-message : Could not call org.mozilla.javascript.ImporterTopLevel.writeObjec t() : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject() : Recursive reference to parent object

---- Debugging information ----

item-type : org.mozilla.javascript.ImporterTopLevel

converter-type : com.thoughtworks.xstream.converters.reflection.Ser ializableConverter

-------------------------------

message : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject()

cause-exception : com.thoughtworks.xstream.core.TreeMarshaller$Circu larReferenceException

cause-message : Recursive reference to parent object

-------------------------------

-------------------------------

at a9f79d29-8aaf-4c07-8cc7-f7877c33105a:399 (doTransform)

at a9f79d29-8aaf-4c07-8cc7-f7877c33105a:427 (doScript)

at a9f79d29-8aaf-4c07-8cc7-f7877c33105a:429

at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:134)

at com.mirth.connect.server.transformers.JavaScriptFi lterTransformer$FilterTransformerTask.call(JavaScr iptFilterTransformer.java:100)

at java.util.concurrent.FutureTask$Sync.innerRun(Futu reTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.jav a:166)

at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)

at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:722)

Caused by: com.mirth.connect.donkey.util.xstream.SerializerEx ception: com.thoughtworks.xstream.converters.ConversionExce ption: Could not call org.mozilla.javascript.NativeJavaPackage.writeObje ct() : Could not call org.mozilla.javascript.ImporterTopLevel.writeObjec t() : Could not call org.mozilla.javascript.NativeIterator$StopIteratio n.writeObject() : Recursive reference to parent object





Any ideas ?



thx





Xstream serialization

0 commentaires:

Enregistrer un commentaire