Discussion:
[jboss-user] [jBPM] - Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2
Dev S
2012-08-07 10:25:01 UTC
Permalink
Dev S [https://community.jboss.org/people/devinderpal] created the discussion

"Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/752342#752342

--------------------------------------------------------------
Env: Jboss 7.1.0, mysql DB, Redhat 5.5, jBPM 5.2

When I thought I'm getting pretty good with jBPM and our application is about to be released, i came across this tough bug during extensive testing.
Intermittently we're facing that pending human task has missing parent process instance and it results in nullpointerexception while completing that human task.

I ran below SQL query to confirm this:
select t.id, t.processInstanceId from Task t where t.processInstanceId not in (select distinct(InstanceId) from ProcessInstanceInfo);
+----+-------------------+
| id | processInstanceId |
+----+-------------------+
| 33 |                20 |
| 43 |                20 |
| 47 |                20 |
| 53 |                20 |
| 57 |                20 |
+----+-------------------+

Same code works fine most of the time. So I think it's not problem with our code but some bug in jBPM. MinaTaskServer is being used for our implementation.
Also we use JTA persistence for jBPM core engine and RESOURCE_LOCAL for human task. We have to use RESOURCE_LOCAL for human task because JTA can't be used due to another jBPM bug.
If I reinitialize the database, then everything works fine for a while but again I run into this problem.

Please let us know how we can fix it, if anyone knows solution. I was about to create a blocker JIRA issue but thought let's first get community opinion on this.
Exception stack trace is attached.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752342#752342]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
gardellajp
2012-08-07 12:46:16 UTC
Permalink
gardellajp [https://community.jboss.org/people/gardellajp] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/752380#752380

--------------------------------------------------------------
Hi,

My experiencie with JBPM was painfull when use Apache Mina. I have a lot of problems. When I switch to Local Task Server then the problems gone. So, my recommendation is don't use Apache Mina.

Juan
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752380#752380]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jboss fan99
2012-08-07 21:31:07 UTC
Permalink
Jboss fan99 [https://community.jboss.org/people/devinderpal] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/752464#752464

--------------------------------------------------------------
That's a great point! I can try to move to LocalTaskServer. Will let you know how it goes.
I think MinaTaskServer does result into number of problem due to core jbpm APIs and human task APIs running in separate threads and hence separate transactions.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752464#752464]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jboss fan99
2012-08-08 15:53:02 UTC
Permalink
Jboss fan99 [https://community.jboss.org/people/devinderpal] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/752654#752654

--------------------------------------------------------------
Anyone knows if Local human task server support JTA transactions. We're currently using RESOURCE_LOCAL for human task server because I believe there is a bug with human task (may be Mina related) due to which JTA doesn't work. It will be great if we can use JTA with local human task server.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752654#752654]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
gardellajp
2012-08-08 16:19:46 UTC
Permalink
gardellajp [https://community.jboss.org/people/gardellajp] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/752670#752670

--------------------------------------------------------------
LocalTaskServer use JTA, so yes.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/752670#752670]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Jboss fan99
2012-08-30 14:15:51 UTC
Permalink
Jboss fan99 [https://community.jboss.org/people/devinderpal] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/757014#757014

--------------------------------------------------------------
It even happens with local task server. At this point, I don't have steps to reproduce but I'm sure that even local task server leads to reserved human tasks with missing parent process instance
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/757014#757014]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
pilakkum
2013-04-23 06:53:54 UTC
Permalink
pilakkum [https://community.jboss.org/people/pilakkum] created the discussion

"Re: Intermittently pending human task come across a missing jbpm parent process in jBPM 5.2"

To view the discussion, visit: https://community.jboss.org/message/809723#809723

--------------------------------------------------------------
Hi -  I am facing a similair problem wherein processinstance and workitem do not get persisted however the task gets persisted. Has anyone resolved this problem - Can you please provide resolution used for solving it ?.   Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/809723#809723]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...