[Commandbox 5.5.0] Unable to Install Github Packages

I upgraded Commandbox to version 5.5.0 yesterday and since the update, I have been unable to install any dependencies via box install that reference github packages.

Here’s an example:

❯ install
 × | Installing ALL dependencies
   |------------------------------------------
   | √ | Installing package [forgebox:coldbox@^6.0.0]
   | √ | Installing package [forgebox:qb@^8.7.7]
   | √ | Installing package [forgebox:mementifier@^2.8.0+4]
   | √ | Installing package [forgebox:cbsecurity@^2.15.0+19]
   | √ | Installing package [forgebox:BCrypt@^3.0.1+34]
   | × | Installing package [github:homestar9/rememberMe]
   |   |---------------------------------------------------------------
   |   | Cloning Git URL [https://github.com/homestar9/rememberMe.git]
   |   |---------------------------------------------------------------


ERROR (5.5.0+00558)

Error cloning github repository

java.lang.ExceptionInInitializerError 
java.lang.NullPointerException: No Bundle provided

Please let me know if anyone has a workaround for the issue, or if there’s a way to roll back Commandbox. I don’t see links to previous versions on the download page: https://www.ortussolutions.com/products/commandbox

HI @DaveL The repo cloning problem turned out to be a super ridiculous combination of Lucee, Log4j, Apache Felix and jGit and it didn’t break until Lucee 5.3.9.129-SNAPSHOT which was only one week before Lucee 5.3.9 went stable. jGit only broke just days before Lucee released. I believe the bug is ultimately in Log4j itself, but it only manifested in a very specific set of circumstances. Adding the java system property of

Log4jContextSelector=org.apache.logging.log4j.core.selector.ClassLoaderContextSelector

inside a commandbox.properties file in the same folder as box.exe will work around it for now which forces Log4j into a slightly different code path that doesn’t use the OSGI bundle context loader.

I am working on a patch update to CommandBox to try and get it working for everyone again.

1 Like

I’ve just pushed CommandBox 5.5.1. Can you please give it a test and see if Git cloning is working out of the box now?

1 Like

@bdw429s you’re a rock star! 5.5.1 is able to install Github packages. Thanks for pushing that out so quickly!

1 Like