Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8704018CC0 for ; Thu, 28 May 2015 07:39:17 +0000 (UTC) Received: (qmail 98336 invoked by uid 500); 28 May 2015 07:39:17 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 98265 invoked by uid 500); 28 May 2015 07:39:17 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 98253 invoked by uid 99); 28 May 2015 07:39:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2015 07:39:17 +0000 Date: Thu, 28 May 2015 07:39:17 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4909) NullPointer in Apache Karaf Felix ConfigAdmin/Fileinstall 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/FELIX-4909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14562428#comment-14562428 ] Carsten Ziegeler commented on FELIX-4909: ----------------------------------------- [~fabianlange] I suggest you try the latest SCR implementation from trunk. We've seen some race conditions with 1.8.2 as well and they are all fixed in trunk > NullPointer in Apache Karaf Felix ConfigAdmin/Fileinstall > --------------------------------------------------------- > > Key: FELIX-4909 > URL: https://issues.apache.org/jira/browse/FELIX-4909 > Project: Felix > Issue Type: Bug > Reporter: Fabian Lange > > {code} > 2015-05-27 12:51:54,177 | INFO | karaf/etc | fileinstall | 4 - org.apache.felix.fileinstall - 3.4.3.SNAPSHOT | Creating configuration from de.codecentric.TestService.cfg > 2015-05-27 12:51:54,180 | ERROR | d5-abb8e2453597) | configadmin | 3 - org.apache.felix.configadmin - 1.8.0 | Unexpected problem delivering configuration event to [org.osgi.service.cm.ConfigurationListener, id=48, bundle=14/mvn:org.apache.felix/org.apache.felix.scr/1.8.2] > java.lang.NullPointerException > at org.apache.felix.scr.impl.config.ConfigurationSupport.configurationEvent(ConfigurationSupport.java:283)[14:org.apache.felix.scr:1.8.2] > at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)[3:org.apache.felix.configadmin:1.8.0] > at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)[3:org.apache.felix.configadmin:1.8.0] > at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[3:org.apache.felix.configadmin:1.8.0] > at java.lang.Thread.run(Thread.java:745)[:1.8.0_45] > {code} > As you can see, the fileinstall discovered a new config file 3 ms before the npe happened. The config file was created 2 seconds before that. > This is coming from karaf 4M2, so this is fileinstall 3.4.3.SNAPSHOT and scr 1.8.2 > Somehow this looks like a race condition to me. -- This message was sent by Atlassian JIRA (v6.3.4#6332)