Hi Peter,

without access to the java classes, it will not be possible for us to
have a closer look. And can you please tyr to keep things as minimal as
possible to highlight the problem, and remove anything else (e.g. from
the mapping file).

Regards
Werner

Peter Molnar wrote:
> Hi all,
> 
> I'm trying to unmarshal an object from XML source using castor-1.2. The
> XML format was defined separately (eg. it's not a product of marshaling).
> Currently I have this problem:
> 
> The first problem is with a container element. I have a <parameters>
> element that contains zero or more parameter elements. I have tried to
> configure this in the mapping on the bind-xml element's location
> attribute, but that doesn't seem to work.
> 
> I get this exception (only the relevant part):
> Caused by: java.lang.NullPointerException
>       at
> org.exolab.castor.xml.MarshalFramework.searchInheritance(MarshalFramework.java:547)
>       at
> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1865)
>       at
> org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:1418)
>       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
> Source)
>       at
> org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
> Source)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
> Source)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>       at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> 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.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
> Source)
>       at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:715)
> ...
> 
> I have included both the XML source and the mapping file as an attachment.
> 
> Any help would be greatly appreciated!
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to