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

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

I've attached [^SLING-4556-1.patch] which contains the following fix:

- Move org.apache.sling.installer.factory.configuration to the :boot
feature so that components are configured as soon as they become
availalble, otherwise that would've happened at start level 20
- Move the org.apache.sling.jcr.oak.server bundle to start level 16, so
that all the bundles which provide its dependendencies, mostly oak-core,
are properly configured when the OakSlingRepositoryManager is activated

With this the problem is gone for me, but I'll also ask on dev@sling since I am 
not 100% confident that there are no side effects

> NPE in DiscoveryServiceImpl#activate due to OakSlingRepositoryManager restart 
> during startup
> --------------------------------------------------------------------------------------------
>
>                 Key: SLING-4556
>                 URL: https://issues.apache.org/jira/browse/SLING-4556
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>            Reporter: Carsten Ziegeler
>            Assignee: Robert Munteanu
>             Fix For: JCR Oak Server 1.0.0
>
>         Attachments: SLING-4556-1.patch
>
>
> 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)

Reply via email to