[
https://issues.apache.org/jira/browse/FELIX-6874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149875#comment-18149875
]
Pierre De Rop edited comment on FELIX-6874 at 11/23/26, 4:12 PM:
-----------------------------------------------------------------
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]
to reproduce:
{code:java}
mvn clean package
run.sh {code}
and to check if the patch proposed in the PR #598 work, then run kind of this:
{code:java}
DM_JAR=../felix-dev-pierre/dependencymanager/org.apache.felix.dependencymanager/target/org.apache.felix.dependencymanager-5.0.1-SNAPSHOT.jar
./run.sh {code}
was (Author: pderop):
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)