# java.lang.ClassFormatError: Unknown constant tag

I tried to assign the contents of a large XSL-FO file to a String in one of my Groovy classes. The result?

BUILD FAILED C:\G2Sandbox\art\internal\batch\build.xml:39: The following error occurred while executing this line: C:\G2Sandbox\art\internal\batch\project.xml:177: java.lang.ClassFormatError: Unknown constant tag 32 in class file com/geekcredential/agent/commission/SummaryValue

Apparently there’s a 64K limit on strings in the JVM.

I got around this problem by breaking my XSL-FO into two Strings, which I then appended to a StringBuffer. This got by the compiler, and it did not seem to cause any problems when the contents of the StringBuffer were read back out toString() at runtime.