jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@day.com>
Subject Re: eventconsumer exceptions
Date Thu, 24 Nov 2005 16:01:43 GMT
Hi Costin,

could you please enable debug level for the class 
org.apache.jackrabbit.core.observation.ObservationManagerFactory and run 
your code again? you will then see the full stacktrace of the exception 
that is thrown. that will give us more insight which listener causes the 
exception and where.

regards
  marcel

Costin Leau wrote:
> Hello,
> 
> I'm trying to use EventListener but I keep getting these messages -
> sometimes 3, sometimes one and sometimes none.
>      [java] 2005-11-24 17:05:30,489 [ObservationManager] WARN  org.apache.jackrabbit.core.observation.ObservationManagerFactory
- EventConsumer threw exception: java.lang.IllegalStateException: not in
> itialized
>      [java] 2005-11-24 17:05:30,489 [ObservationManager] WARN  org.apache.jackrabbit.core.observation.ObservationManagerFactory
- EventConsumer threw exception: java.lang.IllegalStateException: not in
> itialized
>      [java] 2005-11-24 17:05:30,489 [ObservationManager] WARN  org.apache.jackrabbit.core.observation.ObservationManagerFactory
- EventConsumer threw exception: java.lang.IllegalStateException: not in
> itialized  
> 
> I have no idea what causes this messages. I assumed this has something
> to do with events being asynchronous. I've added a Thread.sleep but I
> still get one (I do get to log the others):
> 
>     [mkdir] Created dir: C:\work\study\springmodules-0.2\workspace\springmodules\samples\jcr\.classes\repo
>      [java] constructor called
>      [java] received events:
>      [java] Event[path=/sample node/sample property|type=4|userID=bogus]
>      [java] Event[path=/sample node/jcr:primaryType|type=4|userID=bogus]
>      [java] Event[path=/sample node|type=1|userID=bogus]
>      [java] received events:
>      [java] Event[path=/sample node/sample property|type=4|userID=bogus]
>      [java] Event[path=/sample node/jcr:primaryType|type=4|userID=bogus]
>      [java] Event[path=/sample node|type=1|userID=bogus]
>      [java] 2005-11-24 17:14:02,335 [ObservationManager] WARN  org.apache.jackrabbit.core.observation.ObservationManagerFactory
- EventConsumer threw exception: java.lang.IllegalStateException: not in
> itialized
> 
> What exactly I am doing wrong here. I can provide the source code
> however the code is very simple - I get a session and just attach a
> listener (which simply logs) to it. Nothing special.
> 


Mime
View raw message