Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Unable to extract the trust manager on com.orbitz.okhttp3.internal.Platform@406554a0, sslSocketFactory is class sun.security.ssl.SSLSocketFactoryImpl #150

Closed
dantheman46 opened this issue Aug 2, 2016 · 1 comment

Comments

@dantheman46
Copy link

dantheman46 commented Aug 2, 2016

The problem is when I use Consul in WAR in JBoss Eap 6
JBoss Enterprise Application Platform - Version 6.2.0.GA

consul-client-0.12.3

consul = Consul.builder().withConnectTimeoutMillis(HTTP_CONNECT_TIMEOUT_IN_MILIS).withReadTimeoutMillis(HTTP_RECEIVE_TIMEOUT_IN_MILIS).build();

java.lang.IllegalStateException: Unable to extract the trust manager on com.orbitz.okhttp3.internal.Platform@406554a0, sslSocketFactory is class sun.security.ssl.SSLSocketFactoryImpl
com.orbitz.okhttp3.OkHttpClient.(OkHttpClient.java:187)
com.orbitz.okhttp3.OkHttpClient.(OkHttpClient.java:60)
com.orbitz.okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:718)
com.orbitz.consul.Consul$Builder.createRetrofit(Consul.java:424)
com.orbitz.consul.Consul$Builder.build(Consul.java:368)

@dantheman46
Copy link
Author

dantheman46 commented Aug 2, 2016

Sorry it looks that the problem was with 0.12.3 and it is working properly in 0.12.6

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

No branches or pull requests

1 participant