UTFDataFormatException occurs while deploying a TIBCO ActiveMatrix BPM application

UTFDataFormatException occurs while deploying a TIBCO ActiveMatrix BPM application

book

Article ID: KB0083738

calendar_today

Updated On:

Products Versions
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) 2.2.0, 3.0.0, 3.1.0, 4.0.0, 4.1.0

Description

Symptoms

Application deployment (or upgrade) may result in CONFIGURE_FAILED state due to UTFDataFormatException. 

Caused by: java.io.UTFDataFormatException
    at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2125)
    at java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:1968)
    at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:841)
    at com.tibco.expr.script.ScriptExpressionManager$ScriptExpressionImpl.writeObject(ScriptExpressionManager.java:387)

Cause 

A script defined in the script task is stored in the database as a serializable string object in UTF-8 format. Along with the script definition, any relevant BOM factories are also stored in the same object. Java does not allow such objects to be more than 64k.  

Issue/Introduction

UTFDataFormatException occurs while deploying a TIBCO ActiveMatrix BPM application.

Resolution

TIBCO recommends to restrict the script definition to 60k. Any script that exceeds this limit should be split into multiple script tasks.