cfsavecontent & cfinclude - java.util.ConcurrentModificationException

Description

Multiple requests are running in the same millisecond.
Code:
226 <cfsavecontent variable="viewContent">
227 <cfinclude template="#viewPath#" />
228 </cfsavecontent>

Lucee error:
/home/wwwroot/contens/framework/eventcontext.cfc (227)

failed to load template /home/wwwroot/contens/ui/views/baseframe/section_content.cfm
java.util.ConcurrentModificationException

So I guess cfinclude and/or cfsavecotnent is not thread safe?

Environment

Windows 10

Attachments

2
  • 01 Aug 2016, 02:49 pm
  • 01 Aug 2016, 02:49 pm

Activity

Former user 3 August 2016 at 19:41

Micha,
Does this include even if you are NOT using cfthread?

Michael Offner 3 August 2016 at 19:25

as you can see in the comments and the status of the ticket. i could reproduce and solve it.

Former user 3 August 2016 at 17:30

MIch,
I know you stated you could not duplicate this issue and it does make sense it is a threading issue since I do use threading quite a bit. I did notice that after removing the cfsavecontent and just doing the include that my errors decreased significantly. i was getting 30+ restarts of my servers each day when the search engines were indexing us. After removing that it dropped to a couple of them. Is it possible that there is still an issue with cfsavecontent since I do use that everywhere in my functions for my rendered html to return it from the cfc's?

Michael Offner 3 August 2016 at 10:50
Edited

following testcase forces the issue every time, not in exact the same way, but still the same issue:

<cfset AMOUNT_OF_TRIES=200> <cfsetting requesttimeout="2000"> <cfloop from="1" to="#AMOUNT_OF_TRIES#" index="i"> <cfthread action="run" name="t#i#" key="t#i#"> <cfloop from=1 to=1000 index="y"> <cfset request["y"&y]=""> </cfloop> </cfthread> </cfloop>
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 July 2016 at 08:54
Updated 7 November 2024 at 09:20
Resolved 3 August 2016 at 17:26