Error (java.lang.NoClassDefFoundError)

Scenario:

I create a new cfm file containing only the text “hello” in it and then run that file via the url https://www.mysite.com/foldername/newfile.cfm

This works.

I then update the text in that file to be “hello world”, save and upload.

When I then run that file via the same url https://www.mysite.com/foldername/newfile.cfm
I get the following error:

Lucee 5.3.2.77 Error (java.lang.NoClassDefFoundError)

Why does updating the file seem to cause this issue? Is it related to caching of the compiled class file or something strange like that? More importantly, what is the solution please?

Thanks!

My stack is:

Centos 7
Lucee 5.3.2.77

openjdk version “11.0.7” 2020-04-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing)

Update to 5.3.7

1 Like

Thanks so much Zac, that solved it :slight_smile:

Hmmm … new problem now: I can update files, but I get a new error when running an image upload:

Could not initialize class sun.nio.fs.UnixCopyFile

How to resolve this bug now?