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

Bug 1070888

Summary: NPE in REST client when querying for process variables history
Product: [Retired] JBoss BPMS Platform 6 Reporter: Radovan Synek <rsynek>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED CURRENTRELEASE QA Contact: Radovan Synek <rsynek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.1CC: kverlaen, rsynek, smcgowan
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:51:00 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
stacktrace none

Description Radovan Synek 2014-02-27 16:31:55 UTC
Created attachment 868629 [details]
stacktrace

REST client throws NPE when is trying to retrieve List<VariableInstanceLog> of all variables for given process instance id. Take a look at the attached stacktrace.


Steps to Reproduce:
1. start business-central
2. create some process definition with a process variable
3. start the process
4. query for the history of all variables (and your process instance id) via clie

Additional info:
http://localhost:8080/business-central/rest/history/instance/${2}/variable/
returns:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><log-instance-list/>

but
http://localhost:8080/business-central/rest/history/instance/${id}/variable/${variable_name}
returns valid information about the variable.

Comment 1 Marco Rietveld 2014-03-03 11:46:02 UTC
Radovan, could you retest this with ER2? This looks like a duplicate of BZ-1070211. 
- https://bugzilla.redhat.com/show_bug.cgi?id=1070211

Comment 2 Marco Rietveld 2014-03-03 11:48:53 UTC
Part of this problem is actually a duplicate, part is isn't: the NPE is unique to this bug. 

Fixed in master: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/e644aca9

Waiting for blocker flag to commit to 6.0.x

Comment 3 Marco Rietveld 2014-03-19 12:36:31 UTC
Cherry-picked commit to 6.0.x: 
https://github.com/droolsjbpm/droolsjbpm-integration/commit/0b88c8b2

Comment 4 Radovan Synek 2014-05-22 08:43:57 UTC
Verified with BPMS-6.0.2.ER2