When we create a calculated field with an expression who has large number of characters for example 54k characters, the calculated field is getting created successfully but when we try to drag the field in the table, we are getting below -
groovyjarjarasm.asm.MethodTooLargeException: Method too large: JRS_GenColumn.getValue ()Ljava/lang/Object;
The JVM has a limitation that a method cannot be greater than 64KB. It seems like the expression for the calculated field is getting transformed into a groovy code which exceeds the 64kb limit and the error is thrown by the jasperserver.
The enhancement request is to support such expressions in the calculated field.
A workaround for such usecase is to use N calculated fields for example, instead of a big expression create two fields and use them in the third one.
Components | AdHoc |