Uploaded image for project: 'Lucee Development'
  1. LDEV-1057

java.util.ConcurrentModificationException on ArrayList iterator

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.34, 5.1.1.2
    • Fix Version/s: 5.1.1.4
    • Labels:
      None
    • Environment:

      Lucee launched via CommandBox.

      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:

      for( var mField in matchingFieldset.fields ){
      	if ( mField.name == field.name ) {
      		if ( IsBoolean( field.deleted ?: "" ) and field.deleted ) {
      			ArrayDelete( matchingFieldset.fields, mField );
      			fieldDeleted = true;
      		} else {
      			StructAppend( mField, field );
      			fieldMatched = true;
      			break;
      		}
      	}
      }
      

      Attached is the error dump and stacktrace.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              seb.duggan Seb Duggan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: