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

EJB exception in custom adapter module

Hello,

We have a custom adapter module to encrypt/decrypt the credit card number and it is configured to work with a RFC receiver channel. We recently upgraded to PI 7.1 ehP 1. The code was tested thoroghly before moving it to production and it was working fine until yesterday. We have 2 java nodes and for no particular reason one of the java nodes stopped processing the messages and started giving an exception. The other node was processing the messages fine. The exception is given below . Also when we restarted the node all the messages were re processed successfully. Does anyone know why this is happening?

Delivering the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/cryptoEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.crypto.EncryptDecrypt.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.crypto.EncryptDecrypt@28d3be3 for bean sap.com/cryptoEARxml|Crypto.jarxml|EncryptDecrypt in application sap.com/cryptoEAR.; nested exception is: java.lang.IllegalStateException: Container has to be initialized first.; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/cryptoEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.crypto.EncryptDecrypt.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.crypto.EncryptDecrypt@28d3be3 for bean sap.com/cryptoEARxml|Crypto.jarxml|EncryptDecrypt in application sap.com/cryptoEAR.; nested exception is: java.lang.IllegalStateException: Container has to be initialized first.; nested exception is: javax.ejb.EJBTransactionRolledbackException: (Failed in component: sap.com/cryptoEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.crypto.EncryptDecrypt.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.crypto.EncryptDecrypt@28d3be3 for bean sap.com/cryptoEARxml|Crypto.jarxml|EncryptDecrypt in application sap.com/cryptoEAR.; nested exception is: java.lang.IllegalStateException: Container has to be initialized first.; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/cryptoEAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.crypto.EncryptDecrypt.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.crypto.EncryptDecrypt@28d3be3 for bean sap.com/cryptoEARxml|Crypto.jarxml|EncryptDecrypt in application sap.com/cryptoEAR.; nested exception is: java.lang.IllegalStateException: Container has to be initialized first..

Thanks

Arvind

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 17, 2011 at 03:35 PM

    Better to open an OSS message with SAP.

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Arvind,

      Did your issue got fixed? If yes could you plz suggest us ?

      We too getting the above exception for encryption using customised adapter module.

      Below is the exception we are getiing.

      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:

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.