[ 
https://issues.apache.org/jira/browse/XALANJ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18014464#comment-18014464
 ] 

Joe Kesselman commented on XALANJ-1549:
---------------------------------------

I know IBM did some work to try to overcome the Java 64k limits on class 
bytecode size, but I'm not sure that work made it into Apache Xalan/XSLTC. This 
should be rechecked.

If that is what's causing trouble, breaking templates up into smaller pieces 
often helped.

> XSLT Error (javax.xml.transform.TransformerConfigurationException): Could not 
> load the translet class
> -----------------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-1549
>                 URL: https://issues.apache.org/jira/browse/XALANJ-1549
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: parse-or-compile, XSLTC
>    Affects Versions: 2.5Dx
>         Environment: Operating System: All
> Platform: All
>            Reporter: Palanisamy Gounder
>            Priority: Blocker
>             Fix For: The Latest Development Code
>
>         Attachments: Big.xsl, TestXSLTC.java, input.xml
>
>
> 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
> [email protected]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to