Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1082111

Summary: NPE when sub-process handles an error code exception
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jim Rigsbee <jrigsbee>
Component: jBPM CoreAssignee: Maciej Swiderski <mswiders>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Svitak <jsvitak>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.0.1CC: kverlaen, mbaluch, mswiders
Target Milestone: ER1   
Target Release: 6.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 19:50:18 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
Exception handling Maven project none

Description Jim Rigsbee 2014-03-28 17:05:31 UTC
Created attachment 879956 [details]
Exception handling Maven project

Description of problem:
In the attached Maven project, an NPE is thrown after the sub-process successfully handles an exception thrown by the main process.  

Version-Release number of selected component (if applicable):
6.0.1.ER2

How reproducible:
every time


Steps to Reproduce:
1. unzip the Maven project
2. mvn clean test
3.

Actual results:
the second test will fail because an exception is thrown

Expected results:
test should pass with outcome = 90277

Additional info:
In debugging, it appears the Action after the sub-process end event is null.  
Maciej discovered it is caused by empty script tags within the event sub-process, which are not supported but should be.  

Another issue is with the setting the outcome when aborting the process instance from within an event in the subprocess, that does not happen as the outcome is set only by fault node which is error end event.  It is desirable to have the outcome set to the error code processed.

Comment 2 Maciej Swiderski 2014-03-28 18:37:33 UTC
fixed on master, waiting for acks to backport

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

Comment 3 Maciej Swiderski 2014-04-01 14:48:16 UTC
backported to 6.0.x

jbpm
6.0.x:
https://github.com/droolsjbpm/jbpm/commit/3d6f837aff92d24aa643eeea3df16749918f118e