You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tomas Forsman (JIRA)" <ji...@apache.org> on 2012/05/25 13:26:22 UTC
[jira] [Created] (AXIS2-5329) ConcurrentModificationException from
org.apache.axis2.osgi during startup
Tomas Forsman created AXIS2-5329:
------------------------------------
Summary: 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
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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Tomas Forsman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283550#comment-13283550 ]
Tomas Forsman commented on AXIS2-5329:
--------------------------------------
I'm using Karaf 2.2.7
I've installed the list of bundles listed in the comment (16/Oct/11 18:46) by Andreas Veithen in the following issue: https://issues.apache.org/jira/browse/AXIS2-4902.
I created a custom karaf dist with the bundles installed, attaching it as a zip.
To reproduce:
unzip axis2-karaf-example.zip
cd axis2-karaf
mvn clean install
./run.sh
karaf@axis2-karaf> bundle:list
START LEVEL 100 , List Threshold: 35
ID State Blueprint Level Name
[ 42] [Active ] [ ] [ 35] Axiom Impl (1.2.13)
[ 43] [Active ] [ ] [ 35] JavaMail 1.4 (1.7.1)
[ 44] [Active ] [ ] [ 35] Activation 1.1 (1.1)
[ 45] [Active ] [ ] [ 35] Apache JAMES Mime4j (Core) (0.7.2)
[ 46] [Active ] [ ] [ 35] Axiom DOM (1.2.13)
[ 47] [Active ] [ ] [ 35] Axiom API (1.2.13)
[ 49] [Active ] [ ] [ 40] org.apache.axis2.osgi (1.0.0.2)
[ 50] [Active ] [ ] [ 40] geronimo-jms_1.1_spec (1.1.1)
[ 51] [Active ] [ ] [ 40] geronimo-jta_1.1_spec (1.1.1)
[ 52] [Active ] [ ] [ 40] Apache ServiceMix :: Bundles :: wsdl4j (1.6.2.6)
[ 53] [Active ] [ ] [ 40] Web Services Metadata 2.0 (1.1.3)
[ 54] [Active ] [ ] [ 40] geronimo-servlet_2.5_spec (1.2)
[ 55] [Active ] [ ] [ 40] Apache Geronimo JAX-RS 1.1 API (1.0)
[ 56] [Active ] [ ] [ 40] Commons FileUpload (1.2.2)
[ 57] [Active ] [ ] [ 40] Commons IO (2.3.0)
[ 58] [Active ] [ ] [ 40] Apache ServiceMix :: Bundles :: commons-httpclient (3.1.0.7)
[ 59] [Active ] [ ] [ 40] Commons Codec (1.6.0)
[ 60] [Active ] [ ] [ 40] Apache Neethi (3.0.2)
[ 61] [Active ] [ ] [ 40] Woden - API (1.0.0)
[ 62] [Active ] [ ] [ 40] Woden - Commons (1.0.0)
[ 63] [Active ] [ ] [ 40] XmlSchema (1.4.7)
[ 64] [Active ] [ ] [ 40] Apache Felix Http Bundle (2.2.0)
[ 65] [Active ] [ ] [ 40] Stax2 API (3.1.1)
[ 66] [Active ] [ ] [ 40] Woodstox XML-processor (4.1.2)
[ 67] [Active ] [ ] [ 40] Apache ServiceMix :: Specs :: Stax API 1.0 (1.9.0)
[ 68] [Active ] [ ] [ 40] Apache Geronimo Bundles: httpcore-4.0.1 (4.0.1.1)
karaf@axis2-karaf> bundle:stop 49
karaf@axis2-karaf> bundle:start 49
karaf@axis2-karaf> bundle:stop 49
karaf@axis2-karaf> bundle:start 49
karaf@axis2-karaf> bundle:stop 49
karaf@axis2-karaf> bundle:start 49
karaf@axis2-karaf> ERROR: Bundle org.apache.axis2.osgi [49] 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)
> 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
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283309#comment-13283309 ]
Sagara Gunathunga commented on AXIS2-5329:
-------------------------------------------
Can you provide detailed steps to reproduce this issue ? OSGI container, list of installed bundles etc ?
> 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
>
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286441#comment-13286441 ]
Sagara Gunathunga commented on AXIS2-5329:
-------------------------------------------
@Tomas
I tested provided sample but didn't get any issue when starting Axis2 OSGI bundle ( I also repeated start/stop actions several times) . Also I tested few Axis2 services with your setup without any issue. Do you have any further details that will help to reproduce this issue ?
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Tomas Forsman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283557#comment-13283557 ]
Tomas Forsman commented on AXIS2-5329:
--------------------------------------
I do no longer believe that just making the "updated" method synchronized is the correct solution. After reviewing the code a bit more I believe it has other issues..
>From the method OSGiConfigurationContextFactory.updated(Dictionary dictionary)
Registry servicesRegistry = new ServiceRegistry(context, configCtx);
Registry moduleRegistry = new ModuleRegistry(context, configCtx, servicesRegistry);
bundleTracker.addRegistry(servicesRegistry);
bundleTracker.addRegistry(moduleRegistry);
bundleTracker.open();
I believe this means that if the configuration for the axis2 bundle is updated, the BundleTracker will get more and more Registy registered.. also the "updated" method registers services every time it is run.. possible that the OSGi container fix this under the hood, but i'm not sure.
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Tomas Forsman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286472#comment-13286472 ]
Tomas Forsman commented on AXIS2-5329:
--------------------------------------
No, only that it sometimes takes quite a few start / stop before it occurs and sometimes it happens immediately.
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Commented] (AXIS2-5329) ConcurrentModificationException
from org.apache.axis2.osgi during startup
Posted by "Moritz Bechler (JIRA)" <ji...@apache.org>.
[ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org
[jira] [Updated] (AXIS2-5329) ConcurrentModificationException from
org.apache.axis2.osgi during startup
Posted by "Tomas Forsman (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomas Forsman updated AXIS2-5329:
---------------------------------
Attachment: axis2-karaf-example.zip
Custom karaf distribution with axiom and axis2 features installed.
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org