Message:

   The following issue has been closed.

   Resolver: Michael Glavassevich
       Date: Wed, 19 May 2004 7:20 AM

Closing as the reporter has confirmed that the problem is resolved with the latest CVS 
build.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESJ-965

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESJ-965
    Summary: Unhandled Exception: ArrayIndexOutOfBounds
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: INCOMPLETE

    Project: Xerces2-J
 Components: 
             JAXP
   Versions:
             2.6.2

   Assignee: 
   Reporter: Ed Trembicki-Guy

    Created: Mon, 17 May 2004 10:04 AM
    Updated: Wed, 19 May 2004 7:20 AM
Environment: 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




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to