Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-716

NPE when starting Oak repository in Sling.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.7
    • 0.7
    • mk
    • None

    Description

      In /oak-oak-sling/src/main/java/org/apache/jackrabbit/oak/sling/Activator.java
      there is

      Line: 60

      securityProvider = null; // TODO

      which causes a NPE (below).

      Changing to
      securityProvider = new SecurityProviderImpl();

      Fixes, not sure if thats right. Simple patch in a moment.

      5.03.2013 10:45:46.968 ERROR [FelixDispatchQueue] org.apache.jackrabbit.oak-sling FrameworkEvent ERROR (java.lang.NullPointerException) java.lang.NullPointerException
      at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:191)
      at org.apache.jackrabbit.oak.jcr.RepositoryImpl.<init>(RepositoryImpl.java:60)
      at org.apache.jackrabbit.oak.jcr.osgi.OsgiRepository.<init>(OsgiRepository.java:40)
      at org.apache.jackrabbit.oak.sling.SlingRepositoryImpl.<init>(SlingRepositoryImpl.java:35)
      at org.apache.jackrabbit.oak.sling.Activator.addingService(Activator.java:77)
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jukkaz Jukka Zitting
            ianeboston Ian Boston
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment