Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 70188 invoked from network); 13 Oct 2009 21:17:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Oct 2009 21:17:55 -0000 Received: (qmail 22142 invoked by uid 500); 13 Oct 2009 21:17:55 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 22072 invoked by uid 500); 13 Oct 2009 21:17:55 -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 22062 invoked by uid 99); 13 Oct 2009 21:17:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 21:17:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2009 21:17:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4D447234C046 for ; Tue, 13 Oct 2009 14:17:31 -0700 (PDT) Message-ID: <266229015.1255468651315.JavaMail.jira@brutus> Date: Tue, 13 Oct 2009 14:17:31 -0700 (PDT) From: "Richard S. Hall (JIRA)" To: dev@felix.apache.org Subject: [jira] Commented: (FELIX-1753) The start level should check that the bundle still exists before starting it to avoid an ugly exception In-Reply-To: <661049453.1255463071378.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12765235#action_12765235 ] Richard S. Hall commented on FELIX-1753: ---------------------------------------- Well, we could change the log ERROR to a WARNING, but the whole point is we let start level change process be a little loose so we don't run into any deadlocks. So, we just get all bundles at the beginning while holding the lock and then cycle through them all starting/stopping as appropriate without the lock. > The start level should check that the bundle still exists before starting it to avoid an ugly exception > ------------------------------------------------------------------------------------------------------- > > Key: FELIX-1753 > URL: https://issues.apache.org/jira/browse/FELIX-1753 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-2.0.0 > Reporter: Guillaume Nodet > > ERROR: Error locking file:/Users/gnodet/work/felix/git/karaf/assembly/target/apache-felix-karaf-1.1.0-SNAPSHOT/deploy/test.xml (java.lang.IllegalStateException: Bundle in unexpected state.) > java.lang.IllegalStateException: Bundle in unexpected state. > at org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:4513) > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1048) > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > at java.lang.Thread.run(Thread.java:613) > This is the exception I have when i start felix after having removed a bundle managed by fileinstall while felix was stopped. > I think it should be easy enough to add a check to avoid this exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.