jaxp
  1. jaxp
  2. JAXP-66

NullPointerException thrown by SchemaFactory.newSchema(Source[] schemas) when a source contains a system-id producing an IOException when accessed and no ErrorHandler has been set on the factory.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      66

      Description

      java.lang.NullPointerException
      at
      com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory.newSchema(XMLSchemaFactory.java:255)

      Code producing the NullPointerException in class
      com.sun.org.apache.xerces.internal.jaxp.validation.XMLSchemaFactory is:

      try

      { fXMLSchemaLoader.loadGrammar(xmlInputSources); }


      catch (XNIException e)

      { // this should have been reported to users already. throw Util.toSAXException(e); }


      catch (IOException e)

      { // this hasn't been reported, so do so now. SAXParseException se = new SAXParseException(e.getMessage(),null,e); fErrorHandler.error(se); ^^^^^^^^^^^^^ null by default throw se; // and we must throw it. }

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jaxp-issues
            Reporter:
            schulte2005
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: