From dev-return-90473-archive-asf-public=cust-asf.ponee.io@sling.apache.org Tue Aug 7 12:57:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D6AFB18077A for ; Tue, 7 Aug 2018 12:57:04 +0200 (CEST) Received: (qmail 96057 invoked by uid 500); 7 Aug 2018 10:57:03 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 96046 invoked by uid 99); 7 Aug 2018 10:57:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2018 10:57:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 50AE4C05DC for ; Tue, 7 Aug 2018 10:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5FHDFw6VWVE0 for ; Tue, 7 Aug 2018 10:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E76DC5F47B for ; Tue, 7 Aug 2018 10:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2DE6EE2618 for ; Tue, 7 Aug 2018 10:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 93CB023FA5 for ; Tue, 7 Aug 2018 10:57:00 +0000 (UTC) Date: Tue, 7 Aug 2018 10:57:00 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SLING-7811) NPE when repository is starting up MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SLING-7811?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16571447#comment-16571447 ] Carsten Ziegeler commented on SLING-7811: ----------------------------------------- The service tracker might be invoked on the same thread if such a service is already registered - and I assume that makes the difference in timing which makes it work in the end. But it looks like this is really fragile, I would think that the LoginAdminWhitelist should require a configuration and then we can use the minimum cardinality feature that it waits for that number of references. I'm not 100% sure but maybe you have to also use a lower case "w" for whitelistFragment > NPE when repository is starting up > ---------------------------------- > > Key: SLING-7811 > URL: https://issues.apache.org/jira/browse/SLING-7811 > Project: Sling > Issue Type: Bug > Components: JCR > Affects Versions: JCR Oak Server 1.1.4, JCR Base 3.0.4 > Reporter: Carsten Ziegeler > Assignee: Robert Munteanu > Priority: Major > Fix For: JCR Base 3.0.6, JCR Oak Server 1.2.2 > > > With the latest Sling Starter, the following NPE occurs in the logs. It seems to be harmless, nevertheless we should fix it: > For now I assigned it to both, JCR Base and Oak Server, as it's unclear which one it is. Interestingly we've released Oak Server 1.2.0 but are not using it in the starter. > {noformat} > 06.08.2018 15:45:18.396 *ERROR* [Apache Sling Repository Startup Thread] org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager start: Uncaught Throwable trying to access Repository, calling stopRepository() > java.lang.NullPointerException: null > at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192) [com.google.guava:15.0.0] > at org.apache.jackrabbit.oak.jcr.Jcr.with(Jcr.java:296) [org.apache.jackrabbit.oak-jcr:1.6.8] > at org.apache.sling.jcr.oak.server.internal.OakSlingRepositoryManager.acquireRepository(OakSlingRepositoryManager.java:161) [org.apache.sling.jcr.oak.server:1.1.4] > at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.initializeAndRegisterRepositoryService(AbstractSlingRepositoryManager.java:471) [org.apache.sling.jcr.base:3.0.4] > at org.apache.sling.jcr.base.AbstractSlingRepositoryManager.access$300(AbstractSlingRepositoryManager.java:85) [org.apache.sling.jcr.base:3.0.4] > at org.apache.sling.jcr.base.AbstractSlingRepositoryManager$4.run(AbstractSlingRepositoryManager.java:455) [org.apache.sling.jcr.base:3.0.4] > {noformat} > The stack trace points to a null workspace name ( see https://github.com/apache/jackrabbit-oak/blob/jackrabbit-oak-1.6.8/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/Jcr.java#L296 ). -- This message was sent by Atlassian JIRA (v7.6.3#76005)