Error with Mail Task in BPMN Alfresco 5.2 (I am pretty much new to alfresco)

cancel
Showing results for 
Search instead for 
Did you mean: 
suhsha
Member II

Error with Mail Task in BPMN Alfresco 5.2 (I am pretty much new to alfresco)

I have been trying to add a mail task into my workflow when a task is assigned to a user but when the task is assigned I get the following in my process response.

briefSummary"Could not send e-mail in execution 1259535"

[org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.handleException(MailActivityBehavior.java:411), org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:107), org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:453), org.activiti.engine.impl.pvm.runtime.OutgoingExecution.take(OutgoingExecution.java:48), org.activiti.engine.impl.persistence.entity.ExecutionEntity.takeAll(ExecutionEntity.java:589), org.activiti.engine.impl.bpmn.behavior.ParallelGatewayActivityBehavior.execute(ParallelGatewayActivityBehavior.java:78), org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49), org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:634), org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629), org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:453), org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:431), org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140), org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66), org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44), org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47), org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:225), org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:410), org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203), org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52), org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24), org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59), org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24), org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57), org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47), org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131), org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45), org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31), org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40), org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35), org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:179), org.alfresco.rest.workflow.api.impl.TasksImpl.update(TasksImpl.java:796), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317), org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183), org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150), org.alfresco.rest.api.impl.ExceptionInterceptor.invoke(ExceptionInterceptor.java:50), org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172), org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204), com.sun.proxy.$Proxy209.update(Unknown Source), org.alfresco.rest.workflow.api.tasks.TasksRestEntityResource.update(TasksRestEntityResource.java:76), org.alfresco.rest.workflow.api.tasks.TasksRestEntityResource.update(TasksRestEntityResource.java:33), org.alfresco.rest.framework.webscripts.ResourceWebScriptPut.executeInternal(ResourceWebScriptPut.java:150), org.alfresco.rest.framework.webscripts.ResourceWebScriptPut.access$000(ResourceWebScriptPut.java:34), org.alfresco.rest.framework.webscripts.ResourceWebScriptPut$1.execute(ResourceWebScriptPut.java:185), org.alfresco.rest.framework.webscripts.ResourceWebScriptPut$1.execute(ResourceWebScriptPut.java:181), org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457), org.alfresco.rest.framework.webscripts.ResourceWebScriptPut.execute(ResourceWebScriptPut.java:179), org.alfresco.rest.framework.webscripts.AbstractResourceWebScript.execute(AbstractResourceWebScript.java:68), org.alfresco.rest.framework.webscripts.ApiWebScript.execute(ApiWebScript.java:127), org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:460), org.alfresco.rest.api.PublicApiRepositoryContainer.transactionedExecute(PublicApiRepositoryContainer.java:45), org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649), org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421), org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301), org.alfresco.rest.api.PublicApiRepositoryContainer.access$001(PublicApiRepositoryContainer.java:26), org.alfresco.rest.api.PublicApiRepositoryContainer$1.doWork(PublicApiRepositoryContainer.java:81), org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119), org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88), org.alfresco.rest.api.PublicApiRepositoryContainer.executeScript(PublicApiRepositoryContainer.java:77), org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378), org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209), org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:74), org.alfresco.rest.api.PublicApiWebScriptServlet.service(PublicApiWebScriptServlet.java:53), javax.servlet.http.HttpServlet.service(HttpServlet.java:728), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.alfresco.repo.web.filter.beans.NullFilter.doFilter(NullFilter.java:68), sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method), sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125), org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172), org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204), com.sun.proxy.$Proxy307.doFilter(Unknown Source), org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61), org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243), org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210), org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222), org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123), org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502), org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171), org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100), org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953), org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118), org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408), org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041), org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603), org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624), java.lang.Thread.run(Thread.java:748)]

I have added the following properties in alfresco-global.properties. I dont have engine.properties/activiti-custom-context.xml/activiti.cfg.xml  in my project.

 

Is there anything that I am missing in my configuration settings ?

#
# EMAIL
#
mail.host=smtp.gmail.com
mail.port=465
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.username=example@gmail.com
mail.password=123333
mail.encoding=UTF-8
mail.from.default= no-reply@activiti.alfresco.com
mail.smtp.auth=true

 

2 Replies
amruta_w
Senior Member

Re: Error with Mail Task in BPMN Alfresco 5.2 (I am pretty much new to alfresco)

Check you user email id is valid.

abbask01
Senior Member

Re: Error with Mail Task in BPMN Alfresco 5.2 (I am pretty much new to alfresco)

you can read about the config for gmail smtp from here

Regards,
Abbas