Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 22708 invoked from network); 20 Apr 2009 07:27:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Apr 2009 07:27:17 -0000 Received: (qmail 50206 invoked by uid 500); 20 Apr 2009 07:27:16 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 50108 invoked by uid 500); 20 Apr 2009 07:27:16 -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 50098 invoked by uid 99); 20 Apr 2009 07:27:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 07:27:16 +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; Mon, 20 Apr 2009 07:27:07 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 74959234C004 for ; Mon, 20 Apr 2009 00:26:47 -0700 (PDT) Message-ID: <1893790975.1240212407469.JavaMail.jira@brutus> Date: Mon, 20 Apr 2009 00:26:47 -0700 (PDT) From: "Thomas Diesler (JIRA)" To: dev@felix.apache.org Subject: [jira] Reopened: (FELIX-1040) Bundle may start with unresolved packages In-Reply-To: <913055522.1239891135298.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-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Diesler reopened FELIX-1040: ----------------------------------- I leave this open since you still might want to look at why installs jbosgi37-bundleA instead of the expected jbosgi39-bundleB. Regardless of the the unclean shutdown issue - this still seems fishy > Bundle may start with unresolved packages > ----------------------------------------- > > Key: FELIX-1040 > URL: https://issues.apache.org/jira/browse/FELIX-1040 > Project: Felix > Issue Type: Bug > Components: Framework > Affects Versions: felix-1.4.1, felix-1.6.0 > Reporter: Thomas Diesler > Attachments: jbosgi39-bundleB.jar, jbosgi39-bundleX.jar > > > After an upgrade to felix-1.6.0 I see one of my test cases failing that explicitly tests that a bundle cannot be started if an import is not satisfied. > junit.framework.AssertionFailedError: Unresolved constraint expected > at junit.framework.Assert.fail(Assert.java:47) > at org.jboss.test.osgi.jbosgi39.OSGI39TestCase.testVerifyUnresolved(OSGI39TestCase.java:59) > public void testVerifyUnresolved() throws Exception > { > OSGiFramework framework = getBootstrapProvider().getFramework(); > BundleContext sysContext = framework.getSystemBundleContext(); > > Bundle bundleB = sysContext.installBundle(getTestArchiveURL("jbosgi39-bundleB.jar").toExternalForm()); > assertEquals("Bundle installed", Bundle.INSTALLED, bundleB.getState()); > > try > { > bundleB.start(); > fail("Unresolved constraint expected"); > } > catch (BundleException ex) > { > // expected > } > > Bundle bundleX = sysContext.installBundle(getTestArchiveURL("jbosgi39-bundleX.jar").toExternalForm()); > > bundleB.start(); > > assertEquals("Bundle resolved", Bundle.RESOLVED, bundleX.getState()); > assertEquals("Bundle active", Bundle.ACTIVE, bundleB.getState()); > bundleB.uninstall(); > bundleX.uninstall(); > } > Unfortunately, the test only fails rarely. I attached the test bundles. > The sources are here > https://anonsvn.jboss.org/repos/jbossas/projects/jboss-osgi/trunk/testsuite/functional/src/test/java/org/jboss/test/osgi/jbosgi39/ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.