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

okhttp errors in 3.0.0-RC1 #311

Closed
g-may opened this issue Jun 2, 2016 · 1 comment
Closed

okhttp errors in 3.0.0-RC1 #311

g-may opened this issue Jun 2, 2016 · 1 comment

Comments

@g-may
Copy link
Contributor

g-may commented Jun 2, 2016

I ran into the following error on AlchemyLanguage/Concept Insights using a local clone of 3.0.0-RC1:

Exception in thread "main" java.lang.IllegalStateException: Unable to extract the trust manager on okhttp3.internal.Platform@af543f12, sslSocketFactory is class com.ibm.jsse2.SSLSocketFactoryImpl
    at okhttp3.OkHttpClient.<init>(OkHttpClient.java:187)
    at okhttp3.OkHttpClient.<init>(OkHttpClient.java:60)
    at okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:718)
    at com.ibm.watson.developer_cloud.service.WatsonService.configureHttpClient(WatsonService.java:124)
    at com.ibm.watson.developer_cloud.service.WatsonService.<init>(WatsonService.java:103)
    at com.ibm.watson.developer_cloud.service.AlchemyService.<init>(AlchemyService.java:55)
    at com.ibm.watson.developer_cloud.alchemy.v1.AlchemyLanguage.<init>(AlchemyLanguage.java:54)
    at concept_insights_java.AlchemyRun.main(AlchemyRun.java:12)

I found this post square/okhttp#2323 (comment) and tried upgrading the okhttp dependency from 3.2.0 to 3.3.1 in pom.xml of my clone, and was able to get things working.

@max-vogler
Copy link
Contributor

This is a duplicate of #264. It looks like you're the first to find a solution for it - good job 👍

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

No branches or pull requests

2 participants