[
https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485609#comment-13485609
]
Moritz Bechler commented on AXIS2-5329:
---------------------------------------
I'm also experiencing this issue (org.eclipse.osgi_3.8.0,
org.apache.axis2.osgi_1.0.0.2/1.6.2). As the backtrace below shows the issue
seems to be caused by an active configuration manager
(org.eclipse.equinox.cm_1.0.300.201207151509) which concurrently with the
BundleActivator calls into OSGiConfigurationContextFactory.updated(). Judging
from the OSGI CM spec this is expected behaviour as update() is called from the
Activator after registering the ManagedService which means it is (or might be)
already managed by the configuration manager.
{panel:title=Stack traces}
Daemon Thread [Refresh Packages] (Suspended (entry into method updated in
OSGiConfigurationContextFactory))
OSGiConfigurationContextFactory.updated(Dictionary) line: 101
Activator.start(BundleContext) line: 48
BundleContextImpl$1.run() line: 711
AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: not
available [native method]
BundleContextImpl.startActivator(BundleActivator) line: 702
BundleContextImpl.start() line: 683
BundleHost.startWorker(int) line: 381
BundleHost(AbstractBundle).resume() line: 390
Framework.resumeBundle(AbstractBundle) line: 1177
PackageAdminImpl.resumeBundles(AbstractBundle[], boolean, int[]) line:
317
PackageAdminImpl.processDelta(BundleDelta[], boolean, State) line: 556
PackageAdminImpl.doResolveBundles(Bundle[], boolean,
FrameworkListener[]) line: 251
PackageAdminImpl$1.run() line: 174
Thread.run() line: 722
Daemon Thread [ManagedService Update Queue] (Suspended (entry into method
updated in OSGiConfigurationContextFactory))
OSGiConfigurationContextFactory.updated(Dictionary) line: 101
ManagedServiceTracker$1.run() line: 181
SerializedTaskQueue$1.run() line: 36
{panel}
> ConcurrentModificationException from org.apache.axis2.osgi during startup
> -------------------------------------------------------------------------
>
> Key: AXIS2-5329
> URL: https://issues.apache.org/jira/browse/AXIS2-5329
> Project: Axis2
> Issue Type: Bug
> Components: modules
> Affects Versions: 1.6.2
> Environment: Linux, Karaf using felix,
> Reporter: Tomas Forsman
> Attachments: axis2-karaf-example.zip
>
>
> I receive the following exception during startup of the axis2 osgi bundle:
> ERROR: Bundle org.apache.axis2.osgi [77] EventDispatcher: Error during
> dispatch. (java.util.ConcurrentModificationException)
> java.util.ConcurrentModificationException
> at
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
> at java.util.AbstractList$Itr.next(AbstractList.java:343)
> at
> org.apache.axis2.osgi.deployment.tracker.BundleTracker$1.bundleChanged(BundleTracker.java:68)
> at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:949)
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:54)
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:106)
> at java.lang.Thread.run(Thread.java:662)
> From looking at the code, I guess that a quick fix would be to make the
> following method synchronized:
> OSGiConfigurationContextFactory.updated(Dictionary dictionary)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]