You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Carsten Ziegeler <cz...@apache.org> on 2008/10/14 15:25:35 UTC

Very sporadic NPE during

Hi,

we are experiencing very sporadic NPEs with 1.2.1 in the Felix class
(see stack trace below). This happens during a series of bundle installs
and starts (intercepted by resolveBundles and refreshPackages) calls.
While our implementation is not optimal (which we fixed now), it seems
that this is a very rare race condition.

Any ideas? Should I file a bug?

Regards
Carsten

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.resolveBundles(Felix.java:3169)
	at
org.apache.felix.framework.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:288)
	
-- 
Carsten Ziegeler
cziegeler@apache.org

Re: Very sporadic NPE during

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Go ahead and file a bug with as much info as you have.

-> richard

Carsten Ziegeler wrote:
> Hi,
>
> we are experiencing very sporadic NPEs with 1.2.1 in the Felix class
> (see stack trace below). This happens during a series of bundle installs
> and starts (intercepted by resolveBundles and refreshPackages) calls.
> While our implementation is not optimal (which we fixed now), it seems
> that this is a very rare race condition.
>
> Any ideas? Should I file a bug?
>
> Regards
> Carsten
>
> 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.resolveBundles(Felix.java:3169)
> 	at
> org.apache.felix.framework.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:288)
> 	
>