Salesforce plug-in connection time error "javax.net.ssl.SSLException: java.security.ProviderException: java.lang.ClassCastException: <unknown> cannot be cast to [B"

Salesforce plug-in connection time error "javax.net.ssl.SSLException: java.security.ProviderException: java.lang.ClassCastException: <unknown> cannot be cast to [B"

book

Article ID: KB0084150

calendar_today

Updated On: 04-26-2017

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Salesforce.com 2.4.1

Description

A new native provider has been added to the JDK 7 and above versions of the JDK release that provides several ECC (Elliptic Curve Cryptography)-based algorithms (ECDSA/ECDH). Having an ECC provider also enables ECC-based JSSE ciphersuites on all platforms.

​When connecting to Salesforce using the Salesforce plug-in, the following error may be reported:
"javax.net.ssl.SSLException: java.security.ProviderException: java.lang.ClassCastException: <unknown> cannot be cast to [B"

You will see this error
by installing Hawk 5.1.1 in the same Tibco home folder. This version of Hawk upgrades the JVM version from _55 to _72 

Issue/Introduction

Salesforce plug-in connection time error "javax.net.ssl.SSLException: java.security.ProviderException: java.lang.ClassCastException: cannot be cast to [B"

Environment

Tibco ActiveMatrix BusinessWorks 5.12 and and Tibco Runtime Agent 5.9 (contains JRE 1.7) Tibco ActiveMatrix BusinessWorks 5.13 and and Tibco Runtime Agent 5.10 (contains JRE 1.8)

Resolution

In this case, the Elliptic Curve Cryptography provider is causing the issue.


Resolution for Windows (containing tibco_jre 1.7.0 and above):
Remove the "sunec.dll" file from JVM(Tibco JRE) bin folder from following path:
<BW_HOME>\tibcojre64\<1.7.0 or 1.8.0>\bin\sunec.dll

This change is done to support native level algorithms. Disabling it will bring back the JRE 1.6 functionality of encryption. You can use this solution or you can update the sunec library from version _55 to _72.

Additional Information

http://supportapps.na.tibco.com/sr/case/013/01456013.htm

http://supportapps.na.tibco.com/sr/case/198/00758198.htm