Hi im currently developing and customizing alfresco using the alfresco sdk 3.0 All-in-one Archtype

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

Hi im currently developing and customizing alfresco using the alfresco sdk 3.0 All-in-one Archtype

im unable to send email  using the mailing task when creating the bpmn workflows. i have adding smtp.gmail.com as the mail server to alfresco-global.properties but still get an exception when  using the workflow with the mailing task .i doubt the alfresco-global.properties are being used as the port number defined in alfresco-global.properties  and  what is one the exception stack are different.

the following is the exception thrown  when running the workflow

org.activiti.engine.ActivitiException: Could not send e-mail in execution 801      at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.handleException(MailActivityBehavior.java:411)      at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:107)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:80)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:116)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:35)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49)      at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:97)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:636)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:629)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:453)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:431)      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:140)      at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:66)      at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44)      at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47)      at org.activiti.engine.impl.bpmn.behavior.UserTaskActivityBehavior.signal(UserTaskActivityBehavior.java:225)      at org.activiti.engine.impl.persistence.entity.ExecutionEntity.signal(ExecutionEntity.java:410)      at org.activiti.engine.impl.persistence.entity.TaskEntity.complete(TaskEntity.java:203)      at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:52)      at org.activiti.engine.impl.cmd.CompleteTaskCmd.execute(CompleteTaskCmd.java:24)      at org.activiti.engine.impl.cmd.NeedsActiveTaskCmd.execute(NeedsActiveTaskCmd.java:59)      at org.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)      at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)      at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)      at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)      at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)      at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)      at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:175)      at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.endNormalTask(ActivitiWorkflowEngine.java:1417)      at org.alfresco.repo.workflow.activiti.ActivitiWorkflowEngine.endTask(ActivitiWorkflowEngine.java:1391)      at org.alfresco.repo.workflow.WorkflowServiceImpl.endTask(WorkflowServiceImpl.java:1035)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)      at java.lang.reflect.Method.invoke(Unknown Source)      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)      at org.alfresco.service.cmr.workflow.WorkflowPermissionInterceptor.invoke(WorkflowPermissionInterceptor.java:64)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)      at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)      at com.sun.proxy.$Proxy90.endTask(Unknown Source)      at org.alfresco.repo.workflow.WorkflowInterpreter.endStartTaskForPath(WorkflowInterpreter.java:1300)      at org.alfresco.repo.workflow.WorkflowInterpreter.executeCommand(WorkflowInterpreter.java:886)      at org.alfresco.repo.admin.BaseInterpreter$1$1.execute(BaseInterpreter.java:162)      at org.alfresco.repo.admin.BaseInterpreter$1$1.execute(BaseInterpreter.java:1)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:333)      at org.alfresco.repo.admin.BaseInterpreter$1.doWork(BaseInterpreter.java:165)      at org.alfresco.repo.admin.BaseInterpreter$1.doWork(BaseInterpreter.java:1)      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)      at org.alfresco.repo.admin.BaseInterpreter.interpretCommand(BaseInterpreter.java:154)      at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.interpretCommand(DynamicInterpreterExtension.java:111)      at org.alfresco.repo.web.scripts.admin.DynamicInterpreterExtension.executeCmd(DynamicInterpreterExtension.java:74)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)      at java.lang.reflect.Method.invoke(Unknown Source)      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)      at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)      at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5._c_main_8(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js:191)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js:199)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_admin_consoles_admin_workflowconsole_post_js_5.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/admin/consoles/admin-workflowconsole.post.js)      at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)      at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)      at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)      at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)      at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)      at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)      at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)      at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)      at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)      at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)      at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)      at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)      at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)      at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:315)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)      at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)      at java.lang.Thread.run(Unknown Source) Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : localhost:25      at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1421)      at org.apache.commons.mail.Email.send(Email.java:1448)      at org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior.execute(MailActivityBehavior.java:102)      ... 147 more Caused by: javax.mail.SendFailedException: Invalid Addresses;   nested exception is:      com.sun.mail.smtp.SMTPAddressFailedException: 530 SMTP authentication is required.       at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1996)      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1240)      at javax.mail.Transport.send0(Transport.java:255)      at javax.mail.Transport.send(Transport.java:124)      at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1411)      ... 149 more Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 530 SMTP authentication is required.       at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1896)      ... 153 more
1 Reply
dharmendra_pan2
Active Member II

Re: Hi im currently developing  and customizing alfresco using the alfresco sdk 3.0 All-in-one Archtype

You can use alfresco admin support tool to validate email configurations

Enterprise Edition

http://<your-host-name>:<alfresco-port>/alfresco/service/enterprise/admin

Community edition 

http://<your-host-name>:<alfresco-port>/alfresco/s/admin

You can use your email address and content to test the email setting works or not...