Supla desktop API client

byniom
Posts: 336
Joined: Sat Jan 07, 2017 1:17 pm

Sun Aug 18, 2019 7:17 pm

Podesłałem mu ale tutaj też wklejam.


21:10:25.340 [griffon-pool-1-thread-1] INFO o.s.gui.io.InputOutputServiceImpl - Supla home dir is `C:\Users\zbyszek\.supla`
21:10:35.739 [JavaFX Application Thread] INFO o.s.gui.preferences.TokenServiceImpl - Saving new token, SHA 942479728
21:10:38.890 [griffon-pool-1-thread-1] ERROR org.supla.gui.SplashScreenController - Generic exception occurred!
java.lang.NullPointerException: null
at pl.grzeslowski.jsupla.api.internal.GateStateImpl.<init>(GateStateImpl.java:28)
at pl.grzeslowski.jsupla.api.internal.GateChannelImpl.<init>(GateChannelImpl.java:25)
at pl.grzeslowski.jsupla.api.internal.ChannelDispatcher.onControllingTheGate(ChannelDispatcher.java:23)
at pl.grzeslowski.jsupla.api.internal.ChannelDispatcher.onControllingTheGate(ChannelDispatcher.java:7)
at pl.grzeslowski.jsupla.api.internal.ChannelFunctionDispatcher.dispatch(ChannelFunctionDispatcher.java:29)
at pl.grzeslowski.jsupla.api.internal.ChannelApiImpl.mapToChannel(ChannelApiImpl.java:91)
at pl.grzeslowski.jsupla.api.internal.ChannelApiImpl.findChannel(ChannelApiImpl.java:60)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at pl.grzeslowski.jsupla.api.internal.DeviceApiImpl.mapToDeviceWithChannels(DeviceApiImpl.java:52)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at pl.grzeslowski.jsupla.api.internal.DeviceApiImpl.findDevices(DeviceApiImpl.java:42)
at org.supla.gui.api.SuplaDeviceApi.findAllDevice(SuplaDeviceApi.kt:24)
at org.supla.gui.SplashScreenController.downloadDevices(SplashScreenController.kt:163)
at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:156)
at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
mariusz_70
Posts: 48
Joined: Thu Nov 10, 2016 5:51 pm

Sun Aug 18, 2019 7:26 pm

U mnie aplikacja działa z oficjalnym serwerem , ale jak chcę zintegrować z maliną wywala "Generic error occurred"
Simono
Posts: 316
Joined: Mon Sep 17, 2018 5:26 pm

Sun Aug 18, 2019 7:28 pm

Ciekawe, jutro sprawdzę na swojej malinie.
magx2
Posts: 314
Joined: Wed May 17, 2017 1:27 pm
Contact:

Sun Aug 18, 2019 7:49 pm

Dzięki za logi. Widzę już gdzie jest błąd.

Co do łączenia się z serwerem na malwinie. Brakuje ci certyfikatów dla Javy i ona nie może uwierzytelnić twojego certyfikatu
User avatar
fracz
Posts: 1598
Joined: Fri Oct 28, 2016 10:56 pm
Location: Rybna

Sun Aug 18, 2019 10:28 pm

Jakieś screeny?
magx2
Posts: 314
Joined: Wed May 17, 2017 1:27 pm
Contact:

Sun Aug 18, 2019 11:12 pm

fracz wrote:
Sun Aug 18, 2019 10:28 pm
Jakieś screeny?
A może warto wejść na repo ;)

@Reszta
Poprawiona wersja 1.0.1 jest już wydana https://github.com/SUPLA/experimental-j ... I/releases
byniom
Posts: 336
Joined: Sat Jan 07, 2017 1:17 pm

Mon Aug 19, 2019 6:44 am

u mnie błąd jest nadal.
magx2
Posts: 314
Joined: Wed May 17, 2017 1:27 pm
Contact:

Mon Aug 19, 2019 6:47 am

Windows 7? Laczysz się z cloudem czy własnym serwerem?


Jka możesz to podeślij jeszcze raz logib
tomekk87
Posts: 35
Joined: Fri Aug 02, 2019 12:19 pm

Mon Aug 19, 2019 7:21 am

U mnie również błąd pod Windows 10 Pro:

Code: Select all

API error occurred! 
Got error while executing '/findServerInfo 'API call!.
Mam suplę zainstalowaną w DockerContainer na Qnapie

oto log programu:

Code: Select all

09:13:13.024 [griffon-pool-1-thread-1] INFO  o.s.gui.io.InputOutputServiceImpl - Supla home dir is `C:\Users\krawc\.supla`
09:13:25.801 [JavaFX Application Thread] INFO  o.s.gui.preferences.TokenServiceImpl - Saving new token, SHA 1783994697
09:13:26.543 [griffon-pool-1-thread-3] ERROR org.supla.gui.SplashScreenController - API exception occurred!
pl.grzeslowski.jsupla.api.ApiException: Got error while executing `/findServerInfo` API call!.
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:26)
	at org.supla.gui.api.SuplaServerApi.findServerInfo(SuplaServerApi.kt:23)
	at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:143)
	at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
	at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
	at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
	at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.swagger.client.ApiException: 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 io.swagger.client.ApiClient.execute(ApiClient.java:844)
	at io.swagger.client.api.ServerApi.getServerInfoWithHttpInfo(ServerApi.java:136)
	at io.swagger.client.api.ServerApi.getServerInfo(ServerApi.java:123)
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:19)
	... 15 common frames omitted
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:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	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 com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.Call.getResponse(Call.java:286)
	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
	at com.squareup.okhttp.Call.execute(Call.java:80)
	at io.swagger.client.ApiClient.execute(ApiClient.java:840)
	... 18 common frames omitted
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:1496)
	... 38 common frames omitted
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:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
	... 44 common frames omitted
09:13:30.531 [griffon-pool-1-thread-4] ERROR org.supla.gui.SplashScreenController - API exception occurred!
pl.grzeslowski.jsupla.api.ApiException: Got error while executing `/findServerInfo` API call!.
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:26)
	at org.supla.gui.api.SuplaServerApi.findServerInfo(SuplaServerApi.kt:23)
	at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:143)
	at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
	at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
	at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
	at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.swagger.client.ApiException: 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 io.swagger.client.ApiClient.execute(ApiClient.java:844)
	at io.swagger.client.api.ServerApi.getServerInfoWithHttpInfo(ServerApi.java:136)
	at io.swagger.client.api.ServerApi.getServerInfo(ServerApi.java:123)
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:19)
	... 15 common frames omitted
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:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	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 com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.Call.getResponse(Call.java:286)
	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
	at com.squareup.okhttp.Call.execute(Call.java:80)
	at io.swagger.client.ApiClient.execute(ApiClient.java:840)
	... 18 common frames omitted
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:1496)
	... 38 common frames omitted
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:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
	... 44 common frames omitted
09:13:31.092 [griffon-pool-1-thread-1] ERROR org.supla.gui.SplashScreenController - API exception occurred!
pl.grzeslowski.jsupla.api.ApiException: Got error while executing `/findServerInfo` API call!.
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:26)
	at org.supla.gui.api.SuplaServerApi.findServerInfo(SuplaServerApi.kt:23)
	at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:143)
	at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
	at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
	at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
	at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.swagger.client.ApiException: 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 io.swagger.client.ApiClient.execute(ApiClient.java:844)
	at io.swagger.client.api.ServerApi.getServerInfoWithHttpInfo(ServerApi.java:136)
	at io.swagger.client.api.ServerApi.getServerInfo(ServerApi.java:123)
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:19)
	... 15 common frames omitted
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:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	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 com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.Call.getResponse(Call.java:286)
	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
	at com.squareup.okhttp.Call.execute(Call.java:80)
	at io.swagger.client.ApiClient.execute(ApiClient.java:840)
	... 18 common frames omitted
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:1496)
	... 38 common frames omitted
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:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
	... 44 common frames omitted
09:13:31.293 [griffon-pool-1-thread-2] ERROR org.supla.gui.SplashScreenController - API exception occurred!
pl.grzeslowski.jsupla.api.ApiException: Got error while executing `/findServerInfo` API call!.
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:26)
	at org.supla.gui.api.SuplaServerApi.findServerInfo(SuplaServerApi.kt:23)
	at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:143)
	at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
	at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
	at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
	at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.swagger.client.ApiException: 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 io.swagger.client.ApiClient.execute(ApiClient.java:844)
	at io.swagger.client.api.ServerApi.getServerInfoWithHttpInfo(ServerApi.java:136)
	at io.swagger.client.api.ServerApi.getServerInfo(ServerApi.java:123)
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:19)
	... 15 common frames omitted
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:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	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 com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.Call.getResponse(Call.java:286)
	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
	at com.squareup.okhttp.Call.execute(Call.java:80)
	at io.swagger.client.ApiClient.execute(ApiClient.java:840)
	... 18 common frames omitted
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:1496)
	... 38 common frames omitted
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:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
	... 44 common frames omitted
09:14:37.278 [griffon-pool-1-thread-1] INFO  o.s.gui.io.InputOutputServiceImpl - Supla home dir is `C:\Users\krawc\.supla`
09:14:39.157 [griffon-pool-1-thread-2] ERROR org.supla.gui.SplashScreenController - API exception occurred!
pl.grzeslowski.jsupla.api.ApiException: Got error while executing `/findServerInfo` API call!.
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:26)
	at org.supla.gui.api.SuplaServerApi.findServerInfo(SuplaServerApi.kt:23)
	at org.supla.gui.SplashScreenController.checkServerInfo(SplashScreenController.kt:143)
	at org.supla.gui.SplashScreenController.initNoExceptionControl(SplashScreenController.kt:137)
	at org.supla.gui.SplashScreenController.access$initNoExceptionControl(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:56)
	at org.supla.gui.SplashScreenController$initOutsideUi$1$1.invoke(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController.runWithExceptionCheck(SplashScreenController.kt:87)
	at org.supla.gui.SplashScreenController.access$runWithExceptionCheck(SplashScreenController.kt:43)
	at org.supla.gui.SplashScreenController$initOutsideUi$1.run(SplashScreenController.kt:56)
	at org.codehaus.griffon.runtime.core.threading.AbstractUIThreadManager.lambda$runOutsideUIAsync$1(AbstractUIThreadManager.java:115)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.swagger.client.ApiException: 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 io.swagger.client.ApiClient.execute(ApiClient.java:844)
	at io.swagger.client.api.ServerApi.getServerInfoWithHttpInfo(ServerApi.java:136)
	at io.swagger.client.api.ServerApi.getServerInfo(ServerApi.java:123)
	at pl.grzeslowski.jsupla.api.internal.ServerInfoApiImpl.findServerInfo(ServerInfoApiImpl.java:19)
	... 15 common frames omitted
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:1514)
	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
	at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
	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 com.squareup.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:192)
	at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
	at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
	at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
	at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
	at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
	at com.squareup.okhttp.Call.getResponse(Call.java:286)
	at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
	at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
	at com.squareup.okhttp.Call.execute(Call.java:80)
	at io.swagger.client.ApiClient.execute(ApiClient.java:840)
	... 18 common frames omitted
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:1496)
	... 38 common frames omitted
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:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
	... 44 common frames omitted
Pozdrawiam
User avatar
fracz
Posts: 1598
Joined: Fri Oct 28, 2016 10:56 pm
Location: Rybna

Mon Aug 19, 2019 8:38 am

magx2 wrote:
Sun Aug 18, 2019 11:12 pm
fracz wrote:
Sun Aug 18, 2019 10:28 pm
Jakieś screeny?
A może warto wejść na repo ;)
Na Ubuntu nie działa :cry:
Post Reply