How to get more fields in a LiveView table

How to get more fields in a LiveView table

book

Article ID: KB0083086

calendar_today

Updated On:

Products Versions
TIBCO Live Datamart 2.1.x, 2.2.x

Description

In some cases, a LiveView table's schema can be large enough to trigger Java's 64KB method size limit, and your table will not compile.  You will see an error in the console like..
 
ERROR [2015-04-10 10:53:23:657] [main] [SBARGenerator] - CompilationException: JaninoRuntimeException: Code attribute "op__is_Control_Tick__0" in class "cm.__Customer_Pricing_Common_In_7002Esbapp_.sbd_1428659532241_34___R_F_Q_Deco38bb4501daf07027cde7ebc9e4134bba0e9cac05DIG_" grows beyond 64 KB

Issue/Introduction

This article explains how to get more fields in a LiveView table in the case where you reach Java's 64kb method size limit.

Resolution

In most cases, this error can be avoided by setting the following in your sbd.sbconf under the <java-vm> element:
 
<java-vm>
	<sysproperty name="streambase.codegen.allow-refactoring" value="true"/>
</java-vm>

This tells the underlying StreamBase runtime to do some extra refactoring on the fly so your tables will compile and run.