Hi,
I have a project that is using a library which includes code generated
using castor 1.0.5. I have some xml that validates properly (in xmlspy)
against the same version of the schema. When I try to unmarshal the xml
using the castor 1.2 libraries, I see the an error saying "Expecting an
Long, received instead: java.lang.Integer" (see below). From what I can
tell, the code generated using 1.0.5 has a typeValidator = new
org.exolab.castor.xml.validators.IntegerValidator(), however the
IntegerValidator in 1.2 is really for java long types and the
IntValidator should be used.
At this point, I can't change the old libraries. Is there any simple
way of getting around this?
Thanks!
-- Marko
org.exolab.castor.xml.MarshalException: The following exception occured
while validating field: _diagramLayout of class:
edu.mssm.crover.domain2d.rbdg.xml.RbdeDiagram: The following exception
occured while validating field: _subunitList of class:
edu.mssm.crover.domain2d.rbdg.xml.DiagramLayout: The following exception
occured while validating field: _spacer of class:
edu.mssm.crover.domain2d.rbdg.xml.Subunit: The following exception
occured while validating field: _x of class:
edu.mssm.crover.domain2d.rbdg.xml.Spacer: Expecting an Long, received
instead: java.lang.Integer{File: [not available]; line: 65; column: 16}
at
org.exolab.castor.xml.Unmarshaller.convertSAXExceptionToMarshalException(Unmarshaller.java:761)
--
Marko Srdanovic
Software Engineer, Institute for Computational Biomedicine
Weill Medical College of Cornell University
1305 York Avenue (Box 140)
New York, NY 10021
http://icb.med.cornell.edu/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email