When this error occurs these system properties can be used to force the generated code to be refactored to work-around the Java limits:
System Property | Values | Description |
streambase.codegen.allow-refactoring | true to enable refactoring, false to disable. Default value is false . | Enable refactoring. |
streambase.codegen.n-stmts-limit | Positive integer > 1. Default value is 300. | Maximum number of statements in a block. streambase.codegen.allow-refactoring must be true . |
In 7.7.x, these properties could be included in .sbconf:
<java-vm>
<sysproperty name="streambase.codegen.allow-refactoring" value="true"/>
<sysproperty name="streambase.codegen.n-stmts-limit" value="200"/>
</java-vm>
For 10.x, when launching the fragment from studio, these are set on the
Advanced tab of a Studio launch configuration:
-Dstreambase.codegen.allow-refactoring=true
-Dstreambase.codegen.n-stmts-limit=200
-Dstreambase.codegen.broken-method-names=<Comma-separated list of fully-qualified-method-name:refactor-value or simple-method-name:refactor-value values>
The
refactor-value must be less than the value of
streambase.codegen.n-stmts-limit
. Maximum number of statements in a block for a specific method.
For more details on these settings, please refer to the Help under
Home > StreamBase References > StreamBase Java Properties