Bug 760162

Summary: java.lang.IllegalArgumentException: attempt to create delete event with null entity
Product: [Community] Candlepin Reporter: John Sefler <jsefler>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED WORKSFORME QA Contact: John Sefler <jsefler>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.5CC: bkearney, jesusr, skallesh, spandey
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-24 15:23:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031, 771748    
Attachments:
Description Flags
trace from catalina.out containing the IllegalArgumentException none

Description John Sefler 2011-12-05 14:52:55 UTC
Created attachment 540948 [details]
trace from catalina.out containing the IllegalArgumentException

Description of problem:
During the course of some automated testing, a call was made to refresh pools, but the jobDetail came back with a FAILED state and the results was:
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalArgumentException: attempt to create delete event with null entity]

I have not seen this before I am not yet sure about a recreate scenario.  Nevertheless, I am opening a bug with some logs.  Maybe you can decipher the scenario.  Starting with the automated test logs, it looks like a POST was made to create a subscription followied by a refresh pools call:

201112040341:24.078 - INFO: ======= Starting Test: VerifyPoolIsNotYetAvailableUntilTheStartDate_Test (com.redhat.qe.auto.testng.TestNGListener.onTestStart)
201112040341:24.078 - INFO: SSH alternative to HTTP request: curl --insecure --user admin:admin --request POST --data '{"product":{"id":"awesomeos-virt-4"},"startDate":"Sun, 4 Dec 2011 03:44:24 -0500","accountNumber":1386622492,"quantity":3,"endDate":"Sun, 4 Dec 2011 03:46:24 -0500","contractNumber":1107672355,"providedProducts":[]}' --header 'accept: application/json' --header 'content-type: application/json' https://jsefler-f14-5candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions (com.redhat.qe.sm.cli.tasks.CandlepinTasks.postResourceUsingRESTfulAPI)
201112040341:24.157 - INFO: SSH alternative to HTTP request: curl --insecure --user admin:admin --request PUT https://jsefler-f14-5candlepin.usersys.redhat.com:8443/candlepin/owners/admin/subscriptions (com.redhat.qe.sm.cli.tasks.CandlepinTasks.putResourceUsingRESTfulAPI)


Then the jobDetail from the refresh pools PUT call was:
[jsefler@jseflerT5400 ~]$ curl --insecure --user admin:admin --request GET https://jsefler-f14-5candlepin.usersys.redhat.com:8443/candlepin/jobs/refresh_pools_31c39a01-a3f9-4d9f-adaf-9471532a7230 | python -m simplejson/tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   561    0   561    0     0   1964      0 --:--:-- --:--:-- --:--:--  2538
{
    "created": "2011-12-04T08:41:24.185+0000",
    "finishTime": null,
    "group": "async group",
    "id": "refresh_pools_31c39a01-a3f9-4d9f-adaf-9471532a7230",
    "principalName": "admin",
    "result": "org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.IllegalArgumentException: attempt to create delete event with null entity]",
    "startTime": "2011-12-04T08:41:24.188+0000",
    "state": "FAILED",
    "statusPath": "/jobs/refresh_pools_31c39a01-a3f9-4d9f-adaf-9471532a7230",
    "targetId": "admin",
    "targetType": "owner",
    "updated": "2011-12-04T08:41:24.899+0000"
}


and the catalina.out log containing the IllegalArgumentException stack trace is attached.


Version-Release number of selected component (if applicable):
[root@jsefler-f14-5candlepin candlepin]# git branch
  0.2
  0.3
  0.4
* master
[root@jsefler-f14-5candlepin candlepin]# git show-ref | grep master
40322d07ca764cf5501924fd387520653f1f52c0 refs/heads/master
40322d07ca764cf5501924fd387520653f1f52c0 refs/remotes/origin/master
[root@jsefler-f14-5candlepin candlepin]# 


How reproducible:


Steps to Reproduce:
1. not sure
2.
3.



Additional info:

Comment 1 James Bowes 2012-09-24 15:23:15 UTC
Closing out as "never saw this one again"