Bug 1166663 - Tasks with ID higher than 1000 does not being completed
Summary: Tasks with ID higher than 1000 does not being completed
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: CR1
: 6.2.0
Assignee: Marco Rietveld
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1175887 1276354
TreeView+ depends on / blocked
 
Reported: 2014-11-21 12:50 UTC by Spolti
Modified: 2020-03-27 20:07 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
: 1175887 1276354 (view as bug list)
Environment:
Last Closed: 2020-03-27 20:07:41 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer (2.27 KB, application/zip)
2014-11-21 12:50 UTC, Spolti
no flags Details

Description Spolti 2014-11-21 12:50:59 UTC
Created attachment 959681 [details]
Reproducer

Description of problem:
Tasks with ID higher than 1000 does not being completed and the error is shown in the Firefox java script console:  uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: For input string: "1,005"
Print screen attached.

Version-Release number of selected component (if applicable):
jbpms-6.0.2
jbpms-6.0.3
We tested in the versions above.


How reproducible, Steps to Reproduce:

I created a simple project with only one  human task, deployed the project and started 1002 instances of it using the following script:

for i in `seq 0 1001`
do
    curl -X POST -u 'user:password' http://localhost:8080/business-central/rest/runtime/{DeploymentID}/process/{ProcessID}/start
done

In my case curl is as follows:

curl -X POST -u 'jesuino:redhat2014!' http://localhost:8080/business-central/rest/runtime/com.redhat.gss.bpms:test-lots-ht:1.0/process/test-lots-ht.simple-ht-process/start

You need to replace user, password, deploymentId and processID with the parameters of your environment. Make use user is an actor of the human task.

When when I go to Tasks -> Tasks List, I see more than 1000 tasks tasks waiting to be completed. When I click on a task with more ID bigger than 1000 start it and and click in complete, I can see the mentioned error in the javascript console.

Actual results:
In the business-central at the Task List, the task should be completed but instead the error is shown in the javascript console: 
com.google.gwt.event.shared.UmbrellaException: Exception caught: For input string: "1,005" 


Expected results:
Task should be completed.

Additional info:
As workaround we can use this curl -X POST -u 'user:password' http://localhost:8080/business-central/rest/task/taskId/complete

But if the task receive parameters, this workaround will not work.

Comment 3 Spolti 2014-11-21 19:54:26 UTC
Tested with different locales:
Brazil (1 011) :  uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: For input string: "1 011"

French (1.011) : uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: For input string: "1.011"

United Kingdom (1,011) :  uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: For input string: "1,011"

Comment 4 Mauricio Salatino 2014-11-21 20:22:23 UTC
This issue is no longer present in 6.2.x branch. I wasn't able to reproduce the issues described with the 6.0.3 version of the product.

Comment 8 Mauricio Salatino 2014-12-05 13:51:44 UTC
I've fixed this in a branch based on 6.0.x -> and the patches can be obtained from here: 
https://github.com/droolsjbpm/jbpm-console-ng/commit/36ecfb702.patch

(optional but recommended: https://github.com/droolsjbpm/kie-wb-distributions/commit/857cebcad.patch)

I will NOT merge this with 6.0.x

The work can be tested by using the BZ-1166663 in the jbpm-console-ng and kie-wb repositories.

Comment 10 Jan Hrcek 2015-01-20 09:23:59 UTC
Ok, verified with BPM Suite 6.1.0 ER4

Comment 11 Kris Verlaenen 2015-10-29 13:33:52 UTC
Reopening, see https://bugzilla.redhat.com/show_bug.cgi?id=1175887

The fix is locale-dependant.

See [1].

For example, it does not work with es_ES and it_IT locale.

In different locales (beside en_US), the 1,000 is apparently interpreted as ONE and not as THOUSAND, so you may end up with following exception:
https://ctrlv.cz/shots/2015/10/29/wq3Z.png

Please make sure that this is fixed across all locale settings.

[1] http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/NumberFormat.html#getDecimalFormat()

This seems to have even more serious impact in 6.1

See task list with es_ES locale when there are tasks with id over 1000
https://ctrlv.cz/shots/2015/10/29/i2Gs.png

It's empty.

In comparison, the same Task List with en_US settings:
https://ctrlv.cz/shots/2015/10/29/Uu85.png

Comment 13 Anton Giertli 2015-10-30 13:54:42 UTC
Easily reproducible:

1) edit $JBOSS_HOME/bin/standalone.conf
JAVA_OPTS="$JAVA_OPTS -Duser.language=it -Duser.region=IT" 

2) start JBoss and access http://host:port/business-central?locale=en_US

3) Create 1000+ processes

4) Access Task List

OR

skip 1 and do just 2/3/4 but access business-central with ?locale=es_ES

Comment 14 Kris Verlaenen 2015-11-09 16:58:52 UTC
From Mauricio: I've checked din 6.3.x and this is working as expected with the new data grids mechanism.

Moving to MODIFIED for verification.

Comment 15 Jan Hrcek 2015-11-20 11:46:43 UTC
Verified with BPM Suite 6.2.0 CR1.

Comment 16 PnT Account Manager 2017-12-07 23:36:30 UTC
Employee 'msalatin' has left the company.


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