You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2015/05/06 16:48:59 UTC

[jira] [Commented] (SLING-4556) NPE in DiscoveryServiceImpl#activate

    [ https://issues.apache.org/jira/browse/SLING-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530650#comment-14530650 ] 

Robert Munteanu commented on SLING-4556:
----------------------------------------

What I see happening is that the OakSlingRepositoryManager is being shutdown due to the AuthenticationConfigurationImpl being reconfigured.

{noformat}06.05.2015 17:26:03.298 *INFO* [CM Event Dispatcher (Fire ConfigurationEvent: pid=org.apache.jackrabbit.oak.security.authentication.AuthenticationConfigurationImpl)] org.apache.sling.oak.server.OakSlingRepositoryManager stop: Repository still running, forcing shutdown{noformat}

As a quick fix I tried to move the org.apache.sling.jcr.oak.server bundle to start level 16, up from 15, but that did not help.

> NPE in DiscoveryServiceImpl#activate
> ------------------------------------
>
>                 Key: SLING-4556
>                 URL: https://issues.apache.org/jira/browse/SLING-4556
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: Discovery Impl 1.1.0
>            Reporter: Carsten Ziegeler
>             Fix For: Discovery Impl 1.1.4
>
>
> 31.03.2015 05:33:44.001 *ERROR* [Thread-77] org.apache.sling.discovery.impl [org.apache.sling.discovery.impl.DiscoveryServiceImpl(85)] The activate method has thrown an exception (java.lang.NullPointerException)
> java.lang.NullPointerException: null
> 	at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.create(ResourceResolverImpl.java:1123)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResourceInternal(ResourceUtil.java:611)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:554)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:528)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResourceInternal(ResourceUtil.java:599)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:554)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:528)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResourceInternal(ResourceUtil.java:599)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:554)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:528)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResourceInternal(ResourceUtil.java:599)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:554)
> 	at org.apache.sling.api.resource.ResourceUtil.getOrCreateResource(ResourceUtil.java:528)
> 	at org.apache.sling.discovery.impl.common.resource.ResourceHelper.getOrCreateResource(ResourceHelper.java:45)
> 	at org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl.listAnnouncementsInSameCluster(AnnouncementRegistryImpl.java:150)
> 	at org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistryImpl.listInstances(AnnouncementRegistryImpl.java:542)
> 	at org.apache.sling.discovery.impl.DiscoveryServiceImpl.getTopology(DiscoveryServiceImpl.java:443)
> 	at org.apache.sling.discovery.impl.DiscoveryServiceImpl.activate(DiscoveryServiceImpl.java:149)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)