Bit stumped on what could be going on with a Lucee...
# lucee
h
Bit stumped on what could be going on with a Lucee upgrade from 5.3.8.206 to 5.3.9.141. I upgraded one Linux server, and everything worked fine, so I upgraded a second one and this broke any query to MySQL. I looked in the exception log to determine this as my custom error page just blows up and displays:
Lucee [5.3.9.141] - Error (Expression) Message variable [ERROR] doesn't exist.
I've rolled back to 8.206 and everything works fine again. I'd pass this off as something I need to update if it was just my queries to MySQL, but it seems really odd that the custom error handler no longer works correctly either. I notice that the JDK on the 2nd server is older than the first, 1.8.0_202 (AdoptOpenJdk) 64bit versus 1.8.0_292 (AdoptOpenJDK) 64bit. I'll try to get this updated this evening but wondering if anyone else has run into this and if they have any ideas for other things to check other than updating the JDK. Both servers are running the same MYSQL driver, 8.0.24. I tried version 5.3.9.133 also and same issue so I looked through the change log for 9.133 and nothing is jumping out at me as to what is causing the error handler to fail.
z
Got a stacktrace?
h
Copy code
Java Stacktrace	
lucee.runtime.exp.ExpressionException: variable [ERROR] doesn't exist
at lucee.runtime.type.scope.UndefinedImpl.getCollection(UndefinedImpl.java:434)
at errorpages.request_cfm$cf$9.call(/errorPages/request.cfm:57)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1043)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:935)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:916)
at lucee.runtime.PageContextImpl.handlePageException(PageContextImpl.java:2100)
at lucee.runtime.PageContextImpl.handlePageException(PageContextImpl.java:2016)
at lucee.runtime.listener.ModernAppListener.onError(ModernAppListener.java:439)
at lucee.runtime.listener.MixedAppListener.onError(MixedAppListener.java:138)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2503)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2465)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2436)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1194)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1140)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Line 57 of /errorPages/request.cfm is
<cflog file="Applications" text="#error.diagnostics# File processed: #error.template#">
Oh, that stacktrace was taken from 5.3.9.133 when I was trying that version and not 9.141, if that matters.
I pulled that stack trace from my browser's dev tools when it was doing an ajax call to return chart data. Actually, it looks like some queries were working fine earlier in some other ajax calls so maybe the error handler issue is because of something catastrophic with that one query...