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:
java version "1.6.0_22" , OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.25.1.10.6.el5_8-x86_64) , OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode) *ERROR* [FelixStartLevel] org.apache.sling.jcr.resource [org.apache.sling.jcr.resource.internal.JcrResourceListener] The activate method has thrown an exception (java.lang.NullPointerException) java.lang.NullPointerException at org.apache.sling.jcr.resource.internal.JcrResourceListener.activate(JcrResourceListener.java:133) The code goes into ResourceResolverImpl.getSession(). this.factory.getRootProviderEntry().adaptTo(this.context, Session.class); returns a null session. It seems like final Iterator<Adaptable> i = this.adaptableProviders.getProviders(ctx, null); (within RootResourceProviderEntry.java class) returns an empty list, and therefore the result is null, causing the session in JcrResourceListener to be null and then the NPE. I'm trying to understand how come SortedProvidersList.getProviders() is empty and if providers can be configured, or what can I do to workaround this issue. Thanks for your help, Dragos Dascalita Haut
