java.util.ConcurrentModificationException - JSONConverter

Description

"Severity","ThreadID","Date","Time","Application","Message"
"ERROR","cfthread-8","03/17/2021","15:00:28","cfthread-8","java.util.ConcurrentModificationException;java.util.ConcurrentModificationException;lucee.runtime.exp.NativeException: java.util.ConcurrentModificationException
at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)
at java.base/java.util.ArrayList$Itr.next(ArrayList.java:997)
at lucee.runtime.converter.JSONConverter._serializeList(JSONConverter.java:229)
at lucee.runtime.converter.JSONConverter._serializeArray(JSONConverter.java:208)
at lucee.runtime.converter.JSONConverter._serialize(JSONConverter.java:656)
at lucee.runtime.converter.JSONConverter._serializeStruct(JSONConverter.java:292)
at lucee.runtime.converter.JSONConverter._serialize(JSONConverter.java:646)
at lucee.runtime.converter.JSONConverter.serialize(JSONConverter.java:724)
at lucee.runtime.functions.conversion.SerializeJSON._call(SerializeJSON.java:99)
at lucee.runtime.functions.conversion.SerializeJSON.call(SerializeJSON.java:45)
at system.logging.logevent_cfc$cf.udfCall(/coldbox/system/logging/LogEvent.cfc:78)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:650)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:572)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1911)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1733)
at system.logging.appenders.fileappender_cfc$cf.udfCall1(/coldbox/system/logging/appenders/FileAppender.cfc:127)
at system.logging.appenders.fileappender_cfc$cf.udfCall(/coldbox/system/logging/appenders/FileAppender.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:650)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:580)
at lucee.runtime.SuperComponent.call(SuperComponent.java:83)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1733)
at system.logging.appenders.rollingfileappender_cfc$cf.udfCall(/coldbox/system/logging/appenders/RollingFileAppender.cfc:55)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:344)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:217)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:650)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:572)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1911)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1733)
at system.logging.logger_cfc$cf.threadCall(/coldbox/system/logging/Logger.cfc:365)
at lucee.runtime.thread.ChildThreadImpl.execute(ChildThreadImpl.java:203)
at lucee.runtime.thread.ChildThreadImpl.run(ChildThreadImpl.java:145)
Caused by: java.util.ConcurrentModificationException
... 41 more
"

Environment

None

Activity

Show:

Pothys - MitrahSoft 20 June 2024 at 13:19

Could you please check with Lucee latest version and report back here?

Zac Spitzer 10 June 2023 at 11:37
Edited

ever seen this? this was in preside, looks like something was trying to update the logevent while it was being serialized?

https://github.com/Ortus-Solutions/commandbox/blob/development/src/cfml/system/wirebox/system/logging/LogEvent.cfc#L78

it’s being called in a thread


https://github.com/ColdBox/coldbox-platform/blob/development/system/logging/Logger.cfc#L396

Zac Spitzer 10 June 2023 at 11:34

[INFO ] runwar.context: 10.06.2023 13:01:22,942 ERROR [web.2062145f62dc3edd05d94942667e2863.thread] cfthread-31->java.util.ConcurrentModificationException
lucee.runtime.exp.NativeException: java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043) ~[?:?]
at java.util.ArrayList$Itr.next(ArrayList.java:997) ~[?:?]
at lucee.runtime.converter.JSONConverter._serializeList(JSONConverter.java:278) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.converter.JSONConverter._serializeArray(JSONConverter.java:249) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.converter.JSONConverter._serialize(JSONConverter.java:790) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.converter.JSONConverter._serializeStruct(JSONConverter.java:363) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.converter.JSONConverter._serialize(JSONConverter.java:780) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.converter.JSONConverter.serialize(JSONConverter.java:864) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.functions.conversion.SerializeJSON._call(SerializeJSON.java:86) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.functions.conversion.SerializeJSON.call(SerializeJSON.java:45) ~[6.0.0.451-BETA.lco:?]
at system.logging.logevent_cfc$cf.udfCall(/coldbox/system/logging/LogEvent.cfc:78) ~[?:?]
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:665) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:587) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1962) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1777) ~[6.0.0.451-BETA.lco:?]
at system.logging.appenders.fileappender_cfc$cf.udfCall1(/coldbox/system/logging/appenders/FileAppender.cfc:127) ~[?:?]
at system.logging.appenders.fileappender_cfc$cf.udfCall(/coldbox/system/logging/appenders/FileAppender.cfc) ~[?:?]
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:348) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223) ~[6.0.0.451-BETA.lco:?]
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:665) ~[6.0.0.451-BETA.lco:?]

Details

Assignee

Reporter

Priority

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 17 March 2021 at 14:15
Updated 20 June 2024 at 13:19

Flag notifications