Skip to Content
0
Former Member
Aug 17, 2011 at 02:43 PM

EJB exception in custom adapter module

83 Views

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