I"m running into 2 problems. One is if I use castor-0.9.3.9-xml.jar to marshall, I
get an error that castor couldn't find field descriptor for a class. More detailed
error is as follows:
javax.servlet.ServletException:
com.credsmart.controller.PushController::pushRequestToHospital org.e
xolab.castor.mapping.MappingException: Nested error:
org.exolab.castor.mapping.MappingException: Nes
ted error: org.exolab.castor.mapping.MappingException: Nested error:
org.exolab.castor.mapping.Mappi
ngException: Nested error: org.exolab.castor.mapping.MappingException: Nested error:
org.xml.sax.SAX
Exception: unable to find FieldDescriptor for 'class' in ClassDescriptor of bind-xml
The other is if I use castor-0.9.5.3.jar with the same mapping file that I get these
extra fields in the final xml file. I have auto-complete to false.
For some reason, castor picks up fields from the class that my class extends and
includes some extra fields from there. The bigger problem is that it includes
one field twice in the final xml file that when I unmarshall it, I get an error that a
field is in the xml file twice. The exact error is the following:
ValidationException: element "display-name" occurs more than once. (parent class:
com.credsmart.bean
.Verification)
location:
/credential-insurance/credential-insurance/credential-insurance/credential-insurance/disp
lay-name
at org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:906)
at
org.exolab.castor.xml.UnmarshalHandler.endElement(UnmarshalHandler.java:1038)
at org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
So, I'm able to marshall it with the more updated castor jar, but I can't unmarshall
it. If I can get help in figuring out either of the problems, it would be much
appreciated. Also, please let me know if I need to include the mapping.xml file.
Thanks in advance.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev