karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Created] (KARAF-3017) Concurrency issues in FeaturesService related to add/remove/list operations
Date Tue, 03 Jun 2014 09:36:01 GMT
Grzegorz Grzybek created KARAF-3017:
---------------------------------------

             Summary: 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: 2.3.5, 3.0.1
            Reporter: Grzegorz Grzybek


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<Repository> 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.2#6252)

Mime
View raw message