java.util.ConcurrentModificationException on ArrayList iterator

Description

Running PresideCMS on Lucee 5.

Worked perfectly against 5.0.1.85-SNAPSHOT, but on upgrading to Lucee 5.1.0.34 (also tried against 5.1.1.2-SNAPSHOT) I get the ConcurrentModificationException error when trying to edit any page in the admin.

This is the block of code from Preside which throws the error:

Attached is the error dump and stacktrace.

Environment

Lucee launched via CommandBox.

Attachments

1

relates to

Activity

Seb Duggan 4 November 2016 at 09:38

I can confirm that the original issue as experienced in PresideCMS now works... Thanks Micha!

Michael Offner 31 October 2016 at 10:03

please see

Michael Offner 31 October 2016 at 09:59

in a first step we will reach status quo by improve the current implementation so it works the same way as in Lucee 5.0.
Then in a second step (new ticket) we will improve the implementation further.

FYI: also ACF fails with this testcase.

Michael Offner 30 October 2016 at 23:41
Edited

With Lucee 5.1 we changed from custom implementation for ArrayImpl to use ArrayList as a base, that is the reason of the problem. But when running the following code with 5.0 you will see the limitation of the old implementation. So going back not really is an option.

using CopyOnWriteArrayList would be an option that solves the issue, but this class is to slow for general use.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 28 October 2016 at 14:08
Updated 17 November 2021 at 12:03
Resolved 1 November 2016 at 22:29