Please ignore my earlier mail. I just figured it out. Instead of
unmarshalling the top level Bookstore I was trying to unmarshal Order.
Thats what sleep deprivation does to you ! :(
-Saravanan
On Fri, 05 Nov 2004 18:14:03 -0800
Saravanan Subbiah <[EMAIL PROTECTED]> sed :
>
> Hi all,
>
> I am getting the following exception when trying to UnMarshall an xml
> file. The file gets validated properly in XMLSpy with the schema.
>
> Am I missing something ?
>
> Any help is highly appreciated.
>
> thanks,
> Saravanan
>
> Exception=========================================
>
>
> org.xml.sax.SAXException: unable to find FieldDescriptor for 'book' in
> ClassDescriptor of order at
> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.
> ja va:1791) at
> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.
> ja va:1292) at
> org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
> Source) at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
> t( Unknown Source) at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> Di spatcher.dispatch(Unknown Source) at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> kn own Source) at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at
> org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source) at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:
> 605) at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:
> 513) at
> org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:
> 691) at Order.unmarshal(Order.java:91)
> at ProcessOrder.main(ProcessOrder.java:16)
>
--
Saravanan Subbiah
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user