Bug 1072460

Summary: Business-central cluster throws CNFE TaskDeadlinesService$DeadlineType during fail-over of process containing task with deadlines configured
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Roger Martínez <romartin>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: etirelli, kverlaen, rrajasek, rzhang
Target Milestone: ER2Keywords: Regression
Target Release: 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:03:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
complete stacktrace from node 2 none

Description Radovan Synek 2014-03-04 15:49:15 UTC
Created attachment 870482 [details]
complete stacktrace from node 2

Description of problem:
Having a business-central cluster with 2 EAP nodes and a process definition containing a single user task with deadlines, following scenario fails:
1. start the process on node 1
2. shut the node 1 down
3. node 2 should handle the deadline with a reassignment and notification

=> on node 2 exception raises:
Error retrieving job, setting trigger state to ERROR.: org.quartz.JobPersistenceException: Couldn't retrieve job because a required class was not found: org.kie.internal.task.api.TaskDeadlinesService$DeadlineType from [Module "com.opensymphony.quartz:main"

The issue is very likely caused by missing dependency on org.kie module in the com.opensymphony.quartz module.

Steps to Reproduce:
1. configure a business-central cluster with 2 EAP nodes
2. create some repo,project and process definition with deadlines. Or clone
git://git.app.eng.bos.redhat.com/bpms-assets.git, use project "clustering", process definition "HumanTaskEscalation.bpmn2" (and define corresponding users)
3. log in to business-central on node 1, start the process
4. stop the node 1
5. log in to business-central on node 2 as the user who the task should be reassigned to, refresh tasks list => nothing to claim
6. observe the server log on node 2

Comment 1 Radovan Synek 2014-03-04 17:26:09 UTC
Confirmed that the issue can be fixed by adding dependency on the org.kie module.

Comment 2 Roger Martínez 2014-03-04 18:41:14 UTC
Thanks Radovan for the solution! :)

Commit into 6.0.x -> https://github.com/droolsjbpm/kie-wb-distributions/commit/09e4145708cb2a8aeb2ab3d7e059143e1be817d2

Comment 3 Edson Tirelli 2014-03-04 18:58:22 UTC
This was cherry-picked into the 6.0.1.ER2 tag:

https://github.com/jboss-integration/kie-wb-distributions/commit/9e4fa1e60294c908b0dff8c0c012ab01501502ed

Comment 5 Radovan Synek 2014-03-06 08:56:33 UTC
Verified with BPMS-6.0.1.ER2