Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.util.ConcurrentModificationException at cucumber.runtime.xstream.LocalizedXStreams$LocalizedXStream.unsetParameterInfo(LocalizedXStreams.java:81) #591

Closed
jasonboggess opened this issue Sep 18, 2013 · 3 comments

Comments

@jasonboggess
Copy link

We are attempting to run Cucumber tests in parallel, but running into the following error. It looks like it's happening when Cucumber is attempting to read the parameters for the test.

Found #554 that might fix the issue.

java.util.ConcurrentModificationException
    at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:819)
    at java.util.ArrayList$Itr.next(ArrayList.java:791)
    at cucumber.runtime.xstream.LocalizedXStreams$LocalizedXStream.unsetParameterInfo(LocalizedXStreams.java:81)
    at cucumber.runtime.ParameterInfo.convert(ParameterInfo.java:120)
    at cucumber.runtime.StepDefinitionMatch.transformedArgs(StepDefinitionMatch.java:75)
    at cucumber.runtime.StepDefinitionMatch.runStep(StepDefinitionMatch.java:38)
    at cucumber.runtime.Runtime.runStep(Runtime.java:268)
    at cucumber.runtime.model.StepContainer.runStep(StepContainer.java:45)
    at cucumber.runtime.model.StepContainer.runSteps(StepContainer.java:40)
    at cucumber.runtime.model.CucumberScenario.runBackground(CucumberScenario.java:45)
    at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:34)
    at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:83)
    at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
    at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
    at cucumber.api.junit.Cucumber.runChild(Cucumber.java:77)
    at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:258)
    at org.apache.maven.surefire.junitcore.pc.InvokerStrategy.schedule(InvokerStrategy.java:38)
    at org.apache.maven.surefire.junitcore.pc.Scheduler.schedule(Scheduler.java:230)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    at cucumber.api.junit.Cucumber.run(Cucumber.java:82)
    at org.junit.runners.Suite.runChild(Suite.java:127)
    at org.junit.runners.Suite.runChild(Suite.java:26)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:258)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
@bjoernmartin
Copy link

Seems to duplicate #333

@vsuryawanshi
Copy link

Even I have been facing the same issue when I try running a some tests in parallel and its random so its hard to produce a test for it.This PR should help fix it.

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants