Bug 1420717

Summary: When calling retrieveBackingContent cli operation immediately after updateBackingContent it sometimes fails with NPE
Product: [JBoss] JBoss Operations Network Reporter: Filip Brychta <fbrychta>
Component: ContentAssignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED ERRATA QA Contact: Hayk Hovsepyan <hhovsepy>
Severity: medium Docs Contact:
Priority: medium    
Version: JON 3.3.8CC: hhovsepy, rvargasp, spinder
Target Milestone: CR01Keywords: Triaged
Target Release: JON 3.3.9   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-02 17:21:51 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:
Bug Depends On: 1420712    
Bug Blocks:    
Attachments:
Description Flags
server log none

Description Filip Brychta 2017-02-09 11:34:11 UTC
Created attachment 1248788 [details]
server log

Description of problem:
$Summary

Version-Release number of selected component (if applicable):
JON 3.3.8 but probably in earlier versions as well. The line with NPE was updated 7 years ago

How reproducible:
just once

Steps to Reproduce:
1. crate new eap6 deployment
2. update content via cli operation updateBackingContent, use deployment at least with size 1MB
3. immediately invoke retrieveBackingContent
4. repeat steps 2 and 3 many times

Actual results:
Caused by: java.lang.NullPointerException
	at org.rhq.enterprise.server.content.ContentManagerBean.getPackageBytes(ContentManagerBean.java:952)


Expected results:
No errors

Additional info:
Full exception is attached in server.log

Comment 4 Simeon Pinder 2017-09-19 11:33:16 UTC
Moving to ON_QA.

JON 3.3.9 CR01 artifacts are available for test from here:
http://download.eng.bos.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/135/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip
 *Note: jon-server-patch-3.3.0.GA.zip maps to CR01 build of
 jon-server-3.3.0.GA-update-09.zip.

Comment 5 Hayk Hovsepyan 2017-09-21 13:09:38 UTC
Verified on:
Version : 3.3.0.GA Update 09
Build Number :	44ba698:204e925

Immediately after "updateBackingContent" execution, when "retrieveBackingContent" is executed, it retrieves the updated deployment without any error in CLI or in server log.

Comment 6 errata-xmlrpc 2017-10-02 17:21:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:2846