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 DA46A9929 for ; Wed, 13 Jun 2012 08:11:45 +0000 (UTC) Received: (qmail 29561 invoked by uid 500); 13 Jun 2012 08:11:45 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 29240 invoked by uid 500); 13 Jun 2012 08:11:45 -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 29185 invoked by uid 99); 13 Jun 2012 08:11:43 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 08:11:43 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 67F95142863 for ; Wed, 13 Jun 2012 08:11:43 +0000 (UTC) Date: Wed, 13 Jun 2012 08:11:43 +0000 (UTC) From: =?utf-8?Q?C=C3=A9dric_Casenove_=28JIRA=29?= To: dev@felix.apache.org Message-ID: <859236375.11715.1339575103427.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Created] (FELIX-3548) Concurrent access during startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 C=C3=A9dric Casenove created FELIX-3548: -------------------------------------- Summary: Concurrent access during startup Key: FELIX-3548 URL: https://issues.apache.org/jira/browse/FELIX-3548 Project: Felix Issue Type: Bug Components: iPOJO Affects Versions: ipojo-core-1.8.2 Environment: Felix distribution 4.0.2, iPojo 1.8.2, Oracle JVM 1.6= .0_29, Windows XP 32 Reporter: C=C3=A9dric Casenove We use the configuration admin to create iPojo instances at runtime. During= Felix startup, an error may happen because 2 threads (one from iPOJO Insta= nce Creator, the other from Configuration Admin) are accessing a list at th= e same time: 2012-06-07 05:13:11,490 GMT+0200 DEBUG [Thread-3] (ipojo.?:?): [DEBUG] iPOJ= O Instance Creator : Add the factory FailureHandler 2012-06-07 05:13:11,490 GMT+0200 INFO [CM Configuration Updater (ManagedSe= rviceFactory Update: factoryPid=3DFailureHandler)] (ipojo.?:?): [INFO] requ= ires : Instance requires-1 from factory requires created 2012-06-07 05:13:11,505 GMT+0200 INFO [Thread-3] (ipojo.?:?): [INFO] requi= res : Instance requires-2 from factory requires created 2012-06-07 05:13:11,505 GMT+0200 INFO [CM Configuration Updater (ManagedSe= rviceFactory Update: factoryPid=3DFailureHandler)] (ipojo.?:?): [INFO] prop= erties : Instance properties-1 from factory properties created 2012-06-07 05:13:11,505 GMT+0200 INFO [CM Configuration Updater (ManagedSe= rviceFactory Update: factoryPid=3DFailureHandler)] (ipojo.?:?): [INFO] prov= ides : Instance provides-2 from factory provides created 2012-06-07 05:13:11,505 GMT+0200 ERROR [Thread-3] (ipojo.?:?): [ERROR] IPOJ= O-Extender : An error occurs when analyzing the content or starting the man= agement of 99 java.lang.ArrayIndexOutOfBoundsException: 10 at java.util.ArrayList.add(ArrayList.java:352) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPoj= oFactory.java:302) at org.apache.felix.ipojo.IPojoFactory.getHandler(IPojoFactory.java= :801) at org.apache.felix.ipojo.IPojoFactory.computeDescription(IPojoFact= ory.java:695) at org.apache.felix.ipojo.IPojoFactory.computeFactoryState(IPojoFac= tory.java:731) at org.apache.felix.ipojo.ComponentFactory.addedService(ComponentFa= ctory.java:394) at org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.= java:725) at org.apache.felix.ipojo.util.Tracker$Tracked.trackInitialServices= (Tracker.java:610) at org.apache.felix.ipojo.util.Tracker.open(Tracker.java:210) at org.apache.felix.ipojo.ComponentFactory.starting(ComponentFactor= y.java:246) at org.apache.felix.ipojo.IPojoFactory.start(IPojoFactory.java:583) at org.apache.felix.ipojo.Extender.createAbstractFactory(Extender.j= ava:439) at org.apache.felix.ipojo.Extender.parse(Extender.java:264) at org.apache.felix.ipojo.Extender.startManagementFor(Extender.java= :208) at org.apache.felix.ipojo.Extender.access$600(Extender.java:52) at org.apache.felix.ipojo.Extender$CreatorThread.run(Extender.java:= 682) at java.lang.Thread.run(Thread.java:662) 2012-06-07 05:13:11,505 GMT+0200 ERROR [CM Configuration Updater (ManagedSe= rviceFactory Update: factoryPid=3DFailureHandler)] (configadmin.?:?): [org.= apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory, id= =3D19, bundle=3D99]: Unexpected problem updating Configuration PID=3DFailur= eHandler.0bb38d10-b99b-4326-ac36-1717c48f38de, factoryPID=3DFailureHandler,= bundleLocation=3Dfile:D:\distrib\repository\failurehandler-4.0.0-SNAPSHOT.= jar java.lang.ArrayIndexOutOfBoundsException: 10 at java.util.ArrayList.indexOf(ArrayList.java:216) at java.util.ArrayList.contains(ArrayList.java:199) at org.apache.felix.ipojo.IPojoFactory.generateName(IPojoFactory.ja= va:830) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPoj= oFactory.java:279) at org.apache.felix.ipojo.IPojoFactory.getHandler(IPojoFactory.java= :801) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPoj= oFactory.java:297) at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPoj= oFactory.java:238) at org.apache.felix.ipojo.IPojoFactory.updated(IPojoFactory.java:63= 4) at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFact= oryUpdate.run(ConfigurationManager.java:1366) at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:104) at java.lang.Thread.run(Thread.java:662)=20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira