I finally figured out that issue. I put all the info in the Jira. java.sql.Timestamps are serialized in java.util.Date (there seems to be somekind of test with instanceof java.util.Date) but then in the class, the fied is casted into java.util.Date which generates my issue.
I wrote my own serializer for java.sql.Timestamp which solved the problem!

Henri.

Dennis Sosnoski dms-at-sosnoski.com |JiBX| wrote:
It'd relate to the binding definitions for your DocumentVte class, of course. There's a known issue of this type in the Jira issue tracking system: http://jira.codehaus.org/browse/JIBX-3 Does that match what you're seeing?

 - Dennis

HD wrote:

I had this ClassCastException today. I have several similar  bindings, the other ones worked except this one. All my fields are optional.
Any idea where I should look to solve this issue ?
22:48:52,954 ERROR LANGateway:138 - Erreur lors de l'execution
java.lang.ClassCastException
 at com.actualis.sage.DocumentVte.JiBX_xml_bindings_unmarshal_2_0(DocumentVte.java)
 at com.actualis.sage.JiBX_xml_bindingsDocumentVte_access.unmarshal()
 at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2568)
 at com.actualis.sage.JiBX_MungeAdapter.JiBX_xml_bindings_unmarshal_1_0()
 at com.actualis.sage.DocumentsVte.JiBX_xml_bindings_unmarshal_3_1(DocumentsVte.java)
 at com.actualis.sage.JiBX_xml_bindingsDocumentsVte_access.unmarshal()
 at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(UnmarshallingContext.java:2568)
 at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(UnmarshallingContext.java:2736)
 at com.actualis.ExportManager.readZipVector(ExportManager.java:162)
 at com.actualis.SageDB.importFromFile(SageDB.java:144)
 at com.actualis.sage.SageLANGateway.importFiles(SageLANGateway.java:118)
 at com.actualis.sage.SageLANGateway.exec_imports(SageLANGateway.java:90)
 at com.actualis.sage.SageLANGateway.start(SageLANGateway.java:50)
 at com.actualis.LANGateway.exec(LANGateway.java:132)
 at com.actualis.sage.SageLANGateway.main(SageLANGateway.java:132)




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to