Bug 738988

Summary: java.lang.NullPointerException from taskomatic.task.DailySummary
Product: Red Hat Satellite 5 Reporter: Šimon Lukašík <slukasik>
Component: OtherAssignee: Tomas Lestach <tlestach>
Status: CLOSED ERRATA QA Contact: Matej Kollar <mkollar>
Severity: medium Docs Contact:
Priority: medium    
Version: 541CC: cperry, mkollar, mminar
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-1.2.39-110 Doc Type: Bug Fix
Doc Text:
Consequence: If an erratum was scheduled for an update and it was deleted within the same day, DailySummary taskomatic bunch failed with a Null Pointer Exception. Result: DailySummary taskomatic bunch finishes successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-31 01:56:46 UTC Type: ---
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:    
Bug Blocks: 715348    

Description Šimon Lukašík 2011-09-16 09:18:23 UTC
Description of problem:


Version-Release number of selected component (if applicable):
RHN Satellite 5.4.1
spacewalk-java-1.2.39-98.el6sat.noarch

How reproducible:
Deterministic on our internal lab machines.
The reproducer might be dependent on the data thou.

Steps to Reproduce:
1. Visit taskomatic web page:
   /rhn/admin/BunchDetail.do?label=daily-status-bunch
2. Click on 'Single run schedule'
3. watch a taskomatic log
  
Actual results:
INFO   | jvm 1    | 2011/09/16 09:07:25 | 2011-09-16 09:07:25,644 [DefaultQuartzScheduler_Worker-6] ERROR com.redhat.rhn.taskomatic.task.DailySummary - 
INFO   | jvm 1    | 2011/09/16 09:07:25 | java.lang.NullPointerException
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at java.util.TreeMap.containsKey(TreeMap.java:3928)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at com.redhat.rhn.taskomatic.task.DailySummary.renderActionsMessage(DailySummary.java:341)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at com.redhat.rhn.taskomatic.task.DailySummary.queueOrgEmails(DailySummary.java:161)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at com.redhat.rhn.taskomatic.task.DailySummary.execute(DailySummary.java:99)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:80)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:168)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
INFO   | jvm 1    | 2011/09/16 09:07:25 | 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)


Expected results:
None traceback

Additional info:
This is a regression against stock RHN Satellite 5.4.1.

Comment 3 Tomas Lestach 2011-09-16 09:55:47 UTC
You're right, Simon - on a fresh RHN Satellite 5.4.1+ installation I do not see the problem.

Comment 5 Tomas Lestach 2011-10-06 15:41:15 UTC
It seems that, "Errata Update" ActionMessage refers to an erratum, that was deleted in the mean time.

spacewalk.git: f263526ccde3f7aa019616b37cf2331187bd0f93

Comment 8 Tomas Lestach 2012-01-04 17:35:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Consequence:
If an erratum was scheduled for an update and it was deleted within the same day, DailySummary taskomatic bunch failed with a Null Pointer Exception.
Result:
DailySummary taskomatic bunch finishes successfully.

Comment 11 errata-xmlrpc 2012-01-31 01:56:46 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.

http://rhn.redhat.com/errata/RHBA-2012-0072.html