Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8193342

NullPointerException com.sun.xml.internal.stream.Entity$ScannedEntity.<init>

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_112"
      Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
      Java HotSpot(TM) Server VM (build 25.112-b15, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux version 3.10.0-693.2.1.el7.x86_64 (mockbuild@x86-ol7-builder-03.us.oracle.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Tue Sep 5 10:56:07 PDT 2017


      A DESCRIPTION OF THE PROBLEM :
      Rare intermittent issue occurs when parsing small xml documents <32K. Full stack trace:

      java.lang.NullPointerException
      at com.sun.xml.internal.stream.Entity$ScannedEntity.<init>(Entity.java:405)
      at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:825)
      at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:189)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:799)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:568)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:302)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
       Not easily reproducible.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      XML document successfully parsed.
      ACTUAL -
      NullPointerException is thrown

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

        Attachments

          Activity

            People

            Assignee:
            psonal Pallavi Sonal (Inactive)
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: