cancel
Showing results for 
Search instead for 
Did you mean: 

EJB exception in custom adapter module

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

VijayKonam
Active Contributor
0 Kudos

Better to open an OSS message with SAP.

VJ

Former Member
0 Kudos

Vijay,

I have already done that. I wanted to find out if any one has faced this issue?

Thanks

Arvind

Former Member
0 Kudos

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: