On import statement:
<import namespace="http://test" schemaLocation="test.xsd"/>
ImportUnmarshaller 1.24 throws an NPE:
java.lang.NullPointerException
at org.exolab.castor.xml.schema.reader.ImportUnmarshaller.<init>(ImportU
nmarshaller.java:99)
at org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(S
chemaUnmarshaller.java:419)
at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(
Sax2ComponentReader.java:253)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.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.schema.reader.SchemaReader.read(SchemaReader.ja
va:188)
at xsdread.<init>(xsdread.java:96)
at xsdread.main(xsdread.java:112)
This happens because:
String documentBase = locator.getSystemId();
if (!documentBase.endsWith("/"))
documentBase is null (but it *may* be null)...
-- Oliver
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev