File tree Expand file tree Collapse file tree
source/java/src/org/lucee/extension/function Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -284,6 +284,14 @@ private PageContext createPageContext() throws PageException {
284284 // LDEV-6273: resolve the live engine per-call. A static cache pinned the
285285 // retired engine past cfadmin restart and blew up at PageContextUtil:196.
286286 CFMLEngine engine = CFMLEngineFactory .getInstance ();
287+ // LDEV-6273 DIAG: verify the wrapper is returning a healthy engine.
288+ try {
289+ Object scfgs = engine .getClass ().getMethod ("getServletConfigs" ).invoke (engine );
290+ int len = (scfgs != null && scfgs .getClass ().isArray ()) ? java .lang .reflect .Array .getLength (scfgs ) : -1 ;
291+ System .err .println ("[LDEV-6273-DIAG] createPageContext: engineHash=" + System .identityHashCode (engine ) + " engineCls=" + engine .getClass ().getName () + " servletConfigs.length=" + len );
292+ } catch (Throwable diag ) {
293+ System .err .println ("[LDEV-6273-DIAG] createPageContext diag probe failed: " + diag );
294+ }
287295 Resource res =config .getRootDirectory ();
288296 File contextRoot ;
289297 if (res instanceof File ) contextRoot =(File ) res ;
You can’t perform that action at this time.
0 commit comments