Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Concurrent modification exception using maven

174 views
Skip to first unread message

Jeremy

unread,
Sep 17, 2013, 7:33:36 AM9/17/13
to jna...@googlegroups.com
Hi Seb,

we're getting the below when attempting to compile feature files within Maven. The same feature files work fine compiling within Eclipse. Unfortunately I can't work out how to identify which feature file is causing the problem so I can't give you anything more than the stack trace at the moment. I'm wondering if your copyFields method is using a non thread-safe set instead of something like CopyOnWriteArraySet ?

If you need further info, please let me know how to get it.

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jnario:jnario-mav
en-plugin:0.5.1:testCompile (default) on project KayTwo: Execution default of goal org.jnario:jnario
-maven-plugin:0.5.1:testCompile failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu
ilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter
.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.jnario:jn
ario-maven-plugin:0.5.1:testCompile failed.
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j
ava:110)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: java.util.ConcurrentModificationException
        at org.eclipse.emf.common.util.AbstractEList$EIterator.checkModCount(AbstractEList.java:756)

        at org.eclipse.emf.common.util.AbstractEList$EIterator.doNext(AbstractEList.java:704)
        at org.eclipse.emf.common.util.AbstractEList$EIterator.next(AbstractEList.java:690)
        at com.google.common.collect.Iterators$5.next(Iterators.java:550)
        at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644)
        at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141)
        at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136)
        at org.jnario.feature.jvmmodel.StepReferenceFieldCreator.copyFields(StepReferenceFieldCreato
r.java:102)
        at org.jnario.feature.jvmmodel.StepReferenceFieldCreator.copyXtendMemberForReferences(StepRe
ferenceFieldCreator.java:64)
        at org.jnario.feature.jvmmodel.FeatureJvmModelInferrer._init(FeatureJvmModelInferrer.java:28
4)
        at org.jnario.feature.jvmmodel.FeatureJvmModelInferrer.init(FeatureJvmModelInferrer.java:628
)
        at org.jnario.feature.jvmmodel.FeatureJvmModelInferrer$5.run(FeatureJvmModelInferrer.java:25
7)
        at org.jnario.feature.jvmmodel.FeatureJvmModelInferrer.doInfer(FeatureJvmModelInferrer.java:
158)
        at org.jnario.jvmmodel.JnarioJvmModelInferrer.infer(JnarioJvmModelInferrer.java:93)
        at org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(JvmModelAssociato
r.java:302)
        at org.eclipse.xtext.resource.DerivedStateAwareResource.installDerivedState(DerivedStateAwar
eResource.java:145)
        at org.eclipse.xtext.xbase.resource.BatchLinkableResource.getContents(BatchLinkableResource.
java:120)
        at org.eclipse.emf.ecore.resource.impl.ResourceImpl$4.getChildren(ResourceImpl.java:522)
        at org.eclipse.emf.common.util.AbstractTreeIterator.hasAnyChildren(AbstractTreeIterator.java
:97)
        at org.eclipse.emf.common.util.AbstractTreeIterator.hasNext(AbstractTreeIterator.java:85)
        at org.jnario.feature.compiler.FeatureBatchCompiler.addObjectsWithClasses(FeatureBatchCompil
er.java:41)
        at org.jnario.compiler.JnarioBatchCompiler.getObjectsWithClasses(JnarioBatchCompiler.java:22
3)
        at org.jnario.compiler.JnarioBatchCompiler.createStubs(JnarioBatchCompiler.java:77)
        at org.eclipse.xtend.core.compiler.batch.XtendBatchCompiler.compile(XtendBatchCompiler.java:
254)
        at org.jnario.maven.JnarioTestCompile.compile(JnarioTestCompile.java:157)
        at org.eclipse.xtend.maven.XtendTestCompile.compileTestSources(XtendTestCompile.java:61)
        at org.jnario.maven.JnarioTestCompile.compile(JnarioTestCompile.java:94)
        at org.jnario.maven.JnarioTestCompile.internalExecute(JnarioTestCompile.java:72)
        at org.eclipse.xtend.maven.AbstractXtendMojo.execute(AbstractXtendMojo.java:39)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j
ava:101)
        ... 20 more

Sebastian Benz

unread,
Sep 18, 2013, 4:58:08 PM9/18/13
to jna...@googlegroups.com
Hi,

there is a new snapshot build (1.0-SNAPSHOT) available which should fix this problem. It would be great if you could let me know whether it works now for you.

Sebastian
--
You received this message because you are subscribed to the Google Groups "Jnario" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jnario+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Jeremy

unread,
Sep 19, 2013, 7:36:02 AM9/19/13
to jna...@googlegroups.com
AS per the 6.0 release, I'm afraid I'm getting a path is not absolute exception.
Reply all
Reply to author
Forward
0 new messages