Re: JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-23 Thread Chetan Mehrotra
Done https://issues.apache.org/jira/browse/SLING-2573 Chetan Mehrotra

Re: JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-22 Thread Chetan Mehrotra
I am also facing the same issue where JcrResourceListener activate is failing with a NPE. On debugging it appears that session instance returned is null. Which happens because 'requiredFactories' in RootResourceProviderEntry.loginToRequiredFactories [1] empty. This is probably happening because

JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-21 Thread Dascalita Dragos
Hello, I'm trying to understand the cause of the error in the title.My Sling version is built from Rev. 1375551, but this error was happening previously. It's not happening when running Sling in my local machine, but it's happening when I'm running it on a Cent OS 6.2 machine, with java version:

Re: JcrResourceListener : this.resourceResolver.adaptTo(Session.class) is null

2012-08-21 Thread Dascalita Dragos
Hi, I actually managed to reproduce the error on my local machine as well, by stopping and starting Apache Sling JCR Resource Resolver org.apache.sling.jcr.resourcehttp://hendrix.local.adobe.com:8080/system/console/bundles/36 bundle. Regards, Dragos Dascalita Haut On Tue, Aug 21, 2012 at 10:59