You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "Conoly, Brett" <Br...@digitalinsight.com> on 2008/06/06 15:09:16 UTC
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
RE: null pointer in client observation manager
Posted by "Conoly, Brett" <Br...@digitalinsight.com>.
The jira issue is in https://issues.apache.org/jira/browse/JCR-1643
-----Original Message-----
From: Jukka Zitting [mailto:jukka.zitting@gmail.com]
Sent: Friday, June 06, 2008 11:10 AM
To: users@jackrabbit.apache.org
Subject: Re: null pointer in client observation manager
Hi,
On Fri, Jun 6, 2008 at 5:54 PM, Conoly, Brett
<Br...@digitalinsight.com> wrote:
> 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.
Thanks! I recall seeing a similar problem report some while ago bug
I'm not sure if it made it to Jira.
BR,
Jukka Zitting
Re: null pointer in client observation manager
Posted by Jukka Zitting <ju...@gmail.com>.
Hi,
On Fri, Jun 6, 2008 at 5:54 PM, Conoly, Brett
<Br...@digitalinsight.com> wrote:
> 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.
Thanks! I recall seeing a similar problem report some while ago bug
I'm not sure if it made it to Jira.
BR,
Jukka Zitting
RE: null pointer in client observation manager
Posted by "Conoly, Brett" <Br...@digitalinsight.com>.
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: users@jackrabbit.apache.org
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: users@jackrabbit.apache.org
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: users@jackrabbit.apache.org
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
RE: null pointer in client observation manager
Posted by "Conoly, Brett" <Br...@digitalinsight.com>.
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: users@jackrabbit.apache.org
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: users@jackrabbit.apache.org
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
RE: null pointer in client observation manager
Posted by "Conoly, Brett" <Br...@digitalinsight.com>.
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: users@jackrabbit.apache.org
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