cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Notification is Not Working

ROHITGERA1
Participant
0 Kudos

Hi ,

In Our Quality Server Java mail service is working fine as i can able to send the mail through java mail.
But when i triggering my BPM Process and in the Notification Activity the mail are not getting trigger and in production Server the BPM Notification is working fine and the Properties are same in Quality and Production Server.

I checked the following Property in nwa :

Java System property ->  Services  -> Java Mail Client , here host name,port,password are correct as java mail are working fine

and for BPM :

Java System property ->  Application -> tc~bpem~base~ear , here i checked the setting it is same as production server

everthing seemed to fine but BPM notification not getting trigger in Quality

I am getting the following error in History og Process Instance :

Notification could not be sent to
the following recipients:
xxx@xxx.com(Error sending
e-mail)

and in Logs the full Error is as follow :

Error sending notification email to recipient xxx@xxx.com. Reason: com.sap.bpem.base.mail.MailException: Cannot send e-mail because the e-mail session cannot be retrieved

[EXCEPTION]

com.sap.bpem.base.mail.MailException: Cannot send e-mail because the e-mail session cannot be retrieved

at com.sap.bpem.base.mail.Send.initializeSession(Send.java:65)

at com.sap.bpem.base.mail.Send.send(Send.java:116)

at com.sap.bpem.base.mail.MailSenderBean.doSend(MailSenderBean.java:43)

at com.sap.bpem.base.mail.MailSenderBean.surroundSend(MailSenderBean.java:74)

at com.sap.bpem.base.mail.MailSenderBean.send(MailSenderBean.java:26)

at sun.reflect.GeneratedMethodAccessor2513.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:47)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:50)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:37)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:21)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_MethodRetry.invoke(Interceptors_MethodRetry.java:46)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:191)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:23)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:25)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:17)

at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:179)

at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:138)

at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)

at com.sun.proxy.$Proxy463.send(Unknown Source)

at com.sap.bpem.notification.adapter.Notification.send(Notification.java:385)

at com.sap.bpem.notification.adapter.Notification.sendToUser(Notification.java:325)

at com.sap.bpem.notification.adapter.Notification.handleUser(Notification.java:269)

at com.sap.bpem.notification.adapter.Notification.handleGroup(Notification.java:306)

at com.sap.bpem.notification.adapter.Notification.handlePrincipals(Notification.java:193)

at com.sap.bpem.notification.adapter.Notification.process(Notification.java:152)

at com.sap.bpem.notification.adapter.NotificationHandler$2.inCommit(NotificationHandler.java:112)

at com.sap.glx.core.kernel.mmtx.PrimaryTransaction.inCommit(PrimaryTransaction.java:263)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.do_commit(AbstractTransaction.java:230)

at com.sap.glx.core.kernel.mmtx.AbstractTransaction.commit(AbstractTransaction.java:128)

at com.sap.glx.core.kernel.execution.LeaderWorkerPool$Follower.run(LeaderWorkerPool.java:171)

at com.sap.glx.core.resource.impl.common.WorkWrapper.run(WorkWrapper.java:58)

at com.sap.glx.core.resource.impl.j2ee.J2EEResourceImpl$Sessionizer.run(J2EEResourceImpl.java:255)

at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator$1.run(ServiceUserManager.java:164)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:335)

at com.sap.glx.core.resource.impl.j2ee.ServiceUserManager$ServiceUserImpersonator.run(ServiceUserManager.java:161)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:302)

Caused by: javax.mail.AuthenticationFailedException

at javax.mail.Service.connect(Service.java:319)

at javax.mail.Service.connect(Service.java:169)

at javax.mail.Service.connect(Service.java:118)

at com.sap.bpem.base.mail.Send.initializeSession(Send.java:59)

... 49 more

as the error saying javax.mail.AuthenticationFailedException , but authentication is working fine as we checked in OS level also with basis team ,

Please let me know if m missing somthing.

Thanks ,

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

did u try writing java code to send mail? is it working?

ROHITGERA1
Participant
0 Kudos

yes Jun,

we are writing java code in EJB and it is working fine.

Unable to get what is missing.

Thanks,

Rohit