Recently we’ve switched from 6.2.0.321 to 6.2.1.122 and into single mode and following errors started popping up in the log:
java.util.ConcurrentModificationException
lucee.runtime.exp.NativeException: java.util.ConcurrentModificationException at
java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1605) at
java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1633) at
lucee.transformer.library.tag.TagLib.getTag(TagLib.java:154) at
lucee.runtime.tag.TagUtil.setAttributeCollection(TagUtil.java:95) at
lucee.runtime.functions.query.QueryExecute.call(QueryExecute.java:64) at
afcai.automation.aiprofiledataupdate_cfm$cf.call(/AfcAI/Automation/AIProfileDataUpdate.cfm:144) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1082) at
lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1006) at
lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:987) at
afcengine.cfc.onrequest_cfc$cf.udfCall(/AffinoMapping/AfcEngine/cfc/OnRequest.cfc:249)
It started happening in random places but it’s always on queryExecute()
Sometimes query is cached, sometimes it’s not, sometimes it’s from DB, sometimes it’s QoQ.
It’s intermittent and I can’t can’t provide code example to replicate it, but it’s happening for example in this query:
local.qGetZone = queryExecute('
SELECT "ZoneCode", "BotPermittedDomains"
FROM "Zone"
WHERE
"Active" = 1
AND (
"ZoneDomain" = :sZoneDomain1
OR '','' + "ZoneOtherDomains" + '','' LIKE :sZoneDomain2
)',
{
sZoneDomain1 = { cfsqltype="cf_sql_varchar", value=CGI.SERVER_NAME },
sZoneDomain2 = { cfsqltype="cf_sql_varchar", value='%,#CGI.SERVER_NAME#,%' }
}, {
datasource = Application.DB,
cachedwithin = CreateTimeSpan(0,0,5,0)
}
);
There’s no iteration here, CGI is set to be read only. The stack trace for this one is:
lucee.runtime.exp.NativeException: java.util.ConcurrentModificationException at
java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1605) at
java.base/java.util.HashMap$ValueIterator.next(HashMap.java:1633) at
lucee.transformer.library.tag.TagLib.getTag(TagLib.java:154) at
lucee.runtime.tag.TagUtil.setAttributeCollection(TagUtil.java:95) at
lucee.runtime.functions.query.QueryExecute.call(QueryExecute.java:64) at
Does anyone have idea what could be causing it?
OS : Linux 6.8.0-1028-aws
Java Version : 21.0.6
Tomcat Version : 9.0.104
Lucee Version : 6.2.1.122