Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 6.1.0.Beta1
    • Fix Version/s: None
    • Component/s: Class Loading
    • Labels:
      None
    • Environment:

      jdk1.7.0_15 on Win 7 64Bit

    • Steps to Reproduce:
      Hide

      import javax.xml.parsers.DocumentBuilder;
      import javax.xml.parsers.DocumentBuilderFactory;
      import javax.xml.transform.Transformer;
      import javax.xml.transform.TransformerFactory;
      import javax.xml.transform.dom.DOMSource;
      import javax.xml.transform.stream.StreamResult;

      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
      DocumentBuilder db = dbf.newDocumentBuilder();
      Document xmldoc = db.newDocument();
      OutputStreamWriter fos = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream("DELETE")), "UTF-8");
      TransformerFactory tFactory = TransformerFactory.newInstance();
      Transformer transformer = tFactory.newTransformer();
      DOMSource source = new DOMSource(xmldoc);
      StreamResult result = new StreamResult(fos);
      transformer.transform(source, result);

      Show
      import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document xmldoc = db.newDocument(); OutputStreamWriter fos = new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream("DELETE")), "UTF-8"); TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); DOMSource source = new DOMSource(xmldoc); StreamResult result = new StreamResult(fos); transformer.transform(source, result);
    • Affects:
      Compatibility/Configuration

      Description

      NOTE: It appear only when we change our JBoss AS from 7.1.3 to EAP 6.1.0.Final .

      On using basic Java XML api to write an XML, we end up with this trace :
      Caused by: org.apache.xml.serializer.utils.WrappedRuntimeException: org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to org.apache.xml.serializer.SerializationHandler
      at org.apache.xml.serializer.SerializerFactory.getSerializer(SerializerFactory.java:179) [org.apache.xml.serializer-2.7.1.jar:]
      at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:260)
      at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:330)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dmlloyd David Lloyd
                Reporter:
                ylemoigne Yann Le Moigne
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: