Skip to Content
author's profile photo Former Member
Former Member

Getting exception in PGPEncryption module in SOAP Adapter

Dear Experts,

I 'm getting the below exception in SOAP adapter while I'm encrypting the data by using PGPEncryption module in 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@1a906533 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 is SFTP to SOAP.

XML file to be picked up ---> Encryption is applied using AES_256 Algo ----> Bank PI server.


Here are the parameters used in channel configuration.


localejbs/PGPEncryption - Local Enterprise Bean

applyCompression - None

applyEncryption - true

applySignature - true

asciiArmored - false

dynamicFileName - FileName

dynamicNamespace - http://sap.com/xi/XI/System/File

encryptionAlgo -AES_256

ownPrivateKey - xxx.asc

partnerPublicKey - xxx.asc

pwdOwnPrivateKey - xxxxxxxxx

signingAlgo - SHA256


I've checked in forum but couldn't find the solution on this issue. Kindly suggest.


Thanks & Regards,

Naresh. K

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 10, 2015 at 07:34 AM

    Hi Naresh,

    According with Ravi suggestion try to set keyRootPath - Path, to set the path of your files.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2015 at 07:10 AM

    Hi,

    The public key for encryption needs to be placed in the security folder (sec) on the PI server. Please ask your basis to place the file for you. Afterwards in the module configuration, for the parameter partnerPublicKey provide the entire path of the sec folder where the public key is placed. Request you to check the blogs for the exact syntax and configuration of the public key path.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.