Any one has any clues to the errors I get? Thanks in advance. From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sunit Munjal Hello, I have 2 xml files that I’m trying to unmarshall with
castor. I’m using 2 different versions of the castor jar
files: castor-0.9.3.9-xml.jar and castor-1.0M4-xml.jar. Initially I
was using the older version of castor (castor-0.9.3.9-xml.jar), but ended up
downloading the newer version when I was running into problems with the older
version and the error messages seemed to be more detailed with the newer
version. The problem I’m running into is that one xml works with
the older version while the other one works with the newer version. The
errors I get with both the cases don’t make any sense to me. One of the errors I get using the older version is the
following: org.xml.sax.SAXException: unable to find FieldDescriptor for
'mapping' in ClassDescriptor of mapping
at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:815)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) What makes this error confusing is that I don’t have
any fields named mapping anywhere so I’m confused what the error is
referring to. The error I get using the new version is the following: Illegal Text data found as child of: LASTNAME value: "TEST"{file: [not available]; line:
29; column: 66}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:707)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:563) For this error, I don’t understand why TEST is an
illegal value for last name. My field description in the xml for the
above field is as follows: <field
name="LASTNAME" type="string">
<bind-xml name="LASTNAME" node="element"/>
</field> Also, the field is declared as a String in the class file. Any help would be appreciated in this matter and please
inform me if any xml or class file declarations are needed to help this matter
further. Thanks in advance. |
- [castor-dev] Weird errors being thrown by castor while unmars... Sunit Munjal
- RE: [castor-dev] Weird errors being thrown by castor whi... Sunit Munjal