Lucee fails to recreate a class after the cfm file is modified

Description

This happens intermittently after modifying an existing template.

A full JVM restart solves the issue.

Stack trace:

Environment

Windows 2008R2 64bit, Java 1.8u162, Tomcat 8.5.29, Lucee 5.2.6.60

Activity

Pothys - MitrahSoft 21 July 2020 at 11:59
Edited

Any update for this issue? please check & report here back. It'll improve the status of the ticket.

Pothys - MitrahSoft 16 April 2020 at 07:21

,
I've checked this ticket as per the above example but, couldn't able to reproduce the issue. It works fine and I didn't see any issues are there. So, could you please share the exact test case to reproduce the error if possible. And also, please check with the latest release.

Thanks.

Paul Fisher 7 August 2018 at 11:38

Hi, Hope this helps, I was experiencing the same issue several times a day. I was creating a new .cfm file then calling this file using cfinclude to execute the code within. since having this issue i have changed my approach a little, I have created a mapping and have updated my code to create the file in RAM, i then call the file using cfinclude and then delete the file from RAM, this has proven to be faster and i haven't had this issue for 2 days now. i will update here if the issue returns but using this method so far, all is good .

example of work-around:

<cfset local.mapping = {'/render_ram_resource':'ram://'}>
<cfapplication action="update" mappings="#local.mapping#">
<cfset fileName = "/render_ram_resource/render" & createUUID() & ".cfm">
<cffile action="WRITE" file="#fileName#" output='

<

! -->

'>
<cfinclude template="#fileName#">
<cffile action="DELETE" file="#fileName#">

I hope this helps others with this bug, at least until it gets fixed.

(Thanks for all the hard work from the Lucee Devs).

Thanks.

Zac Spitzer 16 April 2018 at 08:37

Dunno if this helps or I was doing the wrong thing, but I was trying to edit an admin file in the temp folder and it wouldn't pick up changes, even if I deleted the classes in the same folder

Zac Spitzer 2 April 2018 at 15:07

i see this too, randomly that sometimes changes aren't immediately picked up

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 22 March 2018 at 19:15
Updated 2 December 2022 at 10:49