I just tested with the org.apache.jackrabbit.core.observation.ObservationManagerImpl and the test passed. I will try to open a jira issue on this b/c I'm assuming it has not been reported yet.
-----Original Message----- From: Conoly, Brett Sent: Friday, June 06, 2008 9:56 AM To: [email protected] Subject: RE: null pointer in client observation manager Ok, I've narrowed it down. It is the observation manager that's causing the null pointer...when I call getRegisteredListeners before any listeners have actually been registered it fails b/c of a null pointer instead of actually returning an empty array or null itself. I'm pretty sure this is a bug, has it been reported yet? -----Original Message----- From: Conoly, Brett Sent: Friday, June 06, 2008 9:11 AM To: [email protected] Subject: RE: null pointer in client observation manager Forgot to mention, I'm using rmi so the class that's throwing the null pointer is: org.apache.jackrabbit.rmi.client.ClientObservationManager -----Original Message----- From: Conoly, Brett Sent: Friday, June 06, 2008 9:09 AM To: [email protected] Subject: null pointer in client observation manager I've been fooling with this for two days and I still can't seem to find a decent explanation. I'm trying to set up some simple event listeners within a single class and I have written an isListening function that uses ObservationManager manager = session.getWorkspace().getObservationManager(); EventListenerIterator events = manager.getRegisteredEventListeners(); For some reason that I don't understand, I'm getting a very random null pointer within the getRegisteredEventListeners() function and I can't figure out why. Has anyone seen this problem or possibly have a solution? Thanks in advance, Brett
