You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Glen Mazza (JIRA)" <ji...@apache.org> on 2012/07/09 14:21:35 UTC

[jira] [Commented] (CXF-4411) Maven plugin fails wsdl2java execution with concurrent modification exception

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

Glen Mazza commented on CXF-4411:
---------------------------------

I'm not sure if wsdl2java is expected to be thread-safe, or even if it can be, especially in cases where the same output files are being generated from the same WSDL in multiple places.  Are you (A) generating from the same WSDL into the same output folders from multiple POMs, or are you (B) calling wsdl2java in multiple places with different WSDLs & different output folders, or are you (C) simply just calling wsdl2java once but the splitting up of it into multiple threads is what's causing the concurrent modification exception?
                
> Maven plugin fails wsdl2java execution with concurrent modification exception
> -----------------------------------------------------------------------------
>
>                 Key: CXF-4411
>                 URL: https://issues.apache.org/jira/browse/CXF-4411
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.1
>         Environment: Linux, IBM JVM 1.6, Builder is Atlassian Bamboo 2.7.6, Maven 3.0.4
>            Reporter: Jeroen Benckhuijsen
>
> We're getting a concurrent modification exception while running a parallel build (-T C5) using Maven 3. Reproducability is low, so it seems to be some race condition. Stack trace:
> build	06-Jul-2012 16:42:33	org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.1:wsdl2java (generate-sources-task-callback) on project gps-wps-process-client-takp: java.util.ConcurrentModificationException
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:163)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.FutureTask.run(FutureTask.java:150)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:453)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:315)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.FutureTask.run(FutureTask.java:150)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898)
> build	06-Jul-2012 16:42:33		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920)
> build	06-Jul-2012 16:42:33		at java.lang.Thread.run(Thread.java:736)
> build	06-Jul-2012 16:42:33	Caused by: org.apache.maven.plugin.MojoExecutionException: java.util.ConcurrentModificationException
> build	06-Jul-2012 16:42:33		at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:234)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:250)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:308)
> build	06-Jul-2012 16:42:33		at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> build	06-Jul-2012 16:42:33		at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> build	06-Jul-2012 16:42:33		... 13 more
> build	06-Jul-2012 16:42:33	Caused by: org.apache.cxf.tools.common.ToolException: java.util.ConcurrentModificationException
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:294)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:231)
> build	06-Jul-2012 16:42:33		... 17 more
> build	06-Jul-2012 16:42:33	Caused by: java.util.ConcurrentModificationException
> build	06-Jul-2012 16:42:33		at java.util.LinkedHashMap$AbstractMapIterator.checkConcurrentMod(LinkedHashMap.java:136)
> build	06-Jul-2012 16:42:33		at java.util.LinkedHashMap$AbstractMapIterator.makeNext(LinkedHashMap.java:141)
> build	06-Jul-2012 16:42:33		at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:214)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:299)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:99)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.common.toolspec.AbstractToolContainer.getBus(AbstractToolContainer.java:191)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:167)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:139)
> build	06-Jul-2012 16:42:33		at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
> build	06-Jul-2012 16:42:33		... 21 more

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