This error occurs when a temporary file is written down within a particular mapping (e.g. /coldbox), used to read in some dynamic source code and then deleted. All is well until another template within the same mapping is recompiled. Without the java agent in use, this forces a .clear() on all the pageSource objects within the mapping and when Lucee goes to re-read the tmp file, it can't find it.
Not using the java agent is a required workaround to LDEV-638.
Example stack trace snippet that shows the .clear() of a sourceFile
In the stacktrace above, "Inspect templates" is set to "Once", so when /coldbox/system/web/services/ExceptionService.cfc:114 does a cfinclude on a template file, Lucee recompiles it clears all the other saved PageSourceImpl objects under the same /coldbox mapping.
Create a mapping that is only used by the AOP mixing system's temp files. This way, no other recompiles will mess with tmp file mappings.
For coldbox / wirebox, do something like: