From issues-return-27129-apmail-karaf-issues-archive=karaf.apache.org@karaf.apache.org Fri Nov 27 09:01:11 2015 Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7C6218F14 for ; Fri, 27 Nov 2015 09:01:11 +0000 (UTC) Received: (qmail 44456 invoked by uid 500); 27 Nov 2015 09:01:11 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 44422 invoked by uid 500); 27 Nov 2015 09:01:11 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 44317 invoked by uid 99); 27 Nov 2015 09:01:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Nov 2015 09:01:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 176EB2C1F5D for ; Fri, 27 Nov 2015 09:01:11 +0000 (UTC) Date: Fri, 27 Nov 2015 09:01:11 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3017) Concurrency issues in FeaturesService related to add/remove/list operations 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/KARAF-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15029637#comment-15029637 ] ASF GitHub Bot commented on KARAF-3017: --------------------------------------- Github user asfgit closed the pull request at: https://github.com/apache/karaf/pull/40 > Concurrency issues in FeaturesService related to add/remove/list operations > --------------------------------------------------------------------------- > > Key: KARAF-3017 > URL: https://issues.apache.org/jira/browse/KARAF-3017 > Project: Karaf > Issue Type: Bug > Affects Versions: 3.0.1, 2.3.5 > Reporter: Grzegorz Grzybek > Assignee: Freeman Fang > Fix For: 2.4.0, 3.0.2, 2.3.6 > > > I have concurrent scripts (using shell {{bin/client.sh}} commands) which invoke {{features:listurl}}, {{features:addurl}} and {{features:removeurl}}. > Sometimes I get {{NullPointerException}} here: > {code:java} > public Repository[] listRepositories() { > Collection repos = repositories.values(); > return repos.toArray(new Repository[repos.size()]); > } > {code} > when {{org.apache.karaf.features.internal.FeaturesServiceImpl#removeRepository(java.net.URI)}} is invoked between {{repos.size()}} and {{repos.toArray()}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)