8 Replies Latest reply: Aug 1, 2015 9:59 AM by Harry Saj RSS

Error: javax.ejb.TransactionRolledbackLocalException

Venkat Nimmagadda
Currently Being Moderated

Hi Experts,

 

I 'm getting the below exception in adapter while i'm encrypting the data by using module deployed in adapter.Could you plz suggest?

 

Error: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/PGPEncryptionEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.ngrid.sap.module.crypto.PGPDecryptionBean.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.ngrid.sap.module.crypto.PGPDecryptionBean@692e8727 for bean sap.com/PGPEncryptionEARxml|PGPEncryption.jarxml|PGPDecryptionBean in application sap.com/PGPEncryptionEAR.; nested exception is: java.lang.NullPointerException: ; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/PGPEncryptionEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.ngrid.sap.module.crypto.PGPDecryptionBean.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.ngrid.sap.module.crypto.PGPDecryptionBean@692e8727 for bean sap.com/PGPEncryptionEARxml|PGPEncryption.jarxml|PGPDecryptionBean in application sap.com/PGPEncryptionEAR.; nested exception is: java.lang.NullPointerException: ; nested exception is: javax.ejb.EJBTransactionRolledbackException: (Failed in component: sap.com/PGPEncryptionEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.ngrid.sap.module.crypto.PGPDecryptionBean.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.ngrid.sap.module.crypto.PGPDecryptionBean@692e8727 for bean sap.com/PGPEncryptionEARxml|PGPEncryption.jarxml|PGPDecryptionBean in application sap.com/PGPEncryptionEAR.; nested exception is: java.lang.NullPointerException: ; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/PGPEncryptionEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.ngrid.sap.module.crypto.PGPDecryptionBean.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.ngrid.sap.module.crypto.PGPDecryptionBean@692e8727 for bean sap.com/PGPEncryptionEARxml|PGPEncryption.jarxml|PGPDecryptionBean in application sap.com/PGPEncryptionEAR.; nested exception is: java.lang.NullPointerException:

  • Re: Error: javax.ejb.TransactionRolledbackLocalException
    Venkat Nimmagadda
    Currently Being Moderated

    Hi,

    The above issue is resolved by proper error handling .

    FYI:The above exception usually comes when unhandled module exception is thrown.

    • Re: Error: javax.ejb.TransactionRolledbackLocalException
      Harry Saj
      Currently Being Moderated

      Hi,

       

      I'm getting the same error.

       

      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@7dcb5796 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:

       

      > Scenario is NFS to FTPS.

       

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

       

      I have referred to other documents in the forum & configured as below:

       

      localejbs/PGPEncryption - Local Enterprise Bean

       

      applyCompression - ZIP

      applyEncryption - true

      applySignature - true

      asciiArmored - false

      encryptionAlgo -AES_256

      ownPrivateKey - xxx.skr

      partnerPublicKey - xxx.pkr

      pwdOwnPrivateKey - xxxxxxxxx

       

      I did not specify the signature Algo since I wanna use SHA1 which is default..

       

      I have got the private & public keys stored in default location - usr/sap/<System ID>/<Instance ID>/sec

       

      I'm using ASMA for File name.

       

      I have set transfer mode as Binary in both sender & receiver, should it be text - UTF - 8 by any chance....

       

      I have requested JCE policy to be deploy for unlimited strength.

       

      Do you think that will resolve my issue & is there anything else that I can check.

    • Re: Error: javax.ejb.TransactionRolledbackLocalException
      Rohan DCosta
      Currently Being Moderated

      Hi Venkat,

       

      We are facing the same problem while accessing the adapter, where was this error handling done. Our scenario is Pass-through and there are no ESR objects.

  • Re: Error: javax.ejb.TransactionRolledbackLocalException
    Aman Kumar Mangla
    Currently Being Moderated

    Hello All,

     

    I am on SAP PI 7.4 (dual stack) and using ICOs for configuration. I have a Proxy to IDoc scenario in my landscape where receiver IDoc_AAE adapter is being used. We are not using any specific module in the adapter and apart from 'Destination' everything is standard.

     

    At runtime, I am getting following error in PI monitoring and the IDoc is not getting generated:

     

    MP: exception caught with cause javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.conn.jco.rt.ClientConnection.execute(Lcom/sap/conn/jco/JCoFunction;Ljava/lang/String;Ljava/lang/String;Lcom/sap/conn/jco/JCoRepository;)V; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.conn.jco.rt.ClientConnection.execute(Lcom/sap/conn/jco/JCoFunction;Ljava/lang/String;Ljava/lang/String;Lcom/sap/conn/jco/JCoRepository;)V; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.conn.jco.rt.ClientConnection.execute(Lcom/sap/conn/jco/JCoFunction;Ljava/lang/String;Ljava/lang/String;Lcom/sap/conn/jco/JCoRepository;)V; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.conn.jco.rt.ClientConnection.execute(Lcom/sap/conn/jco/JCoFunction;Ljava/lang/String;Ljava/lang/String;Lcom/sap/conn/jco/JCoRepository;)V


    Requesting your kind advice on this.


    Thanks.

Actions