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

REGRESSION: Transformer.transform() throws WrappedRuntimeException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic, x86
    • OS:
      generic, linux, windows_2000, windows_xp
    • Verification:
      Verified

      Description

      Name: mmR10223 Date: 05/05/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b05, (passes with JDK1.5.0-b04, JDK1.4.2-b22, JDK1.4.1-b21)
      JCK : JCK1.4a-runtime
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling test[s]:
      api/javax_xml/transform/Transformer/index.html#GetSetOProperties [GetSetOProperties002]
      api/javax_xml/transform/Transformer/index.html#GetSetParameter [GetSetParameter002]
      api/javax_xml/transform/Transformer/index.html#Transform [Transform001, Transform002]
      api/javax_xml/transform/sax/SAXTransformerFactory/index.html#newHandler [newHandler002]
      api/javax_xml/transform/sax/SAXSource/index.html#Ctor [Ctor004]

      These tests pass with previous JDK builds (JDK1.5.0-b04, JDK1.4.2-b22, JDK1.4.1-21).

      Test source location:
      =====================
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_xml/transform/Transformer/GetSetOPropertiesTests.java
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_xml/transform/Transformer/GetSetParameterTests.java
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_xml/transform/Transformer/TransformTests.java
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_xml/transform/sax/SAXTransformerFactory/newHandlerTests.java
      /java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a/tests/api/javax_xml/transform/sax/SAXSource/CtorTests.java


      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b05/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/javax_xml/transform/Transformer/index_GetSetOProperties.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b05/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/javax_xml/transform/Transformer/index_GetSetParameter.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b05/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/javax_xml/transform/Transformer/index_Transform.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b05/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/javax_xml/transform/sax/SAXTransformerFactory/index_newHandler.jtr
      /net/jtgb4u4c.sfbay/export/sail15/results/tiger/b05/jck14a/x86/s8_incgc_debug_linux-10/workDir/api/javax_xml/transform/sax/SAXSource/index_Ctor.jtr


      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash

      JCK="/java/re/jck/1.4a/archive/fcs/binaries/JCK-runtime-14a"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux-i586"
      CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
       
      $JDK/bin/java $switches -cp $CLASSPATH javasoft.sqe.tests.api.javax.xml.transform.Transformer.TransformTests -TestCaseID Transform001 Transform002

      --- script end ---

      Test output:
      ============
      com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: org.apache.xalan.serialize.SerializerToXML
              at com.sun.org.apache.xalan.internal.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
              at com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
              at com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
              at javasoft.sqe.tests.api.javax.xml.transform.Transformer.TransformTests.Transform001(TransformTests.java:78)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
              at javasoft.sqe.tests.api.javax.xml.transform.Transformer.TransformTests.main(TransformTests.java:53)
      Transform001: Failed. Test case throws exception: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: org.apache.xalan.serialize.SerializerToXML
      com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: org.apache.xalan.serialize.SerializerToXML
              at com.sun.org.apache.xalan.internal.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
              at com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
              at com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
              at javasoft.sqe.tests.api.javax.xml.transform.Transformer.TransformTests.Transform002(TransformTests.java:115)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:399)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
              at javasoft.sqe.tests.api.javax.xml.transform.Transformer.TransformTests.main(TransformTests.java:53)
      Transform002: Failed. Test case throws exception: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: org.apache.xalan.serialize.SerializerToXML
      STATUS:Failed.test cases: 2; all failed; first test case failure: Transform001

      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86)
      Hostname: linux-22
      OS: Windows 2000 Pro

      ======================================================================


      ###@###.### 2003-08-12

      Same problem reported by 2 CAP members:


      J2SE Version (please include all output from java -version flag):
        java version "1.5.0-beta"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b14)
        Java HotSpot(TM) Client VM (build 1.5.0-beta-b14, mixed mode)

      Does this problem occur on J2SE 1.3, 1.4 or 1.4.1? Yes / No (pick one)
        No

      Operating System Configuration Information (be specific):
        Occurs on Windows XP/Windows 2000

      Hardware Configuration Information (be specific):
        Occurs on several machines

      Bug Description:
        XML serialization seems to be broken. This is a showstopper bug
        for applications using the XML API for configuartion handling.

      Steps to Reproduce (be specific):
        Execute the following test program(XmlSerialzeTest.java):

      Results in:

        com.sun.org.apache.xml.internal.utils.WrappedRuntimeException:
        org.apache.xalan.serialize.SerializerToXML
              at
      com.sun.org.apache.xalan.internal.serialize.SerializerFactory.getSerializer(SerializerFactory.java:142)
              at
      com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
              at
      com.sun.org.apache.xalan.internal.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
              at XmlSerializeTest.main(XmlSerializeTest.java:15)

      Test program(XmlSerialzeTest.java):


      import javax.xml.parsers.*;
      import javax.xml.transform.*;
      import javax.xml.transform.dom.*;
      import javax.xml.transform.stream.*;
      import org.w3c.dom.*;

      public class XmlSerializeTest
      {
              public static void main(String[] args) throws Throwable
              {
                      Document configDoc;
                      Transformer transformer;
                      configDoc =
      DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
                      transformer = TransformerFactory.newInstance().newTransformer();
                      transformer.transform(new DOMSource(configDoc),new
      StreamResult(System.out));
              }
      }

        Attachments

          Activity

            People

            Assignee:
            ayadavsunw Arun Yadav (Inactive)
            Reporter:
            mmvsunw Mmv Mmv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: