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:, BC-XI-CON-B2B) Exception raised from invocation of public, throws method on bean instance for bean*xml|*xml|PGPEncryption in application; 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 -

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.


    Add a comment
    10|10000 characters needed characters exceeded

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


    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.