vanvalenlab / kiosk-imageJ-plugin

An ImageJ Plugin for interacting with the DeepCell Kiosk
Other
3 stars 2 forks source link

SSLHandshakeException when submitting images #28

Closed willgraf closed 3 years ago

willgraf commented 3 years ago

Several users found an SSL handshake issue.

(Fiji Is Just) ImageJ 2.1.0/1.53c; Java 1.8.0_66 [64-bit]; Windows 10 10.0; 119MB of 18258MB (<1%)

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:1509)

    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 okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:367)

    at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:325)

    at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:197)

    at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:249)

    at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:108)

    at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:76)

    at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:245)

    at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)

    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)

    at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:96)

    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)

    at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)

    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)

    at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)

    at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:100)

    at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:197)

    at okhttp3.internal.connection.RealCall.execute(RealCall.kt:148)

    at org.vanvalenlab.KioskHttpClient.sendHttpRequest(KioskHttpClient.java:35)

    at org.vanvalenlab.KioskHttpClient.getJobTypes(KioskHttpClient.java:126)

    at org.vanvalenlab.KioskJobManager.selectJobType(KioskJobManager.java:38)

    at org.vanvalenlab.ImageJobManager.run(ImageJobManager.java:29)

    at ij.IJ.runUserPlugIn(IJ.java:235)

    at ij.IJ.runPlugIn(IJ.java:198)

    at ij.Executer.runCommand(Executer.java:150)

    at ij.Executer.run(Executer.java:68)

    at java.lang.Thread.run(Thread.java:745)

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:1491)

    ... 33 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)

    ... 39 more