error downgrading from 7 to 6 (replacing fat jar)

Description

Tomcat 11, started without a lucee-server dir, started with 7.0.0.151

stopped, replaced the fat jar with 6.2.0.91, didn’t purge the lucee-server dir

coz this on the console

ERROR StatusLogger Unable to load OSGI services for service class org.apache.logging.log4j.spi.Provider java.lang.NullPointerException: Cannot invoke "org.osgi.framework.BundleContext.getServiceReferences(java.lang.Class, String)" because "ctx" is null at org.apache.logging.log4j.util.OsgiServiceLocator.loadServices(OsgiServiceLocator.java:61) at org.apache.logging.log4j.util.ServiceLoaderUtil.loadServices(ServiceLoaderUtil.java:92) at org.apache.logging.log4j.util.ServiceLoaderUtil.loadServices(ServiceLoaderUtil.java:77) at org.apache.logging.log4j.util.ProviderUtil.<init>(ProviderUtil.java:67) at org.apache.logging.log4j.util.ProviderUtil.lazyInit(ProviderUtil.java:145) at org.apache.logging.log4j.util.ProviderUtil.hasProviders(ProviderUtil.java:129) at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:90) at org.apache.logging.log4j.core.osgi.Activator.stop(Activator.java:116) at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:871) at org.apache.felix.framework.Felix.stopBundle(Felix.java:2822) at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1046) at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1032) at lucee.loader.osgi.BundleUtil.stop(BundleUtil.java:117) at lucee.loader.osgi.BundleLoader.stopBundle(BundleLoader.java:325) at lucee.loader.osgi.BundleLoader.removeBundlesEL(BundleLoader.java:274) at lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:87) at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:663) at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:285) at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:184) at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:218) at lucee.loader.servlet.jakarta.RestServlet.init(RestServlet.java:39) at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:817) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:787) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:691) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4194) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4478) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:566) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:653) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1094) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1897) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1005) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:389) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1593) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:267) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:109) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:336) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:743) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:771) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1170) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1160) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:716) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:203) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:415) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:866) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164) at org.apache.catalina.startup.Catalina.start(Catalina.java:759) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:470)

 

throws a 500 in the browser

java.lang.NoClassDefFoundError: lucee/runtime/util/AI java.base/java.lang.Class.getDeclaredMethods0(Native Method) java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3578) java.base/java.lang.Class.getMethodsRecursive(Class.java:3719) java.base/java.lang.Class.getMethod0(Class.java:3705) java.base/java.lang.Class.getMethod(Class.java:2393) lucee.loader.engine.CFMLEngineFactory.getEngine(CFMLEngineFactory.java:1730) lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:666) lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:285) lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:184) lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:218) lucee.loader.servlet.jakarta.CFMLServlet.init(CFMLServlet.java:39) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:483) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:395) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:905)

Environment

None

Activity

Show:

Zac Spitzer last month
Edited

D:\tmp\lucee-tomcat-11.0.5-template\lucee-server\patches>dir Volume in drive D is work Volume Serial Number is 50C6-4B1B Directory of D:\tmp\lucee-tomcat-11.0.5-template\lucee-server\patches 27/03/2025 02:26 PM <DIR> . 27/03/2025 02:26 PM <DIR> .. 27/03/2025 02:26 PM 10,195,181 6.2.1.92-SNAPSHOT.lco 27/03/2025 10:52 AM 10,202,681 7.0.0.151-SNAPSHOT.lco 2 File(s) 20,397,862 bytes 2 Dir(s) 37,949,935,616 bytes free D:\tmp\lucee-tomcat-11.0.5-template\lucee-server\patches>

looks good to me! the 7 lco was ignored

Michael Offner last month

can you please give this another try, starting Lucee 6 loader with Lucee 7 .lco in the patches directory.

Michael Offner last month

We can address this by setting a MAX_VERSION in the core, so Lucee 6 will not load core for Lucee > 7.0.0.125

Michael Offner last month

we may can add a check for that

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created last month
Updated last month
Resolved last month

Flag notifications