Issue:

We are getting following intermittent error messages while accessing our Application URL. After restarting the Jboss instance, application URL work fine for sometime, later it throws below error in the browser:

    SSL Connection error

ERR_SSL_PROTOCOL_ERROR

  • JBoss Version: Jboss EAP 6.1
  • JDK Version: Oracle JDK 1.7_0_79

We didn’t see any errors in the Jboss Server logs. So, we enabled SSL debugging to find details about the issue. SSL debug logs shown following exceptions in the logs:

Resolution:

Following steps have been performed to fix the issue:

Step 1: Download and install a JCE provider JAR (Java ARchive) file.

  • http://www.bouncycastle.org/latest_releases.html

Step 2: Copy the JCE provider JAR file to /opt/jdk/jdk1.7.0_79/jre/lib/ext

Step 3: Edit the java-home/jre/lib/security/java.security properties file in any text editor. Add the JCE provider you’ve just downloaded to this file.

Step 4: Save and Close
Step 5: Restart the application server.

Useful Links:

  • http://www.bouncycastle.org/latest_releases.html
  • https://bugzilla.redhat.com/show_bug.cgi?id=1163501
  • http://docs.oracle.com/cd/E19830-01/819-4712/ablsc/index.html
  • http://bugs.java.com/bugdatabase/view_bug.do?bug_id=6521495
  • http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8137048
  • https://bugzilla.redhat.com/show_bug.cgi?id=1167153
  • https://trello.com/c/gITLWoya/361-client-java-lang-runtimeexception-could-not-generate-dh-keypair