You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Don Brown (JIRA)" <ji...@apache.org> on 2008/11/19 01:19:44 UTC

[jira] Created: (FELIX-822) Occasional NPE during bundle refresh on an uninstalled bundle

Occasional NPE during bundle refresh on an uninstalled bundle
-------------------------------------------------------------

                 Key: FELIX-822
                 URL: https://issues.apache.org/jira/browse/FELIX-822
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-1.2.1

            Reporter: Don Brown


Occasionally, we get an NPE when refreshing an uninstalled bundle:

Exception in thread "FelixPackageAdmin" java.lang.NullPointerException
	at org.apache.felix.framework.Felix.releaseBundleLock(Felix.java:4180)
	at org.apache.felix.framework.Felix$2.moduleResolved(Felix.java:674)
	at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.fireModuleResolved(R4SearchPolicyCore.java:2845)
	at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.resolve(R4SearchPolicyCore.java:1130)
	at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1719)
	at org.apache.felix.framework.Felix._startBundle(Felix.java:1588)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
	at org.apache.felix.framework.Felix$RefreshHelper.restart(Felix.java:4025)
	at org.apache.felix.framework.Felix.refreshPackages(Felix.java:3271)
	at org.apache.felix.framework.PackageAdminImpl.run(PackageAdminImpl.java:258)
	at java.lang.Thread.run(Thread.java:613)

The code that causes this in our project:

oldBundle.uninstall();
packageAdmin.refreshPackages(new Bundle[]{oldBundle});

This error happens only occasionally in a test that installs an updated version of a bundle that contains an interface other bundles use.  The test in question can be found at: https://studio.atlassian.com/source/browse/PLUG/branches/atlassian-plugins-2.1.x/atlassian-plugins-osgi/src/test/java/com/atlassian/plugin/osgi/PluginInstallTest.java?r=23501#l168

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.