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=4271>. 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=4271 Xerces-J throws NullPointerException during document validation Summary: Xerces-J throws NullPointerException during document validation Product: Xerces-J Version: 1.4.3 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Schema-Datatypes AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Xerces-J 1.4.3 throws NullPointerException during the validation of cambridge.xml. Here is the stack trace: java.lang.NullPointerException at org.apache.xerces.validators.common.XMLAttributeDecl.setValues(XMLAtt ributeDecl.java:169) at org.apache.xerces.validators.common.XMLAttributeDecl.<init>(XMLAttrib uteDecl.java:151) at org.apache.xerces.validators.schema.TraverseSchema.addAttributeDeclFr omAnotherSchema(TraverseSchema.java:6198) at org.apache.xerces.validators.schema.TraverseSchema.traverseAttributeD ecl(TraverseSchema.java:5879) at org.apache.xerces.validators.schema.TraverseSchema.traverseAttributeG roupDecl(TraverseSchema.java:6373) at org.apache.xerces.validators.schema.TraverseSchema.traverseAttributeG roupDecl(TraverseSchema.java:6355) at org.apache.xerces.validators.schema.TraverseSchema.processAttributes( TraverseSchema.java:4410) at org.apache.xerces.validators.schema.TraverseSchema.processComplexCont ent(TraverseSchema.java:4376) at org.apache.xerces.validators.schema.TraverseSchema.traverseComplexTyp eDecl(TraverseSchema.java:3412) at org.apache.xerces.validators.schema.TraverseSchema.traverseElementDec l(TraverseSchema.java:6918) at org.apache.xerces.validators.schema.TraverseSchema.doTraverseSchema(T raverseSchema.java:742) at org.apache.xerces.validators.schema.TraverseSchema.<init>(TraverseSch ema.java:541) at org.apache.xerces.validators.schema.TraverseSchema.traverseImport(Tra verseSchema.java:2007) at org.apache.xerces.validators.schema.TraverseSchema.doTraverseSchema(T raverseSchema.java:721) at org.apache.xerces.validators.schema.TraverseSchema.<init>(TraverseSch ema.java:541) at org.apache.xerces.validators.common.XMLValidator.resolveSchemaGrammar (XMLValidator.java:2796) at org.apache.xerces.validators.common.XMLValidator.parseSchemas(XMLVali dator.java:2682) at org.apache.xerces.validators.common.XMLValidator.bindNamespacesToElem entAndAttributes(XMLValidator.java:2623) at org.apache.xerces.validators.common.XMLValidator.callStartElement(XML Validator.java:1152) at org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumen tScanner.java:1806) at org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp atch(XMLDocumentScanner.java:949) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS canner.java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122) at dom.wrappers.DOMParser.parse(DOMParser.java:111) at dom.DOMCount.count(DOMCount.java:138) at dom.DOMCount.main(DOMCount.java:340) Version number of JDK: 1.3 OS: NT4.0 SP5 XML file that causes the bug: cambridge.xml Schema files: cambridge.xsd, feature.xsd, geometry.xsd, SimpleGML.xsd, xlinks.xsd. For repro, run the following command: java -cp <your_classpath_to_xerces.jar_and_xercesSamples.jar> dom.DOMCount -v cambridge.xml xlinks-fixed.xsd contains the correct xlinks schema. If xlinks-fixed is used instead of xlinks.xsd, then no exception is thrown. I can provide the xml and schema files for the repro on request. I can't do it here because I don't know how to attach them to this report. Best regards, Victor Dogaru --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
