[
https://issues.jboss.org/browse/JBOSGI-805?page=com.atlassian.jira.plugin...
]
Arcadiy Ivanov edited comment on JBOSGI-805 at 11/18/16 5:32 AM:
-----------------------------------------------------------------
[~hannu1] The SNAPSHOT JBOSGI 2.5.3 has been uploaded. Please test with it and let me know
if you find any other problems that may be related.
was (Author: arcivanov):
[~hannu1] The SNAPSHOT JBOSGI 2.5.2 has been uploaded. Please test with it and let me know
if you find any other problems that may be related.
ConcurrentModificationException from AbstractWiring when loading a
dynamically imported class
---------------------------------------------------------------------------------------------
Key: JBOSGI-805
URL:
https://issues.jboss.org/browse/JBOSGI-805
Project: JBoss OSGi
Issue Type: Bug
Components: framework, resolver
Affects Versions: JBossOSGI 2.5.2
Reporter: Hannu Lahtinen
Assignee: Arcadiy Ivanov
Fix For: JBossOSGI 2.5.3
{code}
java.util ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) [rt.jar:1.8.0_102]
at java.util.ArrayList$Itr.next(ArrayList.java:851) [rt.jar:1.8.0_102]
at org.jboss.osgi.resolver.spi.AbstractWiring.addProvidedWire(AbstractWiring.java:120)
at org.jboss.osgi.framework.internal.FallbackLoader.loadClassLocal
(FallbackLoader.java:165)
at org.jboss.modules.Module.loadModuleClass(Module.java:613)
[jboss-modules.jar:1.5.1.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
[jboss-modules.jar:1.5.1.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
[jboss-modules.jar:1.5.1.Final]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
[jboss-modules.jar:1.5.1.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
[jboss-modules.jar:1.5.1.Final]
...
{code}
Steps that cause the exception to occur:
1. bundle with DIP: * in MANIFEST.
2. 2 different threads call above mentioned bundle with the same class that needs to be
imported dynamically.
This exception is timing based and does not happen every time but in our environment
happens about 20% of the time.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)