SAP Knowledge Base Article - Preview

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


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 cannot be cast to org.bouncycastle.crypto.params.DSAPublicKeyParameters (loaded by 
  • Error: java.lang.ClassCastException: org.bouncycastle.crypto.params.DSAPublicKeyParameters (loaded by cannot be cast to org.bouncycastle.crypto.params.RSAKeyParameters (loaded by 



  • SAP Process Integration, secure connectivity add-on


SAP NetWeaver Process Integration, secure connectivity add-on 1.0


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 for Me (Login required).

Search for additional results

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