playframework 2.0 - Is there a file size limit to the Scala templates? -


i have scala template contains embedded hard coded images (eg <img src="data:image/gif;base64,ivborw0k... ). testing used same image.

when compile application following error

java.io.ioexception: invalid constant type: 106 @ 119     @ javassist.bytecode.constpool.readone(constpool.java:1044)     @ javassist.bytecode.constpool.read(constpool.java:984)     @ javassist.bytecode.constpool.<init>(constpool.java:125)     @ javassist.bytecode.classfile.read(classfile.java:770)     @ javassist.bytecode.classfile.<init>(classfile.java:114)     @ javassist.ctclasstype.<init>(ctclasstype.java:95)     @ javassist.classpool.makeclass(classpool.java:728)     @ javassist.classpool.makeclass(classpool.java:706)     @ play.core.enhancers.propertiesenhancer.rewriteaccess(propertiesenhancer.java:145)     @ sbt.playcommands$$anonfun$postcompile$1$$anonfun$apply$32.apply(playcommands.scala:327)     @ sbt.playcommands$$anonfun$postcompile$1$$anonfun$apply$32.apply(playcommands.scala:327)     @ scala.collection.mutable.resizablearray$class.foreach(resizablearray.scala:60)     @ scala.collection.mutable.arraybuffer.foreach(arraybuffer.scala:47)     @ sbt.playcommands$$anonfun$postcompile$1.apply(playcommands.scala:327)     @ sbt.playcommands$$anonfun$postcompile$1.apply(playcommands.scala:305) .... 

however, no error thrown when compiling 1 embedded image.

so i'm assuming has file size.

is there scala template file size setting , if how increase it? or barking wrong tree?

thanks.

because templates reduced methods engine, , methods being compiled , run on jvm there hard limit of 64 kib method. templates can larger in practice, largest single method may not exceed limit.

if want see output of template engine inspect methods yourself, after project has been compiled can found @ <project>\target\scala-2.10\src_managed\main\views\html\...

more details:


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -