[Commandbox 5.5.1] Issues upgrading Commandbox on MacOS

Hi,
I noticed yesterday that my commandbox installation was outdated.
I downloaded the latest version and moved it to my /usr/local/bin/ folder where I replaced the older box file.
After this I tried to start commandbox in a terminal via typing box as I was used to.
After the initialisation of the .CommdanBox folder an error was thrown. As a qick solution I tried to remove the .CommandBox folder simulate a fresh install. However upon CommandBox startup I am getting an error once again. CommandBox seems to finish the startup however certain commands can not be executed without CommandBox crashing.
Might this be an incompatibility with my used java Version? Is there a List of compatible Java Versions

System Setup:
MacOS Monterey v12.3.1
Java SE 17+35-LTS-2724

Stacktrace:

"ERROR","FILEAPPENDER","05/13/2022","09:42:52","commandbox.system.services.InterceptorService"
Error creating interceptor: /commandbox/system/modules_app/server-commands.interceptors.ServerScripts. Error building:  ServerService -> Unable to make public boolean sun.nio.ch.FileLockImpl.isValid() accessible: module java.base does not ""exports sun.nio.ch"" to unnamed module @52d239ba
					. DSL: , Path: commandbox.system.services.ServerService,
					Error Location:
					/Users/christian/.CommandBox/cfml/system/util/FileSystem.cfc:589  /Users/christian/.CommandBox/cfml/system/services/ServerService.cfc:2443  /Users/christian/.CommandBox/cfml/system/services/ServerService.cfc:101 lucee.runtime.exp.CustomTypeException: Error building: ServerService -> Unable to make public boolean sun.nio.ch.FileLockImpl.isValid() accessible: module java.base does not ""exports sun.nio.ch"" to unnamed module @52d239ba
at lucee.runtime.tag.Throw._doStartTag(Throw.java:212)
	at lucee.runtime.tag.Throw.doStartTag(Throw.java:201)
	at throw_cfm$cf.udfCall(/throw.cfm:11)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.functions.system.CFFunction.call(CFFunction.java:109)
	at system.ioc.builder_cfc$cf.udfCall1(/wirebox/system/ioc/Builder.cfc:220)
	at system.ioc.builder_cfc$cf.udfCall(/wirebox/system/ioc/Builder.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:463)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.ioc.scopes.singleton_cfc$cf.udfCall(/wirebox/system/ioc/scopes/Singleton.cfc:69)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:432)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.ioc.builder_cfc$cf.udfCall3(/wirebox/system/ioc/Builder.cfc:795)
	at system.ioc.builder_cfc$cf.udfCall(/wirebox/system/ioc/Builder.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.type.scope.UndefinedImpl.callWithNamedValues(UndefinedImpl.java:804)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at system.ioc.builder_cfc$cf.udfCall2(/wirebox/system/ioc/Builder.cfc:576)
	at system.ioc.builder_cfc$cf.udfCall(/wirebox/system/ioc/Builder.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall3(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:994)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:738)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at system.ioc.scopes.singleton_cfc$cf.udfCall(/wirebox/system/ioc/scopes/Singleton.cfc:77)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:432)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.services.interceptorservice_cfc$cf.udfCall1(/commandbox/system/services/InterceptorService.cfc:138)
	at system.services.interceptorservice_cfc$cf.udfCall(/commandbox/system/services/InterceptorService.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.services.interceptorservice_cfc$cf.udfCall1(/commandbox/system/services/InterceptorService.cfc:95)
	at system.services.interceptorservice_cfc$cf.udfCall(/commandbox/system/services/InterceptorService.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at system.services.moduleservice_cfc$cf.udfCall2(/commandbox/system/services/ModuleService.cfc:499)
	at system.services.moduleservice_cfc$cf.udfCall(/commandbox/system/services/ModuleService.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.services.moduleservice_cfc$cf.udfCall2(/commandbox/system/services/ModuleService.cfc:383)
	at system.services.moduleservice_cfc$cf.udfCall(/commandbox/system/services/ModuleService.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at system.shell_cfc$cf.udfCall1(/commandbox/system/Shell.cfc:156)
	at system.shell_cfc$cf.udfCall(/commandbox/system/Shell.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:208)
	at lucee.runtime.tag.Invoke.doFunction(Invoke.java:222)
	at lucee.runtime.tag.Invoke.doEndTag(Invoke.java:194)
	at system.core.dynamic.mixerutil_cfc$cf.udfCall2(/wirebox/system/core/dynamic/MixerUtil.cfc:267)
	at system.core.dynamic.mixerutil_cfc$cf.udfCall(/wirebox/system/core/dynamic/MixerUtil.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall3(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:952)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:751)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at system.ioc.scopes.singleton_cfc$cf.udfCall(/wirebox/system/ioc/scopes/Singleton.cfc:77)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1932)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
	at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1762)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:432)
	at users.christian._commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/Users/christian/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
	at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
	at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
	at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:698)
	at lucee.runtime.ComponentImpl._call(ComponentImpl.java:585)
	at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1951)
	at lucee.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:866)
	at lucee.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1781)
	at users.christian._commandbox46.cfml.system.bootstrap_cfm$cf.call(/Users/christian/.CommandBox/cfml/system/Bootstrap.cfm:144)
	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 1os8tso3jhcxq.call(Unknown Source)
	at lucee.runtime.compiler.Renderer.tag(Renderer.java:107)
	at lucee.runtime.compiler.Renderer.script(Renderer.java:97)
	at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:65)
	at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:220)
	at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:328)
	at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:155)
	at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:580)

Nevermind, I just noticed that I installed CommandBox via homebrew. After a restore from TimeMachine to my old setup and an update via homebrew Commandbox is working now.

The error looks like you were trying to run CommandBox on Java 17, which Lucee is not compatible with. When you install CommandBox via Homebrew, it will lock in Java 11 so it all works.