question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sheet: java.util.ConcurrentModificationException when SessionScoped and fast updates

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
eduarddrenthcommented, Jun 4, 2022

yes

0reactions
mellowarecommented, Jun 23, 2022

Nice thanks for reopening and fixing!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found