Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1612

unhandled null pointer exception parsing XSD 1.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.11.0
    • None
    • None
    • schema 1.1 beta - running it cross compiled for .net (but pretty sure the bugs the same in a java only enviroment).

    Description

      load the sample file
      http://www.xfront.com/xml-schema-1-1/xml-schema-1-1.zip?v=15
      xml-schema-1-1\examples\error\BookStore.xsd
      using the 1.1 validating parser

      XMLSchema11Factory factory = new XMLSchema11Factory();
      factory.setErrorHandler(errorHandler);
      factory.setResourceResolver(xercesResolver);

      Schema schema = factory.newSchema(new Source[]

      { new StreamSource(new InputStreamAdapter(stream), uri.AbsoluteUri) }

      );
      javax.xml.validation.Validator validator = schema.newValidator();

      The codes not complete, but I suspect if you load this file into your xsd 1.1 test harness it will break the same way.
      The issue is in org.apache.xerces.impl.xs.traversers.override.DOMOverrideImpl.cloneOverridenSchema()

      The issue is also apparent when loading
      xml-schema-1-1\examples\override\meeting\conference-calendar.xsd

      Attachments

        Activity

          People

            Unassigned Unassigned
            sprotty Simon Sprott
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: