Hi ,
I'm getting below exception in sender file communication channel for custom module deployed in my PI 7.1 server .I'm not getting where did i went wrong .Could you please help me in finding the bug.
Exception:
Error: javax.ejb.TransactionRolledbackLocalException: (Failed in component: sap.com/String_Replacement_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.pi.HPMIS.String_ReplacementBean.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.pi.HPMIS.String_ReplacementBean@1ca30d66 for bean sap.com/String_Replacement_EAR*xml|String_Replacement_EJB.jar*xml|String_Replacement in application sap.com/String_Replacement_EAR.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.auditlog.AuditAccess.addAuditLogEntry(com.sap.engine.interfaces.messaging.api.MessageKey, com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus, java.lang.String) of an object loaded from local variable 'audit'; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/String_Replacement_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.pi.HPMIS.String_ReplacementBean.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.pi.HPMIS.String_ReplacementBean@1ca30d66 for bean sap.com/String_Replacement_EAR*xml|String_Replacement_EJB.jar*xml|String_Replacement in application sap.com/String_Replacement_EAR.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.auditlog.AuditAccess.addAuditLogEntry(com.sap.engine.interfaces.messaging.api.MessageKey, com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus, java.lang.String) of an object loaded from local variable 'audit'; nested exception is: javax.ejb.EJBTransactionRolledbackException: (Failed in component: sap.com/String_Replacement_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.pi.HPMIS.String_ReplacementBean.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.pi.HPMIS.String_ReplacementBean@1ca30d66 for bean sap.com/String_Replacement_EAR*xml|String_Replacement_EJB.jar*xml|String_Replacement in application sap.com/String_Replacement_EAR.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.auditlog.AuditAccess.addAuditLogEntry(com.sap.engine.interfaces.messaging.api.MessageKey, com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus, java.lang.String) of an object loaded from local variable 'audit'; nested exception is: javax.ejb.EJBException: (Failed in component: sap.com/String_Replacement_EAR) Exception raised from invocation of public com.sap.aii.af.lib.mp.module.ModuleData com.sap.pi.HPMIS.String_ReplacementBean.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.pi.HPMIS.String_ReplacementBean@1ca30d66 for bean sap.com/String_Replacement_EAR*xml|String_Replacement_EJB.jar*xml|String_Replacement in application sap.com/String_Replacement_EAR.; nested exception is: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.auditlog.AuditAccess.addAuditLogEntry(com.sap.engine.interfaces.messaging.api.MessageKey, com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus, java.lang.String) of an object loaded from local variable 'audit'
Attached the module code for your reference .