You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/06/05 14:20:17 UTC
DO NOT REPLY [Bug 9623] New: -
NullPointerException when trying to parse XMLScema.xsd that used to work with Xerces
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9623>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9623
NullPointerException when trying to parse XMLScema.xsd that used to work with Xerces
Summary: NullPointerException when trying to parse XMLScema.xsd
that used to work with Xerces
Product: Xerces2-J
Version: 2.0.1
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: XML Schema Structures
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: george@sync.ro
This used to work until a few days ago...
Now when trying to parse the XMLScema.xsd that works with Xerces, see bug5849
and bug7167 I get a NullPointerException:
java.lang.NullPointerException
at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument
(XMLSchemaLoader.java:523)
at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchema
(XSDHandler.java:1280)
at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees
(XSDHandler.java:633)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema
(XSDHandler.java:366)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema
(XMLSchemaLoader.java:483)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar
(XMLSchemaLoader.java:470)
at
org.apache.xerces.parsers.XMLGrammarCachingConfiguration.parseXMLSchema
(XMLGrammarCachingConfiguration.java:357)
at org.apache.xerces.parsers.DOMASBuilderImpl.parseASInputSource
(DOMASBuilderImpl.java:292)
at org.apache.xerces.parsers.DOMASBuilderImpl.parseASURI
(DOMASBuilderImpl.java:237)
at ro.sync.xml.schema.ParseTest.main(ParseTest.java:9)
See below the test class:
package ro.sync.xml.schema;
import org.apache.xerces.parsers.*;
public class ParseTest {
public static void main(String[] args) {
try {
DOMASBuilderImpl p = new DOMASBuilderImpl();
p.parseASURI("data/XMLSchema.xsd");
} catch (Exception e) {
e.printStackTrace();
}
}
}
and you can get XMLSchema.xsd from bug5849.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org