Yes, just installed commandbox fresh. Then tried to install cfonfig
It starts installing, it still seems to successfully install package [forgebox:JSONPrettyPrint@^1.2.6]
and then it starts throwing this constantly:
Please sit tight while your shell reloads...
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at ./src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 494
*** java.lang.instrument ASSERTION FAILED ***: "success" at ./src/java.instrument/share/native/libinstrument/InvocationAdapter.c line: 417
Agent failed to start!
And after that if you run box, I get:
There was an error loading module [commandbox-cfconfig]. Check the logs for more info ( system-log | open ).
> java.lang.NullPointerException
> /root/.CommandBox/cfml/system/services/ModuleService.cfc:655
If uninstall cfconfig and install it again I get a lot of information, something wrong with java.util.zip.Deflater:
× | Installing package [forgebox:commandbox-cfconfig]
|----------------------------------------------------------------
| Verifying package 'commandbox-cfconfig' in forgebox, please wait...
| Aww man, forgebox isn't feeling well.
| Uh-oh, ForgeBox returned something other than JSON. Run "system-log | open" to see the full response. GET https://www.forgebox.io/api/v1/entry/commandb
| ox-cfconfig Unknown host: null
| Connection Failure. Status code unavailable.
| We're going to look in your local artifacts cache and see if one of those versions will work.
| Sweet! We found a local version of [1.0.8] that we can use in your artifacts.
| Decompressing... | Shell will be reloaded after installation.
| /root/.CommandBox/cfml/box.json updated with dependency.
|----------------------------------------------------------------
ERROR (5.0.1+00137)
/system/services/PackageService.cfc: line 504
502: return true;
503: }
504: });
505:
506: // Stupid annoying fix For *nix file systems because Lucee LOSES the executable bit on files when zipping or copying them
called from /system/modules_app/package-commands/commands/package/install.cfc: line 161
called from /system/services/CommandService.cfc: line 343
called from /system/services/CommandService.cfc: line 139
called from /system/Shell.cfc: line 771
called from /system/Shell.cfc: line 591
called from /system/Bootstrap.cfm: line 154
To enable full stack trace, run config set verboseErrors=true
BOOM GOES THE DYNAMITE!!
We're truly sorry, but something horrible has gone wrong when starting up CommandBox.
Here's what we know:.
Message:
Could not initialize class java.util.zip.Deflater
Tag Context:
/root/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc: line 263
called from /root/.CommandBox/cfml/system/Bootstrap.cfm: line 174
lucee.runtime.exp.NativeException: Could not initialize class java.util.zip.Deflater
at java.base/java.util.zip.ZipOutputStream.<init>(ZipOutputStream.java:134)
at java.base/java.util.zip.ZipOutputStream.<init>(ZipOutputStream.java:120)
at java.base/java.util.jar.JarOutputStream.<init>(JarOutputStream.java:58)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal$AgentProvider$ForByteBuddyAgent.createJarFile(InstrumentationFactoryExternal.java:1160)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal$AgentProvider$ForByteBuddyAgent.resolve(InstrumentationFactoryExternal.java:1184)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal.install(InstrumentationFactoryExternal.java:394)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal.install(InstrumentationFactoryExternal.java:375)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal.install(InstrumentationFactoryExternal.java:344)
at lucee.runtime.instrumentation.InstrumentationFactoryExternal.install(InstrumentationFactoryExternal.java:330)
at lucee.runtime.instrumentation.InstrumentationFactory.getInstrumentation(InstrumentationFactory.java:126)
at lucee.commons.lang.PhysicalClassLoader.loadClass(PhysicalClassLoader.java:192)
at lucee.runtime.MappingImpl.getPhysicalClass(MappingImpl.java:253)
at lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:336)
at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:202)
at lucee.runtime.type.util.ComponentUtil.getPage(ComponentUtil.java:760)
at lucee.runtime.type.UDFPropertiesBase.getPage(UDFPropertiesBase.java:46)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:342)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:215)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:680)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1898)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
at _commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall1(/__commandbox_root/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc:263)
at _commandbox46.cfml.system.wirebox.system.ioc.injector_cfc$cf.udfCall(/__commandbox_root/.CommandBox/cfml/system/wirebox/system/ioc/Injector.cfc)
at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:106)
at lucee.runtime.type.UDFImpl._call(UDFImpl.java:342)
at lucee.runtime.type.UDFImpl.call(UDFImpl.java:215)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:680)
at lucee.runtime.ComponentImpl._call(ComponentImpl.java:568)
at lucee.runtime.ComponentImpl.call(ComponentImpl.java:1898)
at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:785)
at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1709)
at _commandbox46.cfml.system.bootstrap_cfm$cf.call(/__commandbox_root/.CommandBox/cfml/system/Bootstrap.cfm:174)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:944)
at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:836)
at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:818)
at 1hakaskpj4qmq.call(Unknown Source)
at lucee.runtime.compiler.Renderer.tag(Renderer.java:108)
at lucee.runtime.compiler.Renderer.script(Renderer.java:98)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:62)
at lucee.runtime.jsr223.ScriptEngineImpl.eval(ScriptEngineImpl.java:193)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:328)
at cliloader.LoaderCLIMain.execute(LoaderCLIMain.java:153)
at cliloader.LoaderCLIMain.main(LoaderCLIMain.java:552)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class java.util.zip.Deflater
... 46 more
I have installed OpenJDK11. My java version is:
openjdk 11.0.7
Something from the COmmandBox logs tells me it cannot reach https://www.forgebox.io/api/v1/entry/commandbox-cfconfig
whilst I can do a wget on it, so not sure why CommandBox does not reach it…
"ERROR","FILEAPPENDER","05/05/2020","15:12:40","commandbox.system.util.ForgeBox","Something other than JSON returned. GET https://www.forgebox.io/api/v1/entry/commandbox-cfconfig Unknown host: null
Connection Failure. Status code unavailable. Actual HTTP Response: Connection Failure"
"WARN","FILEAPPENDER","05/05/2020","15:19:40","commandbox.system.services.ModuleService","The module (commandbox-cfconfig) cannot be loaded as it does not have a ModuleConfig.cfc in its root. Path Checked: /root/.CommandBox/cfml/modules/commandbox-cfconfig"
Sorry for letting this question take an entirely different route… ;-(