hellonico / origami

Lowest barrier of entry to Image Processing, Computer Vision and Neural Networks on the JavaVM
https://hellonico.github.io/origami-docs/#/
Eclipse Public License 1.0
122 stars 7 forks source link

Issues installing #15

Closed Dwaynekj closed 1 year ago

Dwaynekj commented 5 years ago

Hello, Tried loading your project with a few different methods with no success. I'm probably doing something silly, so any help would be great as I'm looking through your book.

Report

I tried with lein deps via the hellocv example in the book (chapter 1) got this

Leiningen 2.8.3 on Java 1.8.0_60 Java HotSpot(TM) 64-Bit Server VM

Could not find artifact origami:origami:jar:4.0.0-3 in central (https://repo1.maven.org/maven2/)
Could not find artifact origami:origami:jar:4.0.0-3 in clojars (https://repo.clojars.org/)
Could not transfer artifact origami:origami:jar:4.0.0-3 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Could not transfer artifact origami:origami:pom:4.0.0-3 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This could be due to a typo in :dependencies, file system permissions, or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.

Try accessing the maven repo via the clojure cli using the deps.edn in this github README got a similar error. (BTW I think your example is missing a })

Error building classpath. Failed to read artifact descriptor for origami:origami:jar:4.0.0-0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for origami:origami:jar:4.0.0-0
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)

Lastly decided to not use Maven and try the git sha with the clojure cli and got this (but I'm new to cli so my deps.edn might be wrong

Clojure 1.10.0

{:deps
 {hellonico/origami
  {:git/url "https://github.com/hellonico/origami" :sha "649dad0a1adcc3971d201130c1a9a0581a75dd51"}}}
Checking out: https://github.com/hellonico/origami at 649dad0a1adcc3971d201130c1a9a0581a75dd51
Error building classpath. Manifest type not detected when finding deps for hellonico/origami in coordinate {:git/url "https://github.com/hellonico/origami", :sha "649dad0a1adcc3971d201130c1a9a0581a75dd51"}

Extra Info

I have no Proxy configured, access to the directory I'm working in. I'm able to download other packages with lein and clj. What's the easiest way to get going (with a preference towards clj)?

hellonico commented 5 years ago

oh ...i need to update the ssl certificates of my server hosting the dependencies

i will do that asap but may take a day or two ...

Dwaynekj commented 5 years ago

thanks! I'll wait for an update

hellonico commented 5 years ago

certificates have been updated. Sorry for delay, had no computer access for some time. Let me know if it works for you.

Dwaynekj commented 5 years ago

thanks

Dwaynekj commented 5 years ago

Still experiencing the same issue. Can you send me an example deps.edn file to try

hellonico commented 5 years ago

Working samples including deps.clj setup is located here: https://github.com/hellonico/origami_samples

I was actually using maven style dependencies, and only tried with the git/sha line today, and got the same error as yours in the first place.

I added a new deps.edn to the main origami repository on master, and now from your project you can use a deps.edn file as below:

{:mvn/repos
 {
    "vendredi" {:url "https://repository.hellonico.info/repository/hellonico/"}
 }
 :deps {
    origami {:git/url "https://github.com/hellonico/origami" 
                      :deps/manifest :mvn 
                      :sha "816ad908efac02050581f46a1763e1f98ce0695e"}
 }
}
Dwaynekj commented 5 years ago

thanks! We are getting there. Now its just opencv

Checking out: https://github.com/hellonico/origami at 816ad908efac02050581f46a1763e1f98ce0695e
Downloading: origami/origami/maven-metadata.xml from https://repo.clojars.org/
Downloading: origami/origami/0.1.5/origami-0.1.5.pom from https://repo.clojars.org/
Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)
    at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:218)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invokeStatic(make_classpath.clj:59)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invoke(make_classpath.clj:52)
    at clojure.tools.deps.alpha.script.make_classpath$run.invokeStatic(make_classpath.clj:70)
    at clojure.tools.deps.alpha.script.make_classpath$run.invoke(make_classpath.clj:64)
    at clojure.tools.deps.alpha.script.make_classpath$_main.invokeStatic(make_classpath.clj:109)
    at clojure.tools.deps.alpha.script.make_classpath$_main.doInvoke(make_classpath.clj:84)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
    ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
hellonico commented 5 years ago

Hmmm ... Can you send me your deps.edn ? It's pulling out the wrong (an old) origami from the wrong repository.

Downloading: origami/origami/0.1.5/origami-0.1.5.pom from https://repo.clojars.org/
Dwaynekj commented 5 years ago

I used the same one you sent.

{:mvn/repos
 {
    "vendredi" {:url "https://repository.hellonico.info/repository/hellonico/"}
 }
 :deps {
    origami {:git/url "https://github.com/hellonico/origami" 
                      :deps/manifest :mvn 
                      :sha "816ad908efac02050581f46a1763e1f98ce0695e"}
 }
}
Dwaynekj commented 5 years ago

oh wait. One sec

hellonico commented 5 years ago

ah ... maybe create a new folder ? or remove the .cpcache folder ... I kind of remember the clj local cache is not updated properly sometimes.

Dwaynekj commented 5 years ago

I removed my entire ~/.clojure folder and recreated a new project folder with just the aforementioned deps.edn

Here's the new output (sorry this is a pain)

Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)
    at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:218)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invokeStatic(make_classpath.clj:59)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invoke(make_classpath.clj:52)
    at clojure.tools.deps.alpha.script.make_classpath$run.invokeStatic(make_classpath.clj:70)
    at clojure.tools.deps.alpha.script.make_classpath$run.invoke(make_classpath.clj:64)
    at clojure.tools.deps.alpha.script.make_classpath$_main.invokeStatic(make_classpath.clj:109)
    at clojure.tools.deps.alpha.script.make_classpath$_main.doInvoke(make_classpath.clj:84)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
    ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:365)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:583)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:259)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:498)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
    ... 27 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1506)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
    at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:296)
    at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:252)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:67)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:453)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:360)
    ... 32 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1488)
    ... 55 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    ... 61 moreError building classpath. Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)
    at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:218)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invokeStatic(make_classpath.clj:59)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invoke(make_classpath.clj:52)
    at clojure.tools.deps.alpha.script.make_classpath$run.invokeStatic(make_classpath.clj:70)
    at clojure.tools.deps.alpha.script.make_classpath$run.invoke(make_classpath.clj:64)
    at clojure.tools.deps.alpha.script.make_classpath$_main.invokeStatic(make_classpath.clj:109)
    at clojure.tools.deps.alpha.script.make_classpath$_main.doInvoke(make_classpath.clj:84)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
    ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:365)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:583)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:259)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:498)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
    ... 27 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1506)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
    at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:296)
    at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:252)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:67)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:453)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:360)
    ... 32 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1488)
    ... 55 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    ... 61 more
Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:3.3.1
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)
    at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:218)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invokeStatic(make_classpath.clj:59)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invoke(make_classpath.clj:52)
    at clojure.tools.deps.alpha.script.make_classpath$run.invokeStatic(make_classpath.clj:70)
    at clojure.tools.deps.alpha.script.make_classpath$run.invoke(make_classpath.clj:64)
    at clojure.tools.deps.alpha.script.make_classpath$_main.invokeStatic(make_classpath.clj:109)
    at clojure.tools.deps.alpha.script.make_classpath$_main.doInvoke(make_classpath.clj:84)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:422)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:224)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:201)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:261)
    ... 24 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact opencv:opencv:pom:3.3.1 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:365)
    at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:75)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:583)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:259)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:498)
    at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:399)
    ... 27 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
    at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1506)
    at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
    at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
    at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
    at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:164)
    at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:296)
    at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:252)
    at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:67)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:453)
    at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:360)
    ... 32 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    at sun.security.validator.Validator.validate(Validator.java:260)
    at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1488)
    ... 55 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    ... 61 more
Dwaynekj commented 5 years ago

btw, can dep.edn be a .clj file extension

hellonico commented 5 years ago

Looking into it now ... it your case, it is still going to the wrong repository to the wrong version ... :/

hellonico commented 5 years ago
SuperPinkicious:hellocv niko$ clj 
Downloading: origami/origami/maven-metadata.xml from https://repo.clojars.org/
Downloading: origami/origami/maven-metadata.xml from https://repository.hellonico.info/repository/hellonico/
Downloading: origami/origami/4.0.0-3/origami-4.0.0-3.pom from https://repository.hellonico.info/repository/hellonico/
Downloading: origami/origami/4.0.0-3/origami-4.0.0-3.jar from https://repository.hellonico.info/repository/hellonico/
Clojure 1.10.0
(require
    '[opencv4.utils :as u]
    '[opencv4.core :refer :all])
... 
nil
user=> *clojure-version*
{:major 1, :minor 10, :incremental 0, :qualifier nil}
hellonico commented 5 years ago

Actually, looking at it, clj does not try to clone at all with

:deps/manifest :mvn

Can you try with a deps.edn like this:

{:mvn/repos
 {
    "vendredi" {:url "https://repository.hellonico.info/repository/hellonico/"}
 }
 :deps {
    origami {:git/url "https://github.com/hellonico/origami" 
             :deps/manifest :deps
             :sha "0e99adbc88ecf23be318b5ffb789825d5d491cb6"}
 }
}

I found the extra:

 :deps/manifest :deps

in the following clojurians thread: https://clojurians-log.clojureverse.org/clojure/2018-02-02

hellonico commented 5 years ago

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) ... 61 more

by the way, that scary long SSL exception is due to the fact the custom repository defined at the time was running on HTTP, which was ok with the at the time clojure tooling, but is not anymore; we need to use https to retrieve dependencies from any repository.

hellonico commented 5 years ago

Was trying on OSX, just tested on a brand new linux machine without problems ... Any updates on your side ?

As a side note, simply using

lein new clj-opencv hellocv
cd hellocv 
lein run
# or
clj -m opencv4.ok

Should work now that the original problem with SSL certificates has been solved.

Dwaynekj commented 5 years ago

Weird, Possibly my setup is doing something? Thanks for the info on the SSL error, makes sense

with clj (installed via Homebrew)

Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0

with Lein

Warning: refactor-nrepl needs to run in the context of a project.
Warning: refactor-nrepl middleware won't be activated.
Warning: refactor-nrepl needs to run in the context of a project.
Warning: refactor-nrepl middleware won't be activated.
Template resource 'leiningen/new/clj_opencv/output/.gitkeep' not found.
Dwaynekj commented 5 years ago

I will try the docker one

hellonico commented 5 years ago

Weird, Possibly my setup is doing something? Thanks for the info on the SSL error, makes sense

with clj (installed via Homebrew)

Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0

with Lein

Warning: refactor-nrepl needs to run in the context of a project.
Warning: refactor-nrepl middleware won't be activated.
Warning: refactor-nrepl needs to run in the context of a project.
Warning: refactor-nrepl middleware won't be activated.
Template resource 'leiningen/new/clj_opencv/output/.gitkeep' not found.

could you temporarily move your $HOME/.m2 folder to $HOME/.m2.bak (this is where dependencies and repositories metadata are stored)

Related to outdated metadata, that error with the lein template is old:

Template resource 'leiningen/new/clj_opencv/output/.gitkeep' not found.

Also lein is now on version 2.9.0

Leiningen 2.9.0 on Java 1.8.0_191 Java HotSpot(TM) 64-Bit Server VM

As for clj I am using this one:

lrwxr-xr-x  1 niko  wheel  36 Feb 27 11:22 /usr/local/bin/clj -> ../Cellar/clojure/1.10.0.414/bin/clj
Dwaynekj commented 5 years ago

Here's some more info

[Java Image Processing] lein -v
Leiningen 2.9.1 on Java 1.8.0_60 Java HotSpot(TM) 64-Bit Server VM
[Java Image Processing] rm -rf ~/.clojure ~/.m2
[Java Image Processing] ll $(which clj)
lrwxr-xr-x  1 Dwaynekj  admin    36B Feb 23 16:34 /usr/local/bin/clj -> ../Cellar/clojure/1.10.0.414/bin/clj
[Java Image Processing] ls
origami_samples trial
[Java Image Processing] cd trial
[trial] cat deps.edn
{:mvn/repos
 {
    "vendredi" {:url "https://repository.hellonico.info/repository/hellonico/"}
 }
 :deps {
    origami {:git/url "https://github.com/hellonico/origami"
             :deps/manifest :deps
             :sha "0e99adbc88ecf23be318b5ffb789825d5d491cb6"}
 }
}
[trial] clj
Downloading: org/clojure/clojure/1.10.0/clojure-1.10.0.pom from https://repo1.maven.org/maven2/
Downloading: org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.pom from https://repo1.maven.org/maven2/
Downloading: org/clojure/pom.contrib/0.2.2/pom.contrib-0.2.2.pom from https://repo1.maven.org/maven2/
Downloading: org/clojure/core.specs.alpha/0.2.44/core.specs.alpha-0.2.44.pom from https://repo1.maven.org/maven2/
Downloading: org/scijava/native-lib-loader/2.3.1/native-lib-loader-2.3.1.pom from https://repo1.maven.org/maven2/
Downloading: org/scijava/pom-scijava/23.2.0/pom-scijava-23.2.0.pom from https://repo1.maven.org/maven2/
Downloading: org/scijava/pom-scijava-base/4.1.0/pom-scijava-base-4.1.0.pom from https://repo1.maven.org/maven2/
Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:276)
    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:192)
    at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:253)
    at clojure.tools.deps.alpha.extensions.maven$eval687$fn__689.invoke(maven.clj:96)
    at clojure.lang.MultiFn.invoke(MultiFn.java:244)
    at clojure.tools.deps.alpha$expand_deps.invokeStatic(alpha.clj:189)
    at clojure.tools.deps.alpha$expand_deps.invoke(alpha.clj:170)
    at clojure.tools.deps.alpha$resolve_deps.invokeStatic(alpha.clj:236)
    at clojure.tools.deps.alpha$resolve_deps.invoke(alpha.clj:218)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invokeStatic(make_classpath.clj:59)
    at clojure.tools.deps.alpha.script.make_classpath$create_classpath.invoke(make_classpath.clj:52)
    at clojure.tools.deps.alpha.script.make_classpath$run.invokeStatic(make_classpath.clj:70)
    at clojure.tools.deps.alpha.script.make_classpath$run.invoke(make_classpath.clj:64)
    at clojure.tools.deps.alpha.script.make_classpath$_main.invokeStatic(make_classpath.clj:109)
    at clojure.tools.deps.alpha.script.make_classpath$_main.doInvoke(make_classpath.clj:84)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.core$apply.invokeStatic(core.clj:665)
    at clojure.main$main_opt.invokeStatic(main.clj:491)
    at clojure.main$main_opt.invoke(main.clj:487)
    at clojure.main$main.invokeStatic(main.clj:598)
    at clojure.main$main.doInvoke(main.clj:561)
    at clojure.lang.RestFn.applyTo(RestFn.java:137)
    at clojure.lang.Var.applyTo(Var.java:705)
    at clojure.main.main(main.java:37)

I will try on a different machine tomorrow.

Dwaynekj commented 5 years ago

The docker version worked for the examples that didn't require X11 (which makes sense as I was running the following inside the container

lein run -m opencv4.ok
lein run -m opencv4.simple
lein run -m opencv4.tutorial
lein run -m opencv4.webcam
hellonico commented 5 years ago

Great. Finally.

I still don't know why you can't download the opencv jar :/

Error building classpath. Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for opencv:opencv:jar:4.0.0-0

Looking at it ...

hellonico commented 5 years ago

Note that the docker image is really not doing anything special, but has a clean context ... and so no cache.

hellonico commented 5 years ago

I've added the clj/clojure binary to the docker image in the meantime. And updated the readme:

https://github.com/hellonico/origami_samples/commit/96af591fe5f69c1fcbbdff17e15e2ae1a9f7cae8

Dwaynekj commented 5 years ago

thanks! That will work for now. I'll follow up if I find anything interesting on why maven is misbehaving

hellonico commented 5 years ago

Added some more docker docs:

# default run with lein
docker run -it my-origami-app lein run

# official image and custom src folder using clj
docker run -it -v <path_to_local_src>:/usr/src/app/src  my-origami-app clojure -m <your_custom_namespace>

# start the origami  gorilla based notebook
docker run -it -p10000:10000 hellonico/origami lein notebook
hellonico commented 5 years ago

thanks! That will work for now. I'll follow up if I find anything interesting on why maven is misbehaving

Any luck ? Could that have been a network problem ?

Dwaynekj commented 5 years ago

@hellonico Thanks for following up. I'll try again in a bit today

Dwaynekj commented 5 years ago

Sorry for the delay, I'll follow up today

hellonico commented 5 years ago

sure. ping me if u have problems so we can debug this together

hellonico commented 5 years ago

adding for reference: https://stackoverflow.com/questions/6642146/maven-failed-to-read-artifact-descriptor

Dwaynekj commented 5 years ago

Hey @hellonico I'm confused by that stack overflow article. Where would I do a mvn -U clean install (i have a maven binary). Should I do add a whitelist in my ~/.m2/setting.xml as suggested?

hellonico commented 5 years ago

You still having the same problem downloading the jar ?

Dwaynekj commented 5 years ago

Hey yes! I was able to do the demos with docker until I got to webcam stuff. Is it possible I need to add your cert as mentioned here

https://stackoverflow.com/questions/9619030/resolving-javax-net-ssl-sslhandshakeexception-sun-security-validator-validatore

If you some time today, or this week I'm open to a gitter/slack/skype chat

hellonico commented 5 years ago

Hmmm .. at the start of this question, my SSL certificates expired but that is fixed now. You should really just need to fix the cache of the local maven repository... (by deleting the $HOME/.m2 folder)

Could you try from a different machine ?

Dwaynekj commented 5 years ago

I figured it out!! I needed to update my JDK based on this https://stackoverflow.com/a/47952835

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
[trial] java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
hellonico commented 5 years ago

oh ... that is very very awesome.

Dwaynekj commented 5 years ago

Thanks for you assistance here, it might be worth pointing out JDK deps in your README as the SSL issue may affect others

hellonico commented 5 years ago

Well, we all learned something :)

e5a0a34

hellonico commented 5 years ago

Thank you for the help !

Dwaynekj commented 5 years ago

Awesome!

patrickaroo commented 4 years ago

Sorry to bring up an issue from the past, but having the same problem now.

Could not transfer artifact hellonico:lein-gorilla:pom:0.4.2 from/to vendredi (https://repository.hellonico.info/repository/hellonico/): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Maybe the cert expired.

hellonico commented 4 years ago

hi

I am going to check the certificates in a few minutes but i just renewed them two weeks ago

could you tell me which jdk you are using ?

hellonico commented 4 years ago

Seems to work with Leiningen ok ...

SuperPinkicious:origami-fun niko$ lein repl
Retrieving hellonico/lein-gorilla/0.4.2/lein-gorilla-0.4.2.pom from vendredi
Retrieving hellonico/gorilla-repl/0.4.1/gorilla-repl-0.4.1.pom from vendredi
Retrieving hellonico/lein-gorilla/0.4.2/lein-gorilla-0.4.2.jar from vendredi
Retrieving hellonico/gorilla-repl/0.4.1/gorilla-repl-0.4.1.jar from vendredi
nREPL server started on port 64327 on host 127.0.0.1 - nrepl://127.0.0.1:64327
patrickaroo commented 4 years ago

I'm running 1.8.0... is that maybe the problem?

hellonico commented 4 years ago

Hmm ... no. I was just trying with it.

SuperPinkicious:repository niko$ java -version
openjdk version "1.8.0_202"
OpenJDK Runtime Environment (Zulu 8.36.0.1-CA-macosx) (build 1.8.0_202-b05)
OpenJDK 64-Bit Server VM (Zulu 8.36.0.1-CA-macosx) (build 25.202-b05, mixed mode)

Linux ? OSX?

patrickaroo commented 4 years ago

OSX

hellonico commented 4 years ago

I actually forgot about that one: https://github.com/hellonico/origami#lets-encrypt-certificates

Which minor version of the JDK8 ?