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)

Reply via email to