When trying to install the `oauth2-providers` mod...
# box-products
p
When trying to install the
oauth2-providers
module I get an error; not sure if this is an issue for the module side or my side. Thoughts
1
ERROR (5.7.0+00653) Error cloning github repository java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.util.SystemReader
@bdw429s I just noticed after starting a new commandbox instance and try this again I see the first here when trying to
install oauth2-providers
command I get this initial error followed by the additional ones above for any additional attempts.
ERROR (5.7.0+00653) Error cloning github repository java.lang.ExceptionInInitializerError java.lang.NullPointerException: No Bundle provided
b
Hmm, that's odd. Is there a stack trace?
Does the same thing happen on 5.8.0?
p
Yep just upgraded to 5.8 and it still errored the same
b
Try installing another package that comes from Github?
I assume it's an issue on your machine, buy without a stack trace ot's hard to even guess
p
Other packages install; thats why I figured it was related to just that one
how do you enable for the error stack when installing? what cmd?
I am on a mac...by the way could it possibly be the dash in the name??
b
Was the other package stored on github though?
p
Yea just uninstalled cbsecurity and removed it from my artifacts and it installed
I am curious if it is the dash in the name if it is working to install for a windows machine
b
Hmm, I had forgotten about that, but I remember it now. That fix is still in CommandBox, but I did update Log4j in this release.
p
So is it in this 5.8 version and shouldnt be occurring?
b
Beats me, lol
Not sure if it's the same bug
p
Still a bit strange, guessing you dont get the same result when trying to install that module? @bdw429s
b
Beats me, I'm on vacation 😊
I'll be back next week after spring break
p
Oh sorry, go enjoy yourself.
👍 1
Since you are back @bdw429s just wanted to see if you are able to
install oauth2-providers
and see this error I get? Its weird because initially it gives that first "java.lang.NullPointerException: No Bundle provided" followed by "java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.jgit.util.SystemReader " for any subsequent attempts to install.
b
@Patrick Works fine for me
Copy code
❯ install oauth2-providers --verbose
 √ | Installing package [forgebox:oauth2-providers]
   |-------------------------------------------------------------
   | Verifying package 'oauth2-providers' in forgebox, please wait...
   | Installing version [2.2.0].
   | Verified entry in forgebox: 'oauth2-providers'
   | Deferring to [github] endpoint for forgebox entry [oauth2-providers]...
   | Using branch [v2.2.0]
   | Cloning Git URL [<https://github.com/coldfumonkeh/oauth2.git>]
   | remote: Enumerating objects
   | remote: Counting objects (87)
   | remote: Compressing objects (56)
   | Receiving objects (619)
   | Resolving deltas (408)
   | Checking out files (61)
   | Available branches are refs/heads/master,refs/remotes/origin/master
   | Storing download in artifact cache...
   | Done.
   | C:\Users\Brad\Desktop\sandbox\flush\/box.json updated with dependency.
   | Installing to: C:\Users\Brad\Desktop\sandbox\flush\/oauth2-providers
   | -> 32 File(s) Installed
   | -> 42 File(s) ignored
   | Eureka, 'oauth2-providers' has been installed!
   |-------------------------------------------------------------
   | √ | Installing package [forgebox:pkce@^1.0.0]
   |   |--------------------------------------------------------
   |   | Verifying package 'pkce' in forgebox, please wait...
   |   | Installing version [1.0.0].
   |   | Verified entry in forgebox: 'pkce'
   |   | Deferring to [github] endpoint for forgebox entry [pkce]...
   |   | Using branch [v1.0.0]
   |   | Cloning Git URL [<https://github.com/coldfumonkeh/pkce.git>]
   |   | remote: Enumerating objects
   |   | remote: Counting objects (18)
   |   | remote: Compressing objects (12)
   |   | Receiving objects (18)
   |   | Resolving deltas (2)
   |   | Checking out files (10)
   |   | Available branches are refs/heads/main,refs/remotes/origin/main
   |   | Storing download in artifact cache...
   |   | Done.
   |   | Installing to: C:\Users\Brad\Desktop\sandbox\flush\oauth2-providers\utils\deps/pkce
   |   | -> 4 File(s) Installed
   |   | -> 12 File(s) ignored
   |   | Eureka, 'pkce@^1.0.0' has been installed!
   |   |--------------------------------------------------------
I'd try maybe wiping your CommandBox lib, engine, and cfml/system folders and getting the latest exe
p
I just grabbed the v5.8.0+00695 commandbox when I was having this issue but I can try clearing
b
What does this show you?
Copy code
env show Log4jContextSelector
When I run it, I see
Copy code
org.apache.logging.log4j.core.selector.ClassLoaderContextSelector
@Patrick
p
org.apache.logging.log4j.core.osgi.BundleContextSelector
(on a Mac btw)
b
Yep, that's an issue
It tells me you are using an old version of the box binary
The newer versions of
box
have been setting that to the value I have for several versions now
Some one just ran into a similar issue to this yesterday and they had custom PATH stuff pointing their matching to an old folder with an old box.exe
So they were using all new jars and CFML bits, but an old binary, which includes the Java bootstrap where those sys props are set
Run
Copy code
info
to determine where your binary lives that you're calling
@Patrick