felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-768) NullPointerException during resolveBundles
Date Wed, 15 Oct 2008 06:25:44 GMT

    [ https://issues.apache.org/jira/browse/FELIX-768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639739#action_12639739
] 

Carsten Ziegeler commented on FELIX-768:
----------------------------------------

Attached is a shortened log of what happens with respect to the framework, before the NPE
occurs. There is a series of bundle
installs, refreshs etc. (as explained we optimized our code already). Inbetween SCR kicks
in and starts services.
Although this race condition happens very rarely we have at least two logs which indicate
that this problem is not tied to a specific bundle
as in the two cases the exception happened at different locations

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

>            Reporter: Carsten Ziegeler
>         Attachments: log.txt
>
>
> 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.
> 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)

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


Mime
View raw message