Error rendering template

87 views
Skip to first unread message

Chetan

unread,
Feb 19, 2012, 1:38:43 AM2/19/12
to play-framework
I have a fairly HTML template (tag) (about 500kb template file). When
I render it, I get the following error


SEVERE:

@69e44l02m
Internal Server Error (500) for request GET /valuation/
intrinsicvaluationworkflo
w

Template execution error (In /app/views/Valuation/
intrinsicValuationWorkFlow.htm
l around line 17)
Execution error occured in template /app/views/Valuation/
intrinsicValuationWorkF
low.html. Exception raised was ClassFormatError : Invalid method Code
length 388
861 in class file Template_1004$_run_closure1.

play.exceptions.TemplateExecutionException: Invalid method Code length
388861 in
class file Template_1004$_run_closure1
at
play.templates.BaseTemplate.throwException(BaseTemplate.java:86)
at
play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:257)

at play.templates.Template.render(Template.java:26)
at play.templates.GroovyTemplate.render(GroovyTemplate.java:
187)
at play.mvc.results.RenderTemplate.<init>(RenderTemplate.java:
24)
at play.mvc.Controller.renderTemplate(Controller.java:660)
at play.mvc.Controller.renderTemplate(Controller.java:640)
at play.mvc.Controller.render(Controller.java:695)
at
controllers.Valuation.intrinsicValuationWorkFlow(Valuation.java:27)
at
play.mvc.ActionInvoker.invokeWithContinuation(ActionInvoker.java:548)

at play.mvc.ActionInvoker.invoke(ActionInvoker.java:502)
at
play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:478)

at
play.mvc.ActionInvoker.invokeControllerMethod(ActionInvoker.java:473)

at play.mvc.ActionInvoker.invoke(ActionInvoker.java:161)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.ClassFormatError: Invalid method Code length
388861 in clas
s file Template_1004$_run_closure1
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at play.templates.GroovyTemplate
$TClassLoader.defineTemplate(GroovyTempl
ate.java:80)
at play.templates.GroovyTemplate.compile(GroovyTemplate.java:
136)
at
play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:195)

at play.templates.GroovyTemplate
$ExecutableTemplate.invokeTag(GroovyTemp
late.java:379)
at /app/views/Valuation/intrinsicValuationWorkFlow.html.(line:
17)
at
play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:232)

... 13 more

Manuel Bernhardt

unread,
Feb 19, 2012, 8:42:21 AM2/19/12
to play-fr...@googlegroups.com
Just out of curiosity - how do you get to 500kb of HTML?

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>

Chetan

unread,
Feb 19, 2012, 3:53:35 PM2/19/12
to play-framework
I have written a code generator which generates a large HTML including
a lot of JQuery code based on the inputs.

Looks like my only current option is to keep my generated code split
up into separate templates to get around the 64k limitation :(


On Feb 19, 5:42 am, Manuel Bernhardt <bernhardt.man...@gmail.com>
wrote:

Morten Kjetland

unread,
Feb 19, 2012, 4:42:12 PM2/19/12
to play-fr...@googlegroups.com

It would be interesting if you tried out using the module fastergt.

-morten

Reply all
Reply to author
Forward
0 new messages