Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5F72BD846 for ; Mon, 9 Jul 2012 14:24:38 +0000 (UTC) Received: (qmail 82485 invoked by uid 500); 9 Jul 2012 14:24:38 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 82368 invoked by uid 500); 9 Jul 2012 14:24:37 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 81914 invoked by uid 99); 9 Jul 2012 14:24:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2012 14:24:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 1C1E3142850 for ; Mon, 9 Jul 2012 14:24:35 +0000 (UTC) Date: Mon, 9 Jul 2012 14:24:35 +0000 (UTC) From: "Jeroen Benckhuijsen (JIRA)" To: issues@cxf.apache.org Message-ID: <1423066531.23264.1341843875116.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2116803586.22256.1341832175416.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (CXF-4411) Maven plugin fails wsdl2java execution with concurrent modification exception MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409510#comment-13409510 ] Jeroen Benckhuijsen commented on CXF-4411: ------------------------------------------ Hi Glen, the right answer seems to be (B), wsdl2java is called from multiple poms (and thus different WSDLs/output folders). I' ve been checking the code of ExtensionManagerImpl (https://fisheye6.atlassian.com/browse/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/ExtensionManagerImpl.java?r=1230569). The cause seems to be a modification on the all field. There are a number of methods which are synchronized, but a number (load, destroy) which are not... > 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