SAP Knowledge Base Article - Preview

3040476 - Messages using PGP module are failing with "java.lang.ClassCastException" while encrypting/decrypting

Symptom

You have a Process Integration (PI) or Process Orchestration (PO) system with a scenario where PGP Module is used to encrypt or decrypt files. During message processing, the following errors are visible (one or another):

  • Error: java.lang.ClassCastException: org.bouncycastle.crypto.params.RSAKeyParameters (loaded by com.sap.engine.boot.loader.ResourceMultiParentClassLoader@0x00000007f0322d20) cannot be cast to org.bouncycastle.crypto.params.DSAPublicKeyParameters (loaded by com.sap.engine.boot.loader.ResourceMultiParentClassLoader@0x00000007f0322d20). 
  • Error: java.lang.ClassCastException: org.bouncycastle.crypto.params.DSAPublicKeyParameters (loaded by com.sap.engine.boot.loader.ResourceMultiParentClassLoader@0x00000007f0069ed8) cannot be cast to org.bouncycastle.crypto.params.RSAKeyParameters (loaded by com.sap.engine.boot.loader.ResourceMultiParentClassLoader@0x00000007f0069ed8). 


Read more...

Environment

  • SAP Process Integration, secure connectivity add-on

Product

SAP NetWeaver Process Integration, secure connectivity add-on 1.0

Keywords

SFTP, PGP, Secure Connectivity, Addon, Add-on, Process Integration 7.0, PI 7.0, PI 7.01, PI 7.02, Process Integration 7.10, PI 7.10, Process Integration 7.11, PI 7.11, Process Integration 7.30, PI 7.30, Process Integration 7.31, PI 7.31, Process Orchestration 7.4, PI 7.4, PO 7.4, Process Orchestration 7.5, PI 7.5, PO 7.5, XI, , KBA , BC-XI-CON-SFT , Secure File Transfer Protocol Adapter , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.