Hi, Johan.

news <[EMAIL PROTECTED]> wrote on 2005-12-05 03:19:07 AM:
> I'm running into some problems when I'm trying to parse my xsl (xsl:fo 
to be
> precise). Has anyone encountered this before ? How would I get around 
it?
> I hope extracting some elements into templates might do the trick, but 
I'm not
> optimistic... (maybe the translet is compiled differently then)
...
> Exception in thread "main" java.lang.ClassFormatError: translet_out 
(Code of a
> method longer than 65535 bytes)

     The JVM specification restricts methods in classes to fewer than 
65536 bytes in length.  When XSLTC generates translet classes, it 
sometimes creates methods that surpass that limit, which results in the 
ClassFormatError you see when the JVM attempts to load the class.

     This is a known problem.  Until we have a fix for it (which I'm 
hoping will be this month) your only recourse is to try to restructure 
your stylesheet by making some of the templates smaller - "extracting some 
elements into templates," as you guessed.

Thanks,

Henry
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   T/L 969-6044;  Phone +1 905 413-6044
mailto:[EMAIL PROTECTED]


Reply via email to