Bug 760162 - java.lang.IllegalArgumentException: attempt to create delete event with null entity
Summary: java.lang.IllegalArgumentException: attempt to create delete event with null ...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 715031 771748
TreeView+ depends on / blocked
 
Reported: 2011-12-05 14:52 UTC by John Sefler
Modified: 2015-05-14 16:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-24 15:23:15 UTC


Attachments (Terms of Use)
trace from catalina.out containing the IllegalArgumentException (72.83 KB, application/octet-stream)
2011-12-05 14:52 UTC, John Sefler
no flags Details

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"


Note You need to log in before you can comment on or make changes to this bug.