Are you using Castor 0.9.3.19? If so, can you send an example (as small
as possible) which demonstrates the problem? We can't really help
without having more information.
Thanks,
--Keith
"Peram, Rudra" wrote:
>
> Hi all,
> I am trying to unmarshal an XML document and I am getting the following stack trace
>when unmarshaling:
>
> org.xml.sax.SAXException: unable to instantiate cap2.Capabilities;
>java.lang.NullPointerException
> at org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalHandler.java:875)
> at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1340)
> at
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1197)
> at
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1862)
> at
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1005)
> at
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035)
> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:463)
> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:395)
> at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:535)
> at cap2.Capabilities.unmarshal(Capabilities.java:236)
> at Test.main(Test.java:33)
>
> The xml file starts like this.
> <?xml version="1.0"?>
> <Capabilities version="1.1.0" updateSequence="2002060402">
> <Service>
> <Name>GetRequest</Name>
> <Title>Request Files</Title>
> ....
> ...
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev