Regression - Intermittent ClassNotFoundException exception when compiling

Description

This was reported by a CommandBox user after updating to Lucee 5.3.5.92 using Java 11.0.6. The error was thrown after pagePoolClear() was called and CFML code ran. In the case of this specific stack trace, the line of CF code in question was simply calling a UDF in the code.

The error does not happen every time.

Also note, the Lucee java code in the PhysicalClassLoader class is SWALLOWING the original IOException and only re-throwing a generic error which makes it impossible to determine what actually happened!

Lucee needs to do a better job of handling this error so we can see the real "cause".

Environment

None

Activity

Show:
Michael Offner
April 24, 2020, 7:18 AM

i will review the commits to see what could cause this.

Michael Offner
May 25, 2020, 6:46 PM

 

that fix should do the trick, can you give it a try?

John Berquist
May 25, 2020, 11:31 PM

Unfortunately, the error is still present in 5.3.7.34-SNAPSHOT. Have you tried reproducing the error yourself using the gist I linked to earlier? I can get the error to show up using that code even on my Mac, so long as I use Java 11, and not Java 8.

m
July 29, 2020, 8:04 PM

Had this problem in 5.3.6, so I upgraded to 5.3.7. I thought it was fixed, but it came back. This error just seems to happen on its own. Its there one minute, gone the next. Sometimes a re-start of Lucee will fix this, but then for no reason (no code or conf changes), it just comes back. It also seems somewhat self healing. I have seen it just go away without any code changes.

Zac Spitzer
July 29, 2020, 8:07 PM

Can you file a new issue and link it back to this one?

Fixed

Assignee

Michael Offner

Reporter

Brad Wood

Priority

Critical

Labels

Fix versions

Sprint

5.3.8 Sprint 3

Affects versions