Navigation Menu

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

3.0.0.RC1 on Bluemix is causing trust manager issue #264

Closed
jconallen opened this issue Apr 29, 2016 · 5 comments
Closed

3.0.0.RC1 on Bluemix is causing trust manager issue #264

jconallen opened this issue Apr 29, 2016 · 5 comments

Comments

@jconallen
Copy link

When trying to use the 3.0.0.RC1 all dependencies jar, everything runs fine locally. But when I try to deploy to a Liberty runtime on Bluemix the following error

java.lang.IllegalStateException: Unable to extract the trust manager on okhttp3.internal.Platform@5973f0c2, sslSocketFactory is class com.ibm.jsse2.SSLSocketFactoryImpl
at okhttp3.OkHttpClient.(OkHttpClient.java:187)
at okhttp3.OkHttpClient.(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.(WatsonService.java:103)
at com.ibm.watson.developer_cloud.language_translation.v2.LanguageTranslation.(LanguageTranslation.java:80)
at com.ibm.bluemix.MessageMaker.GetMessage(MessageMaker.java:10)
at com.ibm._jsp._index._jspService(_index.java:96)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:101)
at [internal classes]

This feels like an issue with the Bluemix JVM and the library's TrustManager.

My current workaround is to use the previous version of the library (2.10), which works fine both locally and on Bluemix.

@jconallen
Copy link
Author

Is is possible, in the meantime, to put a link to the current GA version of this library in the Readme page. It is actually kind of hard to find. Thanks.

@germanattanasio
Copy link
Contributor

We don't have a 3.0.X GA version yet. I think we will do a release next week that will include the fix for this issue if possible

@jconallen
Copy link
Author

OK, I was just suggesting the 2.x GA release get a link in the readme, so new people wanting a GA library can easily find it.

@priand
Copy link

priand commented Jun 1, 2016

Any news on this issue? We just faced it as well.

@max-vogler
Copy link
Contributor

Looks like the excellent @g-may found a solution for it in #311

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.

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

No branches or pull requests

4 participants