cancel
Showing results for 
Search instead for 
Did you mean: 

Exception for PGPEncryption module in SFTP Adapter

nitinlpatil12
Participant
0 Kudos

Following Exception Received in PGP Encryption for SFTP adapter

Exception caught by adapter framework: 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@334b32c3 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 java.lang.String.length() of a null object loaded from local variable 'name'; 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@334b32c3 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 java.lang.String.length() of a null object loaded from local variable 'name'; nested exception is: javax.ejb.EJBTransactionRolledbackException: 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@334b32c3 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 java.lang.String.length() of a null object loaded from local variable 'name'; 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@334b32c3 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 java.lang.String.length() of a null object loaded from local variable 'name'

Scenario:

Proxy to SFTP, following are the Adapter and Module configuration for your reference, also Unlimited JCE police is updated and verified, certificate and key is loaded onto the server. Same scenario was working on PO 7.4 but not on PO 7.5

Kindly suggest towards the resolution.

Regards,

Nitin Patil

nitinlpatil12
Participant
0 Kudos

Hi Manoj,

thanks for the answer. Message needs to be transformed before PGPencryption and same scenario is working on lower PO environment, now we are migrating it to PO 7.5.

Regards,

Nitin Patil

manoj_khavatkopp
Active Contributor
0 Kudos

You can't, ask yourself how can you transform an encrypted message? Once Encrypted message is transformed how can PGP module Decrypt it ? Can you please provide screenshot of your lower PO

nitinlpatil12
Participant
0 Kudos

Hi Manoj,

Sequence you mentioned is true if I am decrypting followed by transformation.

Anyway, Configuration is same in lower PO as the earlier screen shot but let me keep it for reference. thanks for your help!

Accepted Solutions (0)

Answers (2)

Answers (2)

juan_vasquez2
Active Participant
0 Kudos

Hi Nitin,

Try this configuration

Test with constant filenames

Regards

nitinlpatil12
Participant
0 Kudos

Hi Juan,

Thanks for the configuration details but I am getting similar error.

Any other suggestions.

Regards,

Nitin Patil

juan_vasquez2
Active Participant
0 Kudos

Hi Nitin

Where do you put the key files?

Regards

MoritzFeuerbach
Explorer
0 Kudos

Hi Nitin,

could you check if it works with static names? If yes, maybe there is something wrong with your ASMA settings.

Kind regards

nitinlpatil12
Participant
0 Kudos

Hi Moritz,

Same scenario is working in PO 7.4 with ASMA settings, do you mean by static means to provide a specific file name? please elaborate, if possible with a example. Thanks!

Regards,

Nitin Patil