Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep getting download error: Caught javax.net.ssl.SSLHandshakeException #18

Open
jcakstins opened this issue Oct 13, 2021 · 3 comments
Open

Comments

@jcakstins
Copy link

jcakstins commented Oct 13, 2021

Hi, I tried installing bloop following MacOs instructions on installation guide but I keep getting the following error.

Downloading https://github.com/coursier/jvm-index/raw/master/index.json
Downloaded https://github.com/coursier/jvm-index/raw/master/index.json
Exception in thread "main" java.lang.Exception: Error while getting https://github.com/coursier/jvm-index/raw/master/index.json: download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://github.com/coursier/jvm-index/raw/master/index.json
	at coursier.jvm.JvmIndex$.$anonfun$load$5(JvmIndex.scala:147)
	at coursier.jvm.JvmIndex$.$anonfun$load$5$adapted(JvmIndex.scala:145)
	at coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
	at coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
	at coursier.util.Task$.wrap(Task.scala:83)
	at coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
	at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
	at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:833)```
@tgodzik
Copy link
Contributor

tgodzik commented Oct 20, 2021

Thanks for reporting! This seems to be related to coursier/coursier#1989, however I am not sure why it even tries to download that index.json file since JDK should already be installed using brew.

As an alternative you could try using a bootstraped coursier jar to install Bloop with coursier as suggested in the comments.

@alexarchambault
Copy link

Not sure what the root of this issue is, but ideally, the Bloop brew formula shouldn't use coursier. It should just download the Bloop binary itself. This is basically what it does currently, but indirectly via coursier. Using coursier here doesn't add or help for anything.

@tgodzik
Copy link
Contributor

tgodzik commented Oct 21, 2021

It's probably a leftover of when we installed bloop-jvm by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants