XalanJ2
  1. XalanJ2
  2. XALANJ-1549

XSLT Error (javax.xml.transform.TransformerConfigurationException): Could not load the translet class

    Details

      Description

      I am using XSLTC with TraX API. When my XSL size grows bigger, I get an error
      as below while getting new Transformer from the Templates.

      -----------------------------------------------------------------------------
      javax.xml.transform.TransformerConfigurationException: Could not load the
      translet class 'Big'.
      at org.apache.xalan.xsltc.trax.TemplatesImpl.defineTransletClasses
      (TemplatesImpl.java:311)
      at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance
      (TemplatesImpl.java:329)
      at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer
      (TemplatesImpl.java:366)
      at prj_translet.JAXPTransletMultipleTransformations.doTransform
      (JAXPTransletMultipleTransformations.java:28)
      at prj_translet.JAXPTransletMultipleTransformations.main
      (JAXPTransletMultipleTransformations.java:79)
      ---------------------------------------------------------------------------

      I could reproduce this problem with "org.apache.xalan.xslt.Process -XSLTC".

      java -Xss100m -Xms128m -Xmx256m -
      Xbootclasspath/p:.;xalan.jar;xercesImpl.jar;xml-apis.jar;
      org.apache.xalan.xslt.Process -XSLTC -in todo.xml -xsl Big.txt -out
      OutForBig.html

      The XSL that I am using can be found here
      http://www.geocities.com/ial7158/Big.txt

      The java program that I used can be found here:
      http://www.geocities.com/ial7158/JAXPTransletMultipleTransformations.java

      With Regards
      Palanisamy
      Palanisamy_Gounder@stercomm.com

      1. TestXSLTC.java
        2 kB
        Palanisamy Gounder
      2. input.xml
        9 kB
        Palanisamy Gounder
      3. Big.xsl
        100 kB
        Palanisamy Gounder

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12571013 ] jira [ 12594857 ]
        Mark Thomas made changes -
        Workflow jira [ 36453 ] Default workflow, editable Closed status [ 12571013 ]
        Brian Minchau made changes -
        Fix Version/s 2.7.1 [ 10863 ]
        Fix Version/s The Latest Development Code [ 12312206 ]
        Palanisamy Gounder made changes -
        Attachment Big.xsl [ 12322829 ]
        Attachment input.xml [ 12322830 ]
        Attachment TestXSLTC.java [ 12322828 ]
        Henry Zongaro made changes -
        Resolution Duplicate [ 3 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Brian Minchau made changes -
        Resolution Duplicate [ 3 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s Latest Development Code [ 10863 ]
        Brian Minchau made changes -
        Affects Version/s 2.5Dx [ 10869 ]
        Affects Version/s Latest Development Code [ 10863 ]
        Brian Minchau made changes -
        Affects Version/s 2.5 [ 10870 ]
        Affects Version/s Latest Development Code [ 10863 ]
        Brian Minchau made changes -
        Component/s XSLTC parse/compile [ 11380 ]
        Component/s XSLTC [ 11337 ]
        Component/s parse or compile [ 11402 ]
        Brian Minchau made changes -
        Component/s XSLTC parser [ 11380 ]
        Assignee Xalan Developers Mailing List [ xalan-dev@xml.apache.org ]
        Priority Blocker [ 1 ]
        Description I am using XSLTC with TraX API. When my XSL size grows bigger, I get an error
        as below while getting new Transformer from the Templates.

        -----------------------------------------------------------------------------
        javax.xml.transform.TransformerConfigurationException: Could not load the
        translet class 'Big'.
        at org.apache.xalan.xsltc.trax.TemplatesImpl.defineTransletClasses
        (TemplatesImpl.java:311)
        at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance
        (TemplatesImpl.java:329)
        at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer
        (TemplatesImpl.java:366)
        at prj_translet.JAXPTransletMultipleTransformations.doTransform
        (JAXPTransletMultipleTransformations.java:28)
        at prj_translet.JAXPTransletMultipleTransformations.main
        (JAXPTransletMultipleTransformations.java:79)
        ---------------------------------------------------------------------------

        I could reproduce this problem with "org.apache.xalan.xslt.Process -XSLTC".

        java -Xss100m -Xms128m -Xmx256m -
        Xbootclasspath/p:.;xalan.jar;xercesImpl.jar;xml-apis.jar;
        org.apache.xalan.xslt.Process -XSLTC -in todo.xml -xsl Big.txt -out
        OutForBig.html


        The XSL that I am using can be found here
        http://www.geocities.com/ial7158/Big.txt

        The java program that I used can be found here:
        http://www.geocities.com/ial7158/JAXPTransletMultipleTransformations.java


        With Regards
        Palanisamy
        Palanisamy_Gounder@stercomm.com
        I am using XSLTC with TraX API. When my XSL size grows bigger, I get an error
        as below while getting new Transformer from the Templates.

        -----------------------------------------------------------------------------
        javax.xml.transform.TransformerConfigurationException: Could not load the
        translet class 'Big'.
        at org.apache.xalan.xsltc.trax.TemplatesImpl.defineTransletClasses
        (TemplatesImpl.java:311)
        at org.apache.xalan.xsltc.trax.TemplatesImpl.getTransletInstance
        (TemplatesImpl.java:329)
        at org.apache.xalan.xsltc.trax.TemplatesImpl.newTransformer
        (TemplatesImpl.java:366)
        at prj_translet.JAXPTransletMultipleTransformations.doTransform
        (JAXPTransletMultipleTransformations.java:28)
        at prj_translet.JAXPTransletMultipleTransformations.main
        (JAXPTransletMultipleTransformations.java:79)
        ---------------------------------------------------------------------------

        I could reproduce this problem with "org.apache.xalan.xslt.Process -XSLTC".

        java -Xss100m -Xms128m -Xmx256m -
        Xbootclasspath/p:.;xalan.jar;xercesImpl.jar;xml-apis.jar;
        org.apache.xalan.xslt.Process -XSLTC -in todo.xml -xsl Big.txt -out
        OutForBig.html


        The XSL that I am using can be found here
        http://www.geocities.com/ial7158/Big.txt

        The java program that I used can be found here:
        http://www.geocities.com/ial7158/JAXPTransletMultipleTransformations.java


        With Regards
        Palanisamy
        Palanisamy_Gounder@stercomm.com
        Environment Operating System: All
        Platform: All
        Operating System: All
        Platform: All
        Component/s XSLTC [ 11337 ]
        Serge Knystautas made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 20470 26458
        Palanisamy Gounder created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Palanisamy Gounder
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development