Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2063

ClassCastException in org.apache.xalan.xsltc.trax.TransformerFactoryImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.6
    • None
    • transformation
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • Windows XP, JDK1.5.0_01

    Description

      Occurs in method newTransformerHandler(Templates templates). There is a cast to TransformerImpl. There is more than one class shipped in the xalan jar that subclasses javax.xml.transform.Transformer.

      The background to this is that I created the Templates object using a different TransformerFactory (also a Xalan factory).
      The factory used to create the templates object was created using:
      javax.xml.transform.TransformerFactory#newInstance()
      The factory used to create the transformer handler object was created using:
      javax.xml.transform.SAXTransformerFactory#newInstance()

      Attachments

        1. cdcatalog.xsl
          0.6 kB
          PJ Fanning

        Activity

          People

            ramesh.mandava@sun.com Ramesh Mandava
            fanningpj PJ Fanning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: