Issue 1: NPE generated when findByCriteria returns results If the find succeeds in finding anything it blows up. If you set fetchSource( true ) the problem is avoided. Issue 2: The addFilterStartTime and addFilterEndTime are missing from the API Issue 3: addFilterResourceGroupId blows up
All noted failure scenarios fixed.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2468
commit 15c5ab632360523f7ad37112700a1f2220163fb0
Need repro steps -- not sure how to reference the API calls in question.
Back to Jay to put in some reproduction steps
Repro: 1) Generate some Events by enabling the default RHQ server log event source at INFO level. 2) CLI: determine the resource id of the RHQ server > findResources( "RHQ Server" ) > var c = new EventCriteria() > var endTime = new Date().getTime() > c.addFilterResourceId( rhqServerResourceId ) > c.addFilterStartTime( 0 ) > c.addFilterEndTime( endTime ) > EventManager.findEventsByCriteria(c) Assuming this works as expected, returning all of the events for the RHQ Server, then try: > c.addFilterResourceGroupId( 123 ) Just ensure this does not blow up. It should return no events. If you want extra credit you could always put the RHQ server in a real group, get the group id and use it here. At which point the events should actually come back.
QA Verified!
Mass-closure of verified bugs against JON.