Return-Path: Delivered-To: apmail-aries-commits-archive@www.apache.org Received: (qmail 27786 invoked from network); 15 Feb 2011 18:41:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Feb 2011 18:41:17 -0000 Received: (qmail 37265 invoked by uid 500); 15 Feb 2011 18:41:17 -0000 Delivered-To: apmail-aries-commits-archive@aries.apache.org Received: (qmail 37176 invoked by uid 500); 15 Feb 2011 18:41:14 -0000 Mailing-List: contact commits-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list commits@aries.apache.org Received: (qmail 37162 invoked by uid 99); 15 Feb 2011 18:41:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 18:41:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Feb 2011 18:41:11 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1AF1823889BF; Tue, 15 Feb 2011 18:40:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1071009 - /aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java Date: Tue, 15 Feb 2011 18:40:50 -0000 To: commits@aries.apache.org From: not@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110215184050.1AF1823889BF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: not Date: Tue Feb 15 18:40:49 2011 New Revision: 1071009 URL: http://svn.apache.org/viewvc?rev=1071009&view=rev Log: ARIES-576 move the call to getMissingDependencies so it occurs prior to cleanup of ReferenceRecepies. The previous position occurred after the ReferenceRecepies had been stopped so they all reported themselves as missing, even if they had not been missing. Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java Modified: aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java?rev=1071009&r1=1071008&r2=1071009&view=diff ============================================================================== --- aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java (original) +++ aries/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/container/BlueprintContainerImpl.java Tue Feb 15 18:40:49 2011 @@ -287,16 +287,16 @@ public class BlueprintContainerImpl impl synchronized (scheduled) { Throwable t = new TimeoutException(); state = State.Failed; + String[] missingDependecies = getMissingDependencies(); unregisterServices(); untrackServiceReferences(); destroyComponents(); - String[] missingDependecies = getMissingDependencies(); LOGGER.error("Unable to start blueprint container for bundle " + bundleContext.getBundle().getSymbolicName() + " due to unresolved dependencies " + Arrays.asList(missingDependecies), t); eventDispatcher.blueprintEvent(new BlueprintEvent(BlueprintEvent.FAILURE, getBundleContext().getBundle(), getExtenderBundle(), missingDependecies, t)); } } }; - timeoutFuture = executors.schedule(r, timeout, TimeUnit.MILLISECONDS); + timeoutFuture = executors.schedule(r, 10, TimeUnit.SECONDS); state = State.WaitForInitialReferences; break; case WaitForInitialReferences: