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

Pierre De Rop commented on FELIX-6874:
--------------------------------------

Added another reproducer, this time using dependency manager in parallel mode + 
an installer which simulate what is doing file install: start bundles in 
transient mode from a "deployer" thread.

See [^felix-6874-dm-parallel-reproducer.tgz]

> Dependency Manager: intermittent NPE in ServiceRegistryCacheManager when 
> bundles are started concurrently
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-6874
>                 URL: https://issues.apache.org/jira/browse/FELIX-6874
>             Project: Felix
>          Issue Type: Bug
>          Components: Dependency Manager
>            Reporter: Pierre De Rop
>            Assignee: Pierre De Rop
>            Priority: Major
>         Attachments: felix-6874-dm-parallel-reproducer.tgz, 
> felix-6874-reproducer.tgz
>
>
> While testing [PR #236|https://github.com/apache/felix-dev/pull/236] 
> (_AutoProcessor - Load and start bundles in parallel_), an intermittent 
> startup failure was reported in Dependency Manager:
> {noformat}
> java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.felix.dm.impl.index.ServiceRegistryCacheManager
> Caused by: java.lang.ExceptionInInitializerError: Exception 
> java.lang.NullPointerException
>     at 
> org.apache.felix.dm.impl.index.ServiceRegistryCacheManager.init(ServiceRegistryCacheManager.java:140)
>     at 
> org.apache.felix.dm.impl.index.ServiceRegistryCacheManager.<clinit>(ServiceRegistryCacheManager.java:63)
>     at 
> org.apache.felix.dm.DependencyManager.createContext(DependencyManager.java:314)
>     ...
> {noformat}
> The same issue was also observed when using DM in [concurrent 
> mode|https://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager/reference/thread-model.html].
> I was able to reproduce it (rarely). This issue is opened to track the 
> investigation of the problem in Dependency Manager and, if needed, provide a 
> fix.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to