Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4556

NPE in DiscoveryServiceImpl#activate due to OakSlingRepositoryManager restart during startup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Launchpad Builder 8
    • Launchpad
    • None

    Description

      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)

      Attachments

        1. SLING-4556-1.patch
          3 kB
          Robert Munteanu

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: