Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B88922009F4 for ; Thu, 26 May 2016 14:55:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3DC2160939; Thu, 26 May 2016 12:55:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E827D160A2B for ; Thu, 26 May 2016 14:55:13 +0200 (CEST) Received: (qmail 41632 invoked by uid 500); 26 May 2016 12:55:13 -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 41598 invoked by uid 99); 26 May 2016 12:55:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 12:55:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CFF6B2C14DC for ; Thu, 26 May 2016 12:55:12 +0000 (UTC) Date: Thu, 26 May 2016 12:55:12 +0000 (UTC) From: =?utf-8?Q?Raymond_Aug=C3=A9_=28JIRA=29?= To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FELIX-5263) java.lang.ArrayIndexOutOfBoundsException: -1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 26 May 2016 12:55:14 -0000 Raymond Aug=C3=A9 created FELIX-5263: ----------------------------------- Summary: java.lang.ArrayIndexOutOfBoundsException: -1 Key: FELIX-5263 URL: https://issues.apache.org/jira/browse/FELIX-5263 Project: Felix Issue Type: Bug Components: Resolver Reporter: Raymond Aug=C3=A9 In a specific scenario where duplicate resources are provided to the resolv= er it produces the error bellow: {code} java.lang.ArrayIndexOutOfBoundsException: -1 =09at org.apache.felix.resolver.util.CopyOnWriteList.set(CopyOnWriteList.ja= va:57) =09at org.apache.felix.resolver.Candidates.prepare(Candidates.java:946) =09at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:232) =09at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:179) =09at biz.aQute.resolve.ResolverValidator.resolve(ResolverValidator.java:12= 4) =09at biz.aQute.resolve.ResolverValidator.validateResources(ResolverValidat= or.java:81) =09at biz.aQute.resolve.ResolverValidator.validate(ResolverValidator.java:7= 5) =09at biz.aQute.resolve.ValidatorTest.testDuplicateIndexAgainstLargeTargetP= latform_whyDoesThisFail(ValidatorTest.java:188) =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:57) =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) =09at java.lang.reflect.Method.invoke(Method.java:606) =09at junit.framework.TestCase.runTest(TestCase.java:176) =09at junit.framework.TestCase.runBare(TestCase.java:141) =09at junit.framework.TestResult$1.protect(TestResult.java:122) =09at junit.framework.TestResult.runProtected(TestResult.java:142) =09at junit.framework.TestResult.run(TestResult.java:125) =09at junit.framework.TestCase.run(TestCase.java:129) =09at junit.framework.TestSuite.runTest(TestSuite.java:255) =09at junit.framework.TestSuite.run(TestSuite.java:250) =09at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.= java:84) =09at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4= TestReference.java:86) =09at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution= .java:38) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remot= eTestRunner.java:459) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(Remot= eTestRunner.java:675) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTest= Runner.java:382) =09at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTes= tRunner.java:192) {code} Since the reproduction is complex I've provided one as a unit test in a PR = to the bnd project. https://github.com/bndtools/bnd/pull/1472 -- This message was sent by Atlassian JIRA (v6.3.4#6332)