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=25200>. 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=25200 ArrayIndexOutOfBoundsException at org.apache.xerces.impl.xs.XSModelImpl.getComponents(XSModelImpl.java:240) Summary: ArrayIndexOutOfBoundsException at org.apache.xerces.impl.xs.XSModelImpl.getComponents(XSMo delImpl.java:240) Product: Xerces2-J Version: 2.6.0 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: XML Schema datatypes AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] We use the XML Schema parser to load definitions of user-defined XML Schema datatypes within the Jena RDF toolkit. The code fragment which does this looks like: XMLGrammarPreparser parser = new XMLGrammarPreparser(); parser.registerPreparser(XMLGrammarDescription.XML_SCHEMA, null); XSGrammar xsg = (XSGrammar) parser.preparseGrammar(XMLGrammarDescription.XML_SCHEMA, source); XSModel xsm = xsg.toXSModel(); XSNamedMap map = xsm.getComponents(XSTypeDefinition.SIMPLE_TYPE); This worked at Xerces 2.2.0. On Xerces 2.6.0 it throws: java.lang.ArrayIndexOutOfBoundsException at org.apache.xerces.impl.xs.XSModelImpl.getComponents(XSModelImpl.java:240) at the last line of the code fragment shown. Checking, it appears that the table GLOBAL_COMP in XSModelImpl is intialized with 15 elements whereas the value of SIMPLE_TYPE (which is used as the array bounds for checking) is 16. It looks like two GLOBAL_COMP constants have been omitted. Certainly inserting two dummy entries fixes this manifestation of the problem. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
