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

Call to javax.xml.validation.Schema.newValidator() hangs.

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Linux 4.1.12-112.14.10.el7uek.x86_64 #2 SMP Mon Jan 8 18:26:37 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

      Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      Call to javax.xml.validation.Schema.newValidator() hangs on latest JDK 8 update 221.

      Reproduced on OEL 7, does not reproduce on Ubuntu 18.04.
      Reproduced with JDK 8 update 221, does not reproduce with JDK 8 update 191. Not tested with any update in between.

      REGRESSION : Last worked in version 8

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      import javax.xml.XMLConstants;
      import javax.xml.validation.SchemaFactory;

      public class XMLValidatorTest {
          
          public static void main(String[] args) throws Exception {
                  SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema().newValidator();
          }

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Main method should complete and exit.
      ACTUAL -
      Main method hangs.

      ---------- BEGIN SOURCE ----------
      import javax.xml.XMLConstants;
      import javax.xml.validation.SchemaFactory;

      public class XMLValidatorTest {
          
          public static void main(String[] args) throws Exception {
                  SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema().newValidator();
          }
      ---------- END SOURCE ----------

      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: