Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.6.2
-
None
-
None
-
W2K, jsdk 1.4, IBM T23
Description
I am attempting to parse an xml document that is validated by a complex schema. All these files were previously validated with XMLSpy 5. I believe the failure is occuring during schema processing. The main schema file contains an xs:import tag and the imported schema contains an xs:redefine tag. Here is the stack trace:
C:\JBuilder8\jdk1.4\bin\javaw -classpath "C:\Documents and Settings\etrembic\jbproject\JaxTest\classes;C:\JBuilder8\lib\jdom.jar;C:\JBuilder8\lib\xercesImpl.jar;C:\JBuilder8\lib\xmlParserAPIs.jar;C:\My Documents\Marsh\ACORD\XSD;C:\JBuilder8\jdk1.4\demo\jfc\Java2D\Java2Demo.jar;C:\JBuilder8\jdk1.4\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\JBuilder8\jdk1.4\jre\lib\charsets.jar;C:\JBuilder8\jdk1.4\jre\lib\ext\dnsns.jar;C:\JBuilder8\jdk1.4\jre\lib\ext\ldapsec.jar;C:\JBuilder8\jdk1.4\jre\lib\ext\localedata.jar;C:\JBuilder8\jdk1.4\jre\lib\ext\sunjce_provider.jar;C:\JBuilder8\jdk1.4\jre\lib\im\indicim.jar;C:\JBuilder8\jdk1.4\jre\lib\jaws.jar;C:\JBuilder8\jdk1.4\jre\lib\jce.jar;C:\JBuilder8\jdk1.4\jre\lib\jsse.jar;C:\JBuilder8\jdk1.4\jre\lib\rt.jar;C:\JBuilder8\jdk1.4\jre\lib\sunrsasign.jar;C:\JBuilder8\jdk1.4\lib\dt.jar;C:\JBuilder8\jdk1.4\lib\htmlconverter.jar;C:\JBuilder8\jdk1.4\lib\tools.jar" com.marsh.jaxtest.JaxTest
java.lang.ArrayIndexOutOfBoundsException: 4
at org.apache.xerces.impl.xs.SchemaGrammar.addRedefinedGroupDecl(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDGroupTraverser.traverseGlobal(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas(Unknown Source)
at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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.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.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
at com.marsh.jaxtest.JaxTest.main(JaxTest.java:84)
Exception in thread "main"
Because the exception is not handled, I have no idea what line of which schema file is causing the problem.
Any help is appreciated.
Regards,
Ed