cancel
Showing results for 
Search instead for 
Did you mean: 

PGP Encryption Exception in File and SFTP receiver adapter.

Former Member
0 Kudos

Scenario: We have got the PGP (Private and Public key pair) and stored the same in PI server path.

We have sample partner Public key which is store at temporary shared location for testing purpose.

Issue: While doing the encryption we are getting below exception in case of File Adapter and SFTP adapter.

Case 1: File Receiver Adapter

Case 1: SFTP Receiver Adapter

Can anyone please suggest on below exception?

How to proceed to resolve the above issue or what should be the cause of the issue?

Thanks,

Vertika

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Please ensure that you have unlimited stength juristiction policy files as it is written in the following blog:
http://scn.sap.com/community/b2b-integration/blog/2012/07/12/b2b-adapter
s--updating-to-jce-unlimited-strength-jurisdiction-policy

How to Guide:
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/27/pgp-a
nd-sftp-faq-sheet

Also check the steps in the note below have been followed:

1915999 - Verify JCE Unlimited Strength Jurisdiction Policy and fixes

Kind regards,

Sarah

Former Member
0 Kudos

Hi everyone,

Thanks for reply Sarah

I have downloaded and added the JCE unlimited strengthh juristiction policay files are updated as directed in above blogs.

Now I am able to encrypt the File using plane File Adapter (NFS). But still it is throwing exception for SFTP adapter. Below is the error detail:

MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageKey() of a null object loaded from local variable 'message'; nested exception is: javax.ejb.EJBException: ASJ.ejb.005043 (Failed in component: sap.com/com.sap.aii.adapter.pgp.app, BC-XI-CON-B2B) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean.process(com.sap.aii.af.lib.mp.module.ModuleContext,com.sap.aii.af.lib.mp.module.ModuleData) throws com.sap.aii.af.lib.mp.module.ModuleException method on bean instance com.sap.aii.adapter.pgp.ejb.api.PGPEncryptionBean@2648d238 for bean sap.com/com.sap.aii.adapter.pgp.app*xml|com.sap.aii.adapter.pgp.ejb.jar*xml|PGPEncryption in application sap.com/com.sap.aii.adapter.pgp.app.; nested exception is: java.lang.NullPointerException: while trying to invoke the method

What could be the reason of above exception in SFTP adapter? Please suggest.

Thanks,

Vertika

former_member184720
Active Contributor
0 Kudos

Answers (0)