Title:
Compiler sometimes fails to compile the java classes for function expressions (or closures)
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/CannotReproduce
Reporter/Name(from Bugbase): e-domizil License Team / e-domizil License Team ()
Created: 03/15/2017
Components: Core Runtime, Parser/Compiler
Versions: 2016
Failure Type: Crash
Found In Build/Fixed In Build: CF2016 Updater 3 /
Priority/Frequency: Normal / All users will encounter
Locale/System: / Win 2012 Server x64
Vote Count: 0
Problem Description: When large numbers of classes are compiled at once, the compiler sometimes fails to compile the java classes for function expressions (or closures). The resulting error message is similar to the following.
ERROR TYPE: coldfusion.runtime.EventHandlerException
ERROR MESSAGE: Event handler exception.
ERROR DETAIL: An exception occurred while invoking an event handler method from Application.cfc. The method name is: onRequest.
ROOT CAUSE MESSAGE: cfparserABC2ecfc548328956$func_CF_ANONYMOUSCLOSURE_260
ROOT CAUSE DETAIL:
When checking on the server we can see that the .class file for this function really is missing. Clearing the trusted cache for the server generally clears the problem and results in the .class file being compiled. However the problem is critical in the live environment because it persists until the trusted cache is cleared, or the server restarted. The problem is not specific to a particular .cfc or function
Server Conditions prevalent when the Problem occurs.
CPU is relatively high due to large number of files being compiled at once (application initialization). JIT is high (Just in Time Compilation). Classes Loaded Statistic is high.
Heap & Metaspace Memory are still in acceptable ranges, although a small spike will be shown as the app is initialized.
Steps to Reproduce: UNKNOWN
Actual Result: Application crashes and does not recover as class file is missing and not getting compiled.
Expected Result: No crash
Any Workarounds: None
Attachments:
Comments: