PGP Encryption Exception in File and SFTP receiver adapter.

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

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

Similar Messages

  • How to place a binary zip files using sftp receiver adapter

    Hi experts,
    we got one scenario , where we need to pick the file (.zip) from local source path and place it in SFTP server path.
    we have done all configuration setting and processed a zip to SFTP server.
    but the client are saying the .zip file is not in a binary formate.
    so could any please help me and provide solution on this issue.
    regards
    raju

    hi Praveen,
    i clicked binary mode option in sender channel, and at receiver side sftp adapter channel i not found any option.
    could you please help me.
    regards
    raju

  • How to get zip file in SFTP receiver adapter

    Hi Experts,
    we got one scenario, which the PI need to pick the .zip file from file path using  file adapter and process to SFTP server with same name and extension .zip.
    we tried using ASMA setting and when ever we are placing the '*' in receiver channel file name , it showing error as "Putting * failed".
    so could you please provide solution how we can able to receive the .zip file with same name.
    regards
    raju

    Hi Raju,
    In ASMA the default namespace was like this http://sap.com/xi/XI/System you can changed it to http://sap.com/xi/XI/System/File.
    please try this...
    Regards
    srinivas

  • Use temporary file in FTP receiver adapter

    Hi guys,
    I'm not getting the purpose of "use temporary file" in FTP receiver adapter. Can you describe any situation, where this should be used?
    What is the location of this temporary file?
    Is it deleted after "normal" file is created?
    Thanks a lot,
    Olian

    > I'm not getting the purpose of "use temporary file" in FTP receiver adapter. Can you describe any situation, where this should be used?
    Some times when you create the file on your target dir then if there is another application looking for same file is quite faster to pick the file before it is complety written on target dir then in this situation using temporary file option is very helpful. What it does, it simply creates the file first by using temporary name once all bytes or bits has been transfered then it creates the original name and the temp file get deleted.
    > What is the location of this temporary file?
    Same location, where your original file is suppose to be written.
    > Is it deleted after "normal" file is created?
    Yes.
    Regards,
    Sarvesh

  • Need hlep for PGP Encryption for delimited file transfer using B2b

    I have a requirement to read the PGP encrypted delimited file from partner and decrypt it to process. Can any body tell me how can I do this in b2b. I really appreciate the help

    Better read it as a binary document and pass it to the back-end for further processing (decryption and processing). If you want to the decryption at B2B layer itself then use the java callout feature -
    http://docs.oracle.com/cd/E23943_01/user.1111/e10229/callouts.htm#CHDEFBDG
    Regards,
    Anuj

  • Finger Print error in SFTP receiver adapter

    Hi Experts ,
         I am getting following error in SFTP receiver channel, here I have nominated the password based authentication rather than certificate authentication method in channel. And I have created finger print in NWA and shared with SSH server admin to import , then I maintained the same in my receiver channel also. And I have done the vice-versa created the finger print in SSH server side and given the same in channel . Still error is persist in channel, experts please suggest .
    Error :
    Message could not be forwarded to the JCA adapter. Reason: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Error MP: exception caught with cause javax.resource.ResourceException: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Error Exception caught by adapter framework: com.jcraft.jsch.JSchException: Fingerprint invalid. Fingerprint is: 6b:f4:38:e7:13:31:59:c8:76:4f:e1:93:10:ac:73:ca
    Screen shots :
    Thanks in advance,
    RAJA

    And I have created finger print in NWA and shared with SSH server admin to import
    >>>> Though i'm not sure how it works, you can validate the fingerprint of the FTP server with one which is configured in the channels.
    If you have file zilla/coreFTP try to connect with the credentials and then you'll get a pop-up which should have the finger print information.

  • SFTP Receiver adapter error Message could not be forwarded to the JCA adapter

    Hi Experts,
    I'm needing help to solve a problem with an SFTP Receiver interface.
    Before I was sending in the adapter configuration as "Direct" in Write Modus (File .txt) and now I changed to "Use temporary file" is occurring this error:
    Message
    could not be forwarded to the JCA adapter. Reason: 2: Moving
    /ABCftp/To_XXX/140187613515701OUT_20140604-100214-622.TXT.tmp to /ABCftp/To_XXX/01OUT_20140604-100214-622.TXT failed.
    Files as TXT they are being written to the SFTP however when as TMP returns this error ... would not rule SFTP server to accept different TXT files?
    I also changed the namespace to "http://sap.com/xi/XI/System/SFTP" and "http://sap.com/xi/XI/System/File" but is not working.
    Any help will be welcome!
    tks.

    Hi Durga and Naveen...
    I believe the problem is when the application's legacy system picks up the file because the log file got the "tmp", ie, was not formed yet ...
    I changed to a directory without the intervention of the legacy application and it worked.
    I'm waiting for the opportunity to modify the legacy system to capture only files with the extension TXT.
    Tks All for help!

  • FTPS Sender and FTPS Receiver adapter. Pls help

    Hi All,
    I need to make file to file scenario with secure connection
    I am using FTP Sender and Receiver Adapter with Connectivity
    as FTPS.
    Please let me know the steps I need to do for this
    1. Integration Directory
    2. If I need to generate certificates what steps I need to do:
        a. How to generate certificates
        b. Where to install these certificates like File Servers, XI
            Server etc.
    3. How to use these certificates in File Server, Integration
       Directory etc.
    Please send me a document to do all steps.
    In advance thanks and Full Points will be awarded.
    Regards

    Hi,
    Deploy SAP Java Cryptographic Toolkit.&
    Add the CA certificate to the key storage as below.
    Keystore: service_ssl
    X.509 Certificate & Private Key: ssl-credentials
    This means that you need to import the CA hierarchy of your FTPs server certificate into the list of trusted CA's in XI ( either on J2EE side in the keystore service or in ABAP side via transaction STRUST , depending on where your client is ).
    If connection security parameter in communication channel for Sender FTP Adapter is set to "FTPs( FTP Using SSL/TLS) with Control Connection" only, file gets successfully created with data at the FTP server but as soon as we switch the connection security parameter to "FTPs( FTP Using SSL/TLS) with Control and Data Connection".The initial handshaking happens successfully and file gets created at the FTP Server but its empty, connection fails when attempt is made to write data into file and we end up with said error thereby closing the connection.
    SAP Note 821267
    Refer below link
    SAP Network Blog: SFTP vs. FTPS in SAP PI
    /people/krishna.moorthyp/blog/2007/07/31/sftp-vs-ftps-in-sap-pi
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/400580c1-8d16-2a10-3eb3-ec1026dae0d5

  • How to attach Excel file in Mail Receiver Adapter?

    Hello Experts,
    In R/3 coding I have Internal Table data available for which i have to generate an Alert mail with Excel file attachment.
    This is the scenario of Proxy sender to Mail Receiver. but I don't know how to convert the Internal Table data into Alert mail excel File attachment.
    Please suggest me.
    Regards,
    Jagesh

    Hi Santhosh,
    Thanks for your suggestion.
    But without using XSLT mapping also, I have generated the Excel File attachment.
    Throgh R/3 coding I am passing following.
    G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-FROM = From Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-TO = TO Mail Address.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-SUBJECT = 'Test Alert mail'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-DATE = SY-DATUM.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_TYPE =   'text/plain;name="CSV_data.csv"'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT = 'Testing1,Testing2,Testing3'.
          G_ALERT_INPUT-MT_R3REQUEST_MAIL_SEND-MAIL-CONTENT_DISPOSITION = 'attachment'.
    And in the Mail Receiver Adapter i have configured as following.
    Use Mail package and Keep Attachment both options are selectd.
    So I am getting the data in different columns in the excel file But How to set the Next ROW in Excel file?
    I thnk i am missing something in CONTENT value.
    Regards
    Jagesh

  • File Content Conversion - Receiver Adapter

    Hi To All
    I have an XML Structure
    <LIST>
         <Seg1>
              <Element1>123</Element1>
         </Seg1>
         <Seg2>     
              <Element1>ABC</Element1>
              <Element2>DEF</Element2>
              <Element3>GHF</Element3>
            </Seg2>     
    <LIST>
    I'm using File content conversion in receiver Adapter
    I want my output like this.
    ABCDEFGHF
    I don't need the Segment Seg1.
    In my parameters RecordsetStructure only I have Seg2 and the details for this Segment
    but When I receive a file, the adapter convert with segment 1.
    123
    ABCDEFGHF
    can you help me?.

    easiest alternative is mentioned here already, drop it in the mapping.
    You can also try to write a java pgm and invoke it as an OS command. that cuts the segment1 out before passing it to content conversion. ..more painful..but will work.
    Regards
    Ravi Raman

  • File Name Scheme - Receiver Adapter

    Hi,
    I have a File Receiver Adapter which is using content conversion to take in XML and output a file. I want the output file to be called EOD286ccyymmdd.txt where ccyymmdd is the current date. Seems to be 2 options for file names:
    1. Add Time Stamp: No use as this adds the Date & Time. I only want the date.
    2. Variables: Don't think I can use this as it only seems to work if the data is part of the XML message packet. The date in ccyymmdd format is not contained in the XML anywhere.
    Is there anyway of getting the File Scheme Name I want ?
    Cheers,
    PaulC.

    Hi,
    You have one option in the File adapter receiver channel: 'Run Operating System command After message processing", where you can give any std OS command or you can give batch file (.bat) to run after the message processing. In batch file, you can write a set of commands which would rename the file according to your name format.
    Another bit complex solution is create your own custom adapter module and change the file name scheme.
    Thanks,
    RK

  • HTTP Sender and HTTP Receiver adapter. Pls advice urgent

    Hi All,
    There is one Third Party that wants to send XML data and receive XML data with XI.
    Please let me know can I use HTTP for that.
    How to use HTTP Sender part?
    How to use HTTP Receiver Adapter?
    Pls send blogs/doc for that
    Thanks and Regards

    hi.,
    Check this thread for the code for a HTTP Client,
    /message/266750#266750 [original link is broken]
    Also, check these blogs. They use HTTP adapters for their configuration,
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Check these links for the configuration part.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    Weblog :
    /people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
    aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • Help with merging files and calling SOAP adapter in BPM

    Hello All,
    I have a scenario, where am merging a header file and item file and calling a webservice in ECC. The requirement is that the no. of calls to the webservice depends on the no. of lines in the header file. Mapping is developed according to this rule and the operation mapping is also set for multiple messages. Testing the mapping produces required results.
    But when I run the scenario invoking BPM to merge the files with 2 lines in header records the webservice is called just once. On further analysis into SXMB_MONI_BPE, MESSAGES_OUPUT table in the mapping step has 2 messages. The instance ID of the message gone out shows a checkered flag with processed successfully status, but the second line is stuck in status "Transfer To Process Engine" .
    Any thoughts what I should be doing to push second message out automatically.
    Prashanth

    Hi Prashanth,
       to find out what has happened to the message try checking the workflow log,
    i.e., select the message with the 'Transfer to Process Engine" status in SXI_MONITOR and drill down in the outbound PE column.
    Once in the workflow log select 'List with Technical Detailsu2019'.
    Regards
    Kenny

  • Dynamic Directory and File Naming in Receiver Adapter

    Hi ..My Receiver file should Look like this.
    COLCCYYMMDDHHMMSSLPMASTER___.tmp
    1st 3 bytes: COL  ( Sender File name is COLMASTER.txt)
    Next 14 bytes is timestamp: CCYYMMHHMMSS
    Next 1 byte: L ( constant Value )
    Next 1 byte: P/Q/D (Production/QA/Dvlp.. Can we do this based on Sender Logical System ?)
    Next 20 bytes ( Part of it comes from Sender file name and remaining fields should be filler with underscores )
    Next 4 bytes ( .tmp)
    After Iam done with writing this file in .tmp format I should change the file name to .txt format for further processing. Since File gets created dynamically how should I change Name from .tmp to .txt file?
    Appreciate help and guidance with steps I neeed to follow to make this happen. Thanx again.

    Hi Ram,
    One option~~
    Use ADAPTER SPECIFIC INDENTIFIERS in both sender and recievr file adapter with the filename selected.
    In this case, the filename of sender will be made the file name of the reciver.
    Now, change the file name in the mapping in an UDF with the following code, and this will be used as the filename,
    String newfilename="";
    // Write the logic to get the new file name into this string.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    conf.put(key, <b>newfilename</b>);
    return  "";
    Now, this filename in newfilename string will be used in the target filename.!!
    Regards,
    Bhavesh

  • SFTP Receiver adapter - move file to another folder

    Hello Experts,
           Thanks for helping me so far.
           I have a new scenario IDoc --> PI --> SFTP (Flat File).
           The requirement is that, after the flat file is successfully placed in SFTP into a folder, the same file should move to other folder.
           Client has suggested this because to make sure that the full file need to pick up only after the successful placing.
           Please suggest your valuable thoughts.
    Thanks
    Ravi

    Hi Ravi,
    I agree with both Janus and Hareesh.
    But still if you want to do it as suggested by client then here is the way.
    Use Option "Run OS Command after Message Processing" in your SFTP channel. You would have to do following things to use it :
    1. Write a SFTP script (or get it done by someone good at it) which does the following
          creates SFTP connection between PI server to SFTP server
          Moves the file SFTP adapter placed in first directory and moves it to another directory
    2. Place the script file on the PI application somewhere
    3. Mention the script file along with full path of application server directory where script file is placed.
    Here is reference of this option
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI: Operation system command - error catching
    Only thing which would change in your case would be that instead of batch file it would be script file which you would be using if your PI server operating system would be UNIX. If your PI application server is based on the Windows Operating system then you would have to manage using the batch file.
    Thanks,
    Amit

Maybe you are looking for

  • Unable to build a valid certificate chain for the signer

    Updating an AIR application after a few years and needed a new signing certificate which I purchased from Comodo.  Imported it successfully into Keychain Access and exported it as a pfx file.  When I identified this certificate to Flash Builder it we

  • Safari is quitting unexpectedly when using the .WebCalendarPad.so plugin. What do I do?

    Here's the message I get: Safari is quitting unexpectedly when using the .WebCalendarPad.so plugin. Process:         Safari [1806] Path:            /Applications/Safari.app/Contents/MacOS/Safari Identifier:      com.apple.Safari Version:         5.0.

  • Budgeting control system

    Hi Experts, We are using ECC6, but would like to know if there is an available transaction code or program in the system that can  provide for preventive budgeting control system where the accounts are validated on-line with the available balance Tha

  • Not seen in CertView

    Hi There, Could you please give me an update on Service Request Number 23449823? I sent the score report to [email protected] as requested, but I haven't been contacted since.

  • Gmail crashes safari and tabs are messed up

    Ever since I got a new MacBook Pro with Lion (transferred everything over from my old MacBook pro which was running 10.6), Safari has been really flaky.  Most of the problems seem to be when I'm using Gmail.  Safari will freeze, crash, log me out of