Bug 1320206 - BigApp: JWS2/3 databases error when finishing DataCorection task
Summary: BigApp: JWS2/3 databases error when finishing DataCorection task
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.3.0
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ER3
: 6.3.0
Assignee: Marco Rietveld
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-22 14:51 UTC by Pavel Kralik
Modified: 2020-03-27 20:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:11:03 UTC
Type: Bug


Attachments (Terms of Use)
DataCorrection DB Error (77.74 KB, image/png)
2016-03-22 14:51 UTC, Pavel Kralik
no flags Details
EWS2 catalina.out (279.91 KB, text/plain)
2016-03-22 15:55 UTC, Pavel Kralik
no flags Details
EWS3 catalina.out (299.77 KB, text/plain)
2016-03-22 15:55 UTC, Pavel Kralik
no flags Details
Mysql57 modal dialog (66.52 KB, image/png)
2016-03-22 16:20 UTC, Pavel Kralik
no flags Details
mysql57 catalina.out (52.29 KB, text/plain)
2016-03-22 16:20 UTC, Pavel Kralik
no flags Details
Postgre84 modal dialog (63.48 KB, image/png)
2016-03-22 16:21 UTC, Pavel Kralik
no flags Details
Postgre84 catalina.out (52.75 KB, text/plain)
2016-03-22 16:22 UTC, Pavel Kralik
no flags Details

Description Pavel Kralik 2016-03-22 14:51:30 UTC
Created attachment 1139087 [details]
DataCorrection DB Error

Description of problem:
Deploying and executing bigapp DataCorection task results in H2 SQL error

Version-Release number of selected component (if applicable):
BPMS 6.3.0.ER1

How reproducible:
Always

Steps to Reproduce:
1. deploy bigapp repo and run example mortgage applicant witn JWS3 and H2 database
2. when DataCorrection task is generated, there is a H2 SQL error
3. See attached screenshot

Actual results:
SQL error

Expected results:
DataCorrection task is commited to Database

Additional info:

Comment 2 Pavel Kralik 2016-03-22 15:49:56 UTC
JWS2 with H2 database is affected too.

Comment 3 Pavel Kralik 2016-03-22 15:55:04 UTC
Created attachment 1139114 [details]
EWS2 catalina.out

Comment 4 Pavel Kralik 2016-03-22 15:55:36 UTC
Created attachment 1139115 [details]
EWS3 catalina.out

Comment 5 Pavel Kralik 2016-03-22 16:19:10 UTC
Other databases affected with "Cannot commit transaction - ERROR: value too long for type character varying(4000)" modal dialog and catalina.out error log.

Mysql55, Postgre84/93 with JWS2/3 and bigapp repo clonned.

Comment 6 Pavel Kralik 2016-03-22 16:20:09 UTC
Created attachment 1139117 [details]
Mysql57 modal dialog

Comment 7 Pavel Kralik 2016-03-22 16:20:46 UTC
Created attachment 1139118 [details]
mysql57 catalina.out

Comment 8 Pavel Kralik 2016-03-22 16:21:29 UTC
Created attachment 1139119 [details]
Postgre84 modal dialog

Comment 9 Pavel Kralik 2016-03-22 16:22:11 UTC
Created attachment 1139120 [details]
Postgre84 catalina.out

Comment 10 Marco Rietveld 2016-03-30 10:32:40 UTC
It looks like the String value of TaskVariableImpl.value needs to be checked (and preemptively shortened) before any persists or commits. 

We have similar code in other areas of the human-task code.

Comment 11 Kris Verlaenen 2016-03-30 13:44:10 UTC
Any idea why this would only occur on JWS?

Comment 12 Maciej Swiderski 2016-03-31 14:10:08 UTC
this certainly would fail on all contaienrs/servers as this was caused by too big variable size that was attempted to be stored in task variable log which max size is set to 4000 chars. I included same mechanism as we have for process variables - trim the content in case it's too long and issue warning into logs

jbpm
master:
https://github.com/droolsjbpm/jbpm/commit/dd02ae909d7f105c117670887ead36af655ed3eb

6.4.x:
https://github.com/droolsjbpm/jbpm/commit/cdceb70fc250994116620dc54d9261acf7bdfde1

Comment 13 Pavel Kralik 2016-04-18 11:56:44 UTC
BPMS 6.3.0.ER3


Note You need to log in before you can comment on or make changes to this bug.