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

NPE in Oak SessionImpl when starting up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 3.0.14
    • JCR Resource 3.0.16
    • JCR
    • None

    Description

      WIth the latest resource resolver I get:
      I suspect this has to do with the revert of some mapping code before the 1.6.4 release (which I unfortunately did not test):
      03.08.2018 18:04:26.528 ERROR [FelixStartLevel] org.apache.sling.resourceresolver.impl.CommonResourceResolverFactoryImpl activate: Cannot access repository, failed setting up Mapping Support
      java.lang.NullPointerException: null
      at org.apache.jackrabbit.oak.jcr.session.SessionImpl.getWorkspace(SessionImpl.java:265) [org.apache.jackrabbit.oak-jcr:1.9.6.R1836532]
      at com.adobe.granite.repository.impl.CRX3SessionImpl.getWorkspace(CRX3SessionImpl.java:133) [com.adobe.granite.repository:1.6.4]
      at org.apache.sling.jcr.resource.internal.helper.jcr.BasicQueryLanguageProvider.getSupportedLanguages(BasicQueryLanguageProvider.java:69) [org.apache.sling.jcr.resource:3.0.14]
      at org.apache.sling.resourceresolver.impl.providers.stateful.AuthenticatedResourceProvider.getSupportedLanguages(AuthenticatedResourceProvider.java:249) [org.apache.sling.resourceresolver:1.6.4]
      at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.getQueryableProviders(ResourceResolverControl.java:469) [org.apache.sling.resourceresolver:1.6.4]
      at org.apache.sling.resourceresolver.impl.helper.ResourceResolverControl.findResources(ResourceResolverControl.java:456) [org.apache.sling.resourceresolver:1.6.4]
      at org.apache.sling.resourceresolver.impl.ResourceResolverImpl.findResources(ResourceResolverImpl.java:739) [org.apache.sling.resourceresolver:1.6.4]
      at org.apache.sling.resourceresolver.impl.mapping.MapEntries.loadVanityPaths(MapEntries.java:1130) [org.apache.sling.resourceresolver:1.6.4]

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: