[
https://issues.apache.org/jira/browse/XALANJ-1549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18014467#comment-18014467
]
Joe Kesselman edited comment on XALANJ-1549 at 10/2/25 6:27 PM:
----------------------------------------------------------------
Current output of Xalan 2.7.3 immediately executing the compiled stylesheet is
as follows. Note that I'm not actually seeing any large templates, and only 301
total. So, yes, it appears to be a BCEL code gen issue, but nothing that
obvious.
I'm not sure I remember XSLTC's architecture well enough to have a better shot
at resolving this than anyone else – I had a completely different architecture
swapped in when working on XTQHP.
{code:java}
[keshlam@JIK Downloads]$ java -cp
{~}/git/xalan-java/build/{*}:{*}{~}{*}/git/xalan-java/lib/{*}
org.apache.xalan.xslt.Process -in input.xml -xsl Big.xsl -XSLTC
(Location of error unknown)Internal XSLTC error: a method in the translet
exceeds the Java Virtual Machine limitation on the length of a method of 64
kilobytes. This is usually caused by templates in a stylesheet that are very
large. Try restructuring your stylesheet to use smaller templates.
(Location of error unknown)Could not compile stylesheet
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerConfigurationException): Could not compile
stylesheet
Exception in thread "main" java.lang.RuntimeException: Could not compile
stylesheet
at org.apache.xalan.xslt.Process.doExit(Process.java:1157)
at org.apache.xalan.xslt.Process.main(Process.java:1130)
[keshlam@JIK Downloads]$
{code}
was (Author: JIRAUSER285361):
Current output of Xalan 2.7.3 immediately executing the compiled stylesheet is
as follows. Note that I'm not actually seeing any large templates, and only 301
total. So, yes, it appears to be a BCEL code gen issue, but nothing that
obvious.
I'm not sure I remember XSLTC's architecture well enough to have a better shot
at resolving this than anyone else – I had a completely different architecture
swapped in when working on XTQHP.
[keshlam@JIK Downloads]$ java -cp
~/git/xalan-java/build/*:~/git/xalan-java/lib/* org.apache.xalan.xslt.Process
-in input.xml -xsl Big.xsl -XSLTC
(Location of error unknown)Internal XSLTC error: a method in the translet
exceeds the Java Virtual Machine limitation on the length of a method of 64
kilobytes. This is usually caused by templates in a stylesheet that are very
large. Try restructuring your stylesheet to use smaller templates.
(Location of error unknown)Could not compile stylesheet
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerConfigurationException): Could not compile
stylesheet
Exception in thread "main" java.lang.RuntimeException: Could not compile
stylesheet
at org.apache.xalan.xslt.Process.doExit(Process.java:1157)
at org.apache.xalan.xslt.Process.main(Process.java:1130)
[keshlam@JIK Downloads]$
> 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]