axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Schmidt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5329) ConcurrentModificationException from org.apache.axis2.osgi during startup
Date Mon, 10 Feb 2014 15:33:20 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896690#comment-13896690
] 

Andy Schmidt commented on AXIS2-5329:
-------------------------------------

I attached the patch again  - uncompressed.

The classes 
- Activator.java
- OSGiAxis2ServletLifecycleManager.java
must located at the package org.apache.axis2.osgi.internal of the OSGi module of Axis2.

The pom includes the workaround to remove package import javax.xml.stream in version 1.0 because
of AXIOM-457. This workaround can be removed.

<!-- Workaround for Axiom dependency. Axis2 OSGi will not be run with Axiom 
			because Axiom doesn't export packages with uses. The bnd cannot generate 
			the javax.xml.stream imports for the Axis2 OSGi bundle because Axiom imports 
			this package without version number from stax api 1.0. -->
		<dependency>
			<groupId>org.apache.ws.commons.axiom</groupId>
			<artifactId>axiom-api</artifactId>
			<version>1.2.13</version>
			<exclusions>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.ws.commons.axiom</groupId>
			<artifactId>axiom-impl</artifactId>
			<version>1.2.13</version>
			<exclusions>
				<exclusion>
					<groupId>org.apache.geronimo.specs</groupId>
					<artifactId>geronimo-stax-api_1.0_spec</artifactId>
				</exclusion>
			</exclusions>
		</dependency>

All other changes inside the pom are needed:
- upgrade to the latest maven-bundle-plugin version
- use scr generation

Thanks Andreas!

> 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: Activator.java, OSGiAxis2ServletLifecycleManager.java, Patch_5329.7z,
axis2-karaf-example.zip, pom.xml
>
>
> 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 was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message