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

Need better error message - $myvar/x results in classcastexception when $myvar is a result-tree fragment

    XMLWordPrintableJSON

Details

    Description

      >>>>>>> Xalan Version Xalan Java 2.7.0, <<<<<<<

      file:///c:/mystuff/projects/xslt/src/xslt/duplicatekey-original.xsl; Line #0; Column #0; XSLT Error (javax.xml.transform.TransformerException): java.lang.ClassCastException
      java.lang.RuntimeException: java.lang.ClassCastException
      at org.apache.xalan.xslt.Process2.doExit(Process2.java:1153)
      at org.apache.xalan.xslt.Process2.main(Process2.java:1126)
      Exception in thread "main"

      Here is my environment

              • BEGIN writeEnvironmentReport($Revision: 1.29 $): Useful stuff found: ----
                version.DOM.draftlevel=2.0fd
                java.class.path=c:\mystuff\projects\xslt\classes
                version.JAXP=1.1 or higher
                java.ext.dirs=C:\mystuff\bea\142-06-xalan\jre\lib\ext
              • BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path ----
                serializer.jar-apparent.version=serializer.jar present-unknown-version
                serializer.jar-path=C:\mystuff\bea\142-06-xalan\lib\endorsed\serializer.jar
                xalan.jar-path=C:\mystuff\bea\142-06-xalan\lib\endorsed\xalan.jar
                xercesImpl.jar-apparent.version=xercesImpl.jar from Xerces-J-bin.2.7.1
                xercesImpl.jar-path=C:\mystuff\bea\142-06-xalan\lib\endorsed\xercesImpl.jar
                xml-apis.jar-apparent.version=xml-apis.jar from head branch of xml-commons, tag: xml-commons-external_1_3_02
                xml-apis.jar-path=C:\mystuff\bea\142-06-xalan\lib\endorsed\xml-apis.jar
                • END Listing XML-related jars in: foundclasses.sun.boot.class.path -----
                  version.xerces2=Xerces-J 2.7.1
                  version.xerces1=not-present
                  version.xalan2_2=Xalan Java 2.7.0
                  version.xalan1=not-present
                  version.ant=not-present
                  java.version=1.4.2_06
                  version.DOM=2.0
                  version.crimson=present-unknown-version
                  sun.boot.class.path=C:\mystuff\bea\142-06-xalan\lib\endorsed\serializer.jar;C:\mystuff\bea\142-06-xalan\lib\endorsed\xalan.jar;C:\mystuff\bea\142-06-xalan\lib\endorsed\xercesImpl.jar;C:\mystuff\bea\142-06-xalan\lib\endorsed\xml-apis.jar;C:\mystuff\bea\142-06-xalan\jre\lib\rt.jar;C:\mystuff\bea\142-06-xalan\jre\lib\i18n.jar;C:\mystuff\bea\142-06-xalan\jre\lib\sunrsasign.jar;C:\mystuff\bea\142-06-xalan\jre\lib\jsse.jar;C:\mystuff\bea\142-06-xalan\jre\lib\jce.jar;C:\mystuff\bea\142-06-xalan\jre\lib\charsets.jar;C:\mystuff\bea\142-06-xalan\jre\classes
                  version.SAX=2.0
                  version.xalan2x=Xalan Java 2.7.0
                • END writeEnvironmentReport: Useful properties found: -----
      1. YAHOO! Your environment seems to be OK.

      Attachments

        1. duplicatekey.xml
          0.4 kB
          MG
        2. duplicatekey-original.xsl
          0.8 kB
          MG

        Activity

          People

            Unassigned Unassigned
            java97301 MG
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: