Sheet: java.util.ConcurrentModificationException when SessionScoped and fast updates
See original GitHub issueDescribe the bug
When using a sheet SessionScoped working fast entries.remove();
in Sheet#validate on line 725 throws a java.util.ConcurrentModificationException.
Using Collections.synchronizedMap
instead of new HashMap<>();
will I think fix the problem.
I try to do a PR
Reproducer
no
Expected behavior
When working fast and SessionScoped no ConcurrentModificationException is thrown
PrimeFaces Extensions version
11.0.0
JSF implementation
Mojarra
JSF version
2.3
Browser(s)
No response
Issue Analytics
- State:
- Created a year ago
- Comments:10 (10 by maintainers)
Top Results From Across the Web
java.util.ConcurrentModificationException - DigitalOcean
ConcurrentModificationException is a very common exception when working with Java collection classes. Java Collection classes are fail-fast, ...
Read more >How to Avoid the Concurrent Modification Exception in Java
The ConcurrentModificationException in Java occurs when an object is attempted to be modified concurrently without permission.
Read more >How to avoid java.util.ConcurrentModificationException when ...
I have an ArrayList that I want to iterate over. While iterating over it I have to remove elements at the same time....
Read more >ConcurrentModificationException in Java with Examples
Generally, some iterator implementations choose to throw this exception as soon as it is encountered, called fail-fast iterators. For example: ...
Read more >ConcurrentModificationException in Java - Javatpoint
This example works completely fine as while the iterator is iterating over the map, the size of the map is not changing. Only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
yes
Nice thanks for reopening and fixing!