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

getDOMImplementation("XML") returns null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • xml
    • b61
    • x86
    • solaris_2.5.1, windows_2000

      Name: rmT116609 Date: 08/19/2004


      FULL PRODUCT VERSION :
      Jjava version "1.5.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta3-b60)ava HotSpot(TM) Client VM (build 1.5.0-beta3-b60, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Linux cay-t41p 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      The DOM implementation registry doesn't find a DOM implementation for "XML".
       

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the sample program below.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I expected a non-null DOMImplementation object.
      ACTUAL -
      I got null.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import org.w3c.dom.*;
      import org.w3c.dom.ls.*;
      import org.w3c.dom.bootstrap.*;

      public class Test
      {
         public static void main(String[] args) throws Exception
         {
            DOMImplementationRegistry registry =
               DOMImplementationRegistry.newInstance();
            DOMImplementation domImpl =
                registry.getDOMImplementation("XML");
            System.out.println(domImpl);
         }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Stick with JAXP
      (Incident Review ID: 297646)
      ======================================================================
      ###@###.### 10/13/04 02:26 GMT

            jsuttorsunw Jeff Suttor (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: