You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Arthur Naseef (Jira)" <ji...@apache.org> on 2022/01/19 17:05:00 UTC
[jira] [Created] (ARIES-2065) ConcurrentModificationException at java.util.HashMap.computeIfAbsent
Arthur Naseef created ARIES-2065:
------------------------------------
Summary: ConcurrentModificationException at java.util.HashMap.computeIfAbsent
Key: ARIES-2065
URL: https://issues.apache.org/jira/browse/ARIES-2065
Project: Aries
Issue Type: Bug
Components: Component DSL
Reporter: Arthur Naseef
Using aries-jax-rs-whiteboard with resources from 2 different bundles, I hit the following.
{code:java}
java.util.ConcurrentModificationException
at java.base/java.util.HashMap.computeIfAbsent(Unknown Source)
at org.apache.aries.component.dsl.OSGi.lambda$null$79(OSGi.java:734)
at org.apache.aries.component.dsl.internal.JustOSGiImpl.lambda$new$2(JustOSGiImpl.java:47)
at org.apache.aries.component.dsl.internal.OSGiImpl.run(OSGiImpl.java:50){code}
Debugging, this was tracked back to {{OSGi.splitBy()}} and it's use of {color:#172b4d}HashMap{color}.
When this happens, the services fail to start up. Since this is a race condition, it does not happen every time.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)