[jboss-osgi-issues] [JBoss JIRA] (JBOSGI-805) ConcurrentModificationException from AbstractWiring when loading a dynamically imported class

Hannu Lahtinen (JIRA) issues at jboss.org
Thu Nov 17 00:40:00 EST 2016


Hannu Lahtinen created JBOSGI-805:
-------------------------------------

             Summary: 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: Feature Request
          Components: framework, resolver
    Affects Versions: JBossOSGI 2.5.2
            Reporter: Hannu Lahtinen
            Assignee: Arcadiy Ivanov


{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)


More information about the jboss-osgi-issues mailing list