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

JsonPath.read() throws ConcurrentModificationException #20

Closed
GoogleCodeExporter opened this issue Sep 22, 2015 · 2 comments
Closed

JsonPath.read() throws ConcurrentModificationException #20

GoogleCodeExporter opened this issue Sep 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

JsonPath.read(sourceJson.clone(), sourcePathStr);
Even I clone sourceJson I still get this exception

When a lot of threads accessing the same JsonPath code.

What is the expected output? What do you see instead?
No ConcurrentModificationException

What version of the product are you using? On what operating system?
Linux, json-path 0.5.3

Please provide any additional information below.

java.util.ConcurrentModificationException: null
        at java.util.HashMap$HashIterator.nextEntry(Unknown Source) ~[na:1.6.0_33]
        at java.util.HashMap$ValueIterator.next(Unknown Source) ~[na:1.6.0_33]
        at com.jayway.jsonpath.filter.TraverseFilter.traverse(TraverseFilter.java:33) ~[json-path-0.5.3.jar:na]
        at com.jayway.jsonpath.filter.TraverseFilter.traverse(TraverseFilter.java:42) ~[json-path-0.5.3.jar:na]
        at com.jayway.jsonpath.filter.TraverseFilter.apply(TraverseFilter.java:23) ~[json-path-0.5.3.jar:na]
        at com.jayway.jsonpath.filter.JsonPathFilterChain.filter(JsonPathFilterChain.java:43) ~[json-path-0.5.3.jar:na]
        at com.jayway.jsonpath.JsonPath.read(JsonPath.java:109) ~[json-path-0.5.3.jar:na]
        at com.jayway.jsonpath.JsonPath.read(JsonPath.java:160) ~[json-path-0.5.3.jar:na]

Original issue reported on code.google.com by muyen....@gmail.com on 19 Sep 2012 at 6:44

@GoogleCodeExporter
Copy link
Author

Can you post the json that caused this error?

Original comment by m...@re-entry.ca on 11 Nov 2012 at 10:06

@GoogleCodeExporter
Copy link
Author

Improved thread safety in JsonProvider

Original comment by kalle.st...@gmail.com on 28 Sep 2013 at 3:35

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant