-
Notifications
You must be signed in to change notification settings - Fork 533
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
[All Services] IBM Java results in only the 3DES cipher suite being choosen #610
Comments
A lightweight way to figure out if code is running on IBM Java is by looking at the Java System Property if ( System.getProperty("java.vm.name").equals("IBM J9 VM") ) { ... } |
What's the output of that if running in Android? |
I don't have an easy way to try it on Android. It most certainly is not if ( "IBM J9 VM".equals(System.getProperty("java.vm.name")) ) { ... } |
The OkHttpClient issue square/okhttp#3173 has been closed by this pull request square/okhttp#3218 being merged into |
@bruceadams I tried the solution from this gist but I'm still seeing the error. Here is what I'm doing: https://gist.github.com/germanattanasio/3f0e7458328e817b4e63952ffaa93da2 |
@germanattanasio - what's update on this issue |
Please can anyone provide me about the details of how to tackle this issue, I have a submission of my final year project this week but this error is not letting us test our project . Thanks. |
@ShubhamSharmaCSE The easiest workaround is to use OpenJDK or Oracle Java instead of IBM Java. Can you do that? |
@bruceadams how can this be done? can this be done even when the project is hosted on bluemix? I also have a presentation of my project next tuesday... hopefully there will be a way to get it working again. Thank you! |
You might try moving back to the previous buildpack until the issue is resolved. For example, I believe the previous liberty buildpack uses a slightly older 1.8 IBM JRE in which this issue does not occur. I'm not sure about other non-liberty buildpacks but that's what changed and what introduced the issue in my own experience. You can view the buildpacks from the cf cli by running |
Thank you @craigeebach ! Works perfect for me |
I have resolved it by using OpenJDK instead of IBM JDK. |
A little experiment, https://github.com/bruceadams/j9experiment, that demonstrates that the square/okhttp#3173 fix does successfully fix this issue. |
I also faced the issue after our instance moved to Liberty buildback 3.8. This issue is resolved after using previous buildpack of 3.7 |
I used 3.7.0 version of conversation, but the issue still persists. com.ibm.watson.developer_cloud conversation 3.7.0Is there anything wrong i am doing here? |
You need to use 3.7.1 |
Hi all, I still have this issue when deploying to Watson. In Netbeans it seems to work fine though.. Below the error but let me first give you the versions of the POM file as I am using 3.7.1
|
I used openjdk with 3.6.0 version of conversation to resolve this.
…On Wed, Apr 5, 2017 at 8:23 PM, pieterjanverbruggen < ***@***.***> wrote:
Hi all,
I still have this issue when deploying to Watson. In Netbeans it seems to
work fine though.. Below the error but let me first give you the versions
of the POM file
<parent>
<groupId>net.wasdev.maven.parent</groupId>
<artifactId>java7-parent</artifactId>
<version>1.4</version>
</parent>
<groupId>net.wasdev.wlp.sample</groupId>
<artifactId>MyFirstDutchChatbot</artifactId>
<version>1.0</version>
<packaging>war</packaging>
<name>MyApp</name>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>https://raw.github.com/WASdev/sample.servlet/master/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_3.0_spec</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
**<groupId>com.ibm.watson.developer_cloud</groupId>
<artifactId>java-sdk</artifactId>
<version>3.7.1</version>**
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160212</version>
</dependency>
<dependency>
<groupId>com.microsoft.ews-java-api</groupId>
<artifactId>ews-java-api</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
Error 500: java.lang.RuntimeException: java.net.UnknownServiceException:
Unable to find acceptable protocols. isFallback=false,
modes=[ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA,
TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_3DES_EDE_CBC_SHA],
tlsVersions=[TLS_1_2, TLS_1_1, TLS_1_0], supportsTlsExtensions=true),
ConnectionSpec(cipherSuites=[TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,
TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA,
TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_3DES_EDE_CBC_SHA],
tlsVersions=[TLS_1_0], supportsTlsExtensions=true), ConnectionSpec()],
supported protocols=[TLSv1, TLSv1.1, TLSv1.2]
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHWJIWFOeOyLI5rLl0YOvOKm6hYzRuPKks5rs6rugaJpZM4MYOUY>
.
|
How do you switch to openjdk, is it via Maven and/or a setting on Bluemix? |
Not in maven. Need specify it as part of manifest.yml under env section
when pushing the app to Bluemix.
JVM: openjdk
And also specified it as environment variable in Runtime tab of the
application on bluemix
Hope it helps.
…On 06-Apr-2017 12:38, "pieterjanverbruggen" ***@***.***> wrote:
What is the Maven dependency for openjdk?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHWJIYCzIG3b1OfNwgy9f5fBhKXAofx0ks5rtI94gaJpZM4MYOUY>
.
|
@sacpopli My apologies for my ignorance regarding manifest files, I will try to not change this into a stack overflow post but could you perhaps point out on what I have to change in my manifest file? Based on what I could find I came up with the below but it is not accepted. I do want to avoid to set the open jdk as variable in the runtime properties. I want to put it in my manifest..
|
No issues.
I have a very simple manifest.yml for my application. I mentioned openjdk
like below.
env:
JVM: openjdk
applications:
- path: .
memory: 512M
instances: 1
That is all. I had to edit the environment variable in the Environment tab
of application because it used to retain the Liberty pack environment
variable from my earlier manifest.yml version. Please do ensure that after
your app is updated in the Bluemix, what are the environment variables
mentioned there.
cheers
…On Thu, Apr 6, 2017 at 1:46 PM, pieterjanverbruggen < ***@***.***> wrote:
@sacpopli <https://github.com/sacpopli> My apologies for my ignorance
regarding manifest files, I will try to not change this into a stack
overflow post but could you perhaps point out on what I have to change in
my manifest file? Based on what I could find I came up with the below but
it is not accepted. I do want to avoid to set the open jdk as variable in
the runtime properties. I want to put it in my manifest..
applications:
- path: target/App.war
memory: 512M
instances: 1
domain: eu-gb.mybluemix.net
name: myApp
host: myApp
disk_quota: 1024M
buildpack: https://github.com/cloudfoundry/java-buildpack.git
env:
JBP_CONFIG_OPEN_JDK_JRE '{ jre: { version: 1.8.0_+ }}'
services:
- Watson Service - myService
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#610 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHWJISB6RTE74UEUdmLhnxAGZJ0mLuHDks5rtJ9CgaJpZM4MYOUY>
.
|
IBM Java (any version) has incompatibilities with the OkHttpClient that are documented here. It is possible OkHttpClient may resolve this issue soon as there is current activity on it.
This issue proposes a solution that involves configuring OkHttpClient with a custom SSLContext but I believe would require reflection to only do this when IBM Java is in use (you would not want to interfere with defaults on other platforms/JDKs).
The text was updated successfully, but these errors were encountered: