|
Hi,
I am getting the following error while
unmarshalling an object
org.xml.sax.SAXException: unable to find
FieldDescriptor for 'HashTab' in ClassDescriptor of MainClass
at
org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:815)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1171)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:338)
at
org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:408)
at
MainClass.main(MainClass.java:71)
I have a MainClass which had only one
member field as HashTable.
I have the following mapping defined
for this class
<?xml version="1.0"?>
<!DOCTYPE mapping SYSTEM "mapping.dtd"> <mapping> <class name="MainClass"> <map-to xml="MainClass"/> <field name="hashTab" type="TempHashContent" collection="hashtable"> <bind-xml name="HashTab" node="element"/> </field> </class> </mapping> I having been struggling for a lot of time
on this, and resorted to the
newsgroup when all the other options were
exhausted.
Anyone knowlegdable about why this could
error could be coming
please do enlighten me.
Else will some one be able to give me
some pointers to resources telling
on how to
write class descriptors and field descriptors corresponding
to mapping file.
Thanks,
Uddhav
|
