Lucee no longer works

Hello,
Lucee hasn’t been working since this morning.
When trying to restart it gave me the following error
-bash: opt/lucee/lucee_ctl: No such file or directory
I have restored the entire contents of the lucee folder from a backup.
A couple of applications work, lucee admin gives me a blank page.
some applications give the following error:
Lucee 5.3.10.97 Error (java.lang.NullPointerException)

Lucee has always worked since 2020 without any problems.
CentOS Linux 7.9.2009 (Core)
Tomcat 9.0.31
Lucee run under Plesk Obsidian.

I noticed that in the lucee/lib folder there is lucee-5.4.80.jar but i receive a Lucee 5.3.10.97 Error

@Michele_Scaletta Can you please share your full stacktrace?

I find this error on lucee default page

Lucee 5.3.10.97 Error (java.lang.NoClassDefFoundError)
Message lucee/runtime/functions/list/ListFirst
Stacktrace The Error Occurred in
/opt/lucee/tomcat/webapps/ROOT/index.cfm: line 32

30: <cfoutput>
31: <img src="/assets/img/lucee-logo.png" alt="Lucee">
32: <h1>Welcome to your Lucee #ListFirst(server.lucee.version,'.')# Installation!</h1>
33: <p class="lead-text">You are now successfully running Lucee #server.lucee.version# on your system!</p>
34: </cfoutput>

Java Stacktrace lucee.runtime.exp.NativeException: lucee/runtime/functions/list/ListFirst
at index_cfm$cf$h7.call(/index.cfm:32)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:219)
at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493)
at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478)
at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449)
at lucee.runtime.engine.Request.exe(Request.java:45)
at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216)
at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162)
at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
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:53)
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:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at mod_cfml.core.invoke(core.java:180)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:747)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: lucee/runtime/functions/list/ListFirst
… 38 more
Caused by: java.lang.ClassNotFoundException: Class [lucee.runtime.functions.list.ListFirst] is invalid or doesn’t exist
at lucee.commons.lang.PhysicalClassLoader.findClass(PhysicalClassLoader.java:163)
at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:144)
at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:127)
at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:121)
… 38 more
Caused by: java.nio.file.NoSuchFileException: /opt/lucee/tomcat/webapps/ROOT/WEB-INF/lucee/cfclasses/CF_opt_lucee_tomcat_webapps_ROOT2867/lucee/runtime/functions/list/ListFirst.class
at java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(Unknown Source)
at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
at java.base/java.nio.file.Files.newByteChannel(Unknown Source)
at java.base/java.nio.file.spi.FileSystemProvider.newInputStream(Unknown Source)
at java.base/java.nio.file.Files.newInputStream(Unknown Source)
at lucee.commons.io.res.type.file.FileResource.getInputStream(FileResource.java:243)
at lucee.commons.io.IOUtil.copy(IOUtil.java:190)
at lucee.commons.lang.PhysicalClassLoader.findClass(PhysicalClassLoader.java:159)
… 41 more

I restarted the linux server again and now it works.
But I don’t understand why in lucee/lib I have lucee-5.4.80.jar instead of lucee-5.3.10.97.jar

@Michele_Scaletta lucee-5.4.80.jar is an old loader and you may have updated it with the (5.3.10.97 LCO) file. Lucee 5.3.10.97 LCO file is there in (lucee\lucee-server\patches) folder. That’s why it running the Lucee 5.3.10.97 version. so please check that.

1 Like