Bug 444 - ProcessQueuedEventsCommand Throwing NPE When Server Under Load
Summary: ProcessQueuedEventsCommand Throwing NPE When Server Under Load
Status: CONFIRMED
Alias: None
Product: E3
Classification: Unclassified
Component: job (show other bugs)
Version: ---
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Richard Harms
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-14 00:46 CDT by Richard Harms
Modified: 2017-07-15 11:04 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Harms 2007-09-14 00:46:04 CDT
Easily duplicated while loading zip codes. This line:

            EventType eventType = event.getEventType(session);

Which doesn't really make sense even that the EventType cannot be null. Unless event is null, but its retrieved from the QueuedEvent, which doesn't allow it to be null either.
Comment 1 Richard Harms 2007-09-24 08:36:25 CDT
QueuedEvent's getEvent(...) is returning null, which shouldn't be possible.
Comment 2 Richard Harms 2007-09-24 09:15:34 CDT
This really looks like a MySQL bug. In getEntityFromPK(..., in EventFactory, _rs.next() is false, and getEntityFromResultSet(...) is never called. _entityId has a value, but no rows are selected. This should be impossible given that QueuedEvent has an enforced FK constraint with Events.

Adding a workaround to ProcessQueuedEventsCommand, so that it won't try to process null Events, but this needs investigated further.
Comment 3 Richard Harms 2007-09-30 12:42:58 CDT
Moving this out of a specific milestone, until a test case can be written.