I noticed an issue since upgrading to 5.7 where Commandbox throws an exception any time I open the Windows command prompt and type “box”. Once the exception throws, Commandbox appears to work normally anyway.
I tested launching Commandbox from VSCode, Cmder, and Windows Command Prompt, and all of them exhibit the same behavior.
I tried cleaning out the C:\Users\Henweigh.CommandBox\engine\cfml\cli\lucee-server\felix-cache\ folder, reinstalled CommandBox, but the issue remains.
ERROR: Error reloading cached bundle, removing it: C:\Users\Henweigh.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle1 java.io.FileNotFoundException: C:\Users\Henweigh.CommandBox\engine\cfml\cli\lucee-server\felix-cache\bundle1\bundle.info (The system cannot find the file specified)
That’s an error thrown by Apache Felix inside of Lucee. I’ve seen it over the years here and there, but have no earthly idea why it happens. It’s related to locks on the jar bundles from the other box process you have running, but for some reason it happens more often in the latest version of Lucee that I updated to in CommandBox 5.7.
I did figure out last week how to just turn off the Felix logging all together. This change is already in the 5.8.0 alpha builds. Or, you can just set the env var FELIX_LOG_LEVEL=0 in the shell before running box.