java.lang.ClassFormatError: Truncated class file

Description

Environment

None

Activity

Show:
Michael Offner
July 3, 2020, 12:59 PM

the code actually handles if a class file cannot be loaded and in that case recompiles the file as you can see here:

https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/PageSourceImpl.java#L371

Problem is in that case we have a ClassFormatError what is not an exception and because of that is not catched, we will make sure that ClassFormatError is catched as well and we will check why class files are corrupt in the first place.

Michael Offner
July 3, 2020, 1:42 PM
Edited

this fix in version 5.3.8.16

should solve the problem by catching it, but does not yet solve the underlaying problem. we added additional logging (to compile.log) so we get further input on what is going on, so please check that log file if you can and report the data from the log here.

Please look for “size of the class file:“

Umair Khan
September 28, 2020, 11:03 PM
Edited

I am still facing the same issue. Can you confirm is this resolved with latest lucee server ?

Pothys - MitrahSoft
September 29, 2020, 7:11 AM

, Did you check with 5.3.8.16-SNAPSHOT or latest version of lucee. It was partially fixed on that version as Micha said above. Please check and report here.

Michael Offner
October 28, 2020, 2:16 PM

your screenshot shows the version 5.3.4.80, but the change is with 5.3.8.16.

Also as written in my last comment, this is only a partial fix, if you still encounter the issue, please consult the log as commented above.

Assignee

Unassigned

Reporter

Michael Offner

Priority

New

Labels

None

Fix versions

None
Configure