Skip to content

Commit 2881c8a

Browse files
committed
LDEV-6273 DIAG: probe engine identity + servletConfigs length per-call
1 parent b84bc30 commit 2881c8a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/java/src/org/lucee/extension/function/CreateWebSocketClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)