jBPM does not allow to use Task Comment longer than 255 characters

Solution Verified - Updated -

Issue

  • It has been found that jBPM5 or jBPM6 does not allow users to set a value for the Comment property, more than a maximum number of 255 character.
  • When users try to set the Comment to a value more than 255 characters, the runtime engine throws the exception as shown below.
[org.hibernate.util.JDBCExceptionReporter] (Thread-18) SQL Error: 22001, SQLState: 22001
2014-06-05 17:34:07,274 ERROR [org.hibernate.util.JDBCExceptionReporter] (Thread-18) Value too long for column "SHORTTEXT VARCHAR(255)": "'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... (256)"; SQL statement:
insert into I18NText (id, language, shortText, text) values (null, ?, ?, ?) [22001-161]
2014-06-05 17:34:07,275 ERROR [org.jbpm.task.service.TaskServerHandler] (Thread-18) Operation failed
java.lang.RuntimeException: Operation failed
  • Is it a known limitation in BRMS 5.3.x and BPMS 6.0.x ?
  • Is there a workaround for both these releases?

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x
  • Red Hat JBoss BPM Suite (BPMS)
    • 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In