cancel
Showing results for 
Search instead for 
Did you mean: 

Invitations for external users fails: email not sent

tschaefer
Champ in-the-making
Champ in-the-making
I use alfresco community version 4.0.a.

The email outbound smtps configuration is ok in general.

When i want to invite an external user, then there is no error message, it say 0 errors.
However, the email never arrives.

What can be the reason for such a behaviour?

Thank you

Thorsten
14 REPLIES 14

kirit
Champ on-the-rise
Champ on-the-rise
Hello tschaefer,
I have not done any configuration for outbound email and still tried inviting external user via email. No error and no invite.
So i think you have to make sure your outbound configuration is working properly or you can post the configurations you have made.

tschaefer
Champ in-the-making
Champ in-the-making
The outbound cinfiguration in principle seems to work properly. This is because I see that my alfresco server automatically sends the Report messages with the newest activities and so on.

At the moment it seems to me that it is ONLY the invitation which does not work.

What can I do?

The same problem was with one of the versions 3.4d or 3.4e, and with the other of this versions it worked fine, having the same OUTBOUNT configuration in alfresco-global.properties

Has anyone an idea??

Thorsten

andrea_molon
Champ in-the-making
Champ in-the-making
HI,
Did you try to edit alfresco-global.properties? 

### E-mail site invitation setting ###
notification.email.siteinvite=false

to

### E-mail site invitation setting ###
notification.email.siteinvite=true

tschaefer
Champ in-the-making
Champ in-the-making
Thank you !!

Your are right, now it is solved

nickbsd
Champ in-the-making
Champ in-the-making
When I attempt to send an invite using an external user I receive the following error message:

10:36:14,175  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 09270002 Wrapped Exception (with status template): 09270005 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 09270004 Failed to signal transition sendInvite from workflow task jbpm$32.
org.springframework.extensions.webscripts.WebScriptException: 09270002 Wrapped Exception (with status template): 09270005 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 09270004 Failed to signal transition sendInvite from workflow task jbpm$32.
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:383)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:619)
Caused by: org.alfresco.scripts.ScriptException: 09270005 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 09270004 Failed to signal transition sendInvite from workflow task jbpm$32.
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282)
        at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
        at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
        … 24 more
Caused by: org.alfresco.service.cmr.workflow.WorkflowException: 09270004 Failed to signal transition sendInvite from workflow task jbpm$32.
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:1849)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.endTask(WorkflowServiceImpl.java:648)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:160)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy68.endTask(Unknown Source)
        at org.alfresco.repo.invitation.InvitationServiceImpl.startNominatedInvite(InvitationServiceImpl.java:1345)
        at org.alfresco.repo.invitation.InvitationServiceImpl.inviteNominated(InvitationServiceImpl.java:228)
        at org.alfresco.repo.invitation.InvitationServiceImpl.inviteNominated(InvitationServiceImpl.java:213)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy98.inviteNominated(Unknown Source)
        at org.alfresco.repo.site.script.Site.inviteNominated(Site.java:643)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
        at org.mozilla.javascript.optimizer.OptRuntime.callN(OptRuntime.java:86)
        at org.mozilla.javascript.gen.c14._c1(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js:123)
        at org.mozilla.javascript.gen.c14.call(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c14._c0(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js:134)
        at org.mozilla.javascript.gen.c14.call(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c14.call(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.mozilla.javascript.gen.c14.exec(file:/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)
        … 28 more
Caused by: org.jbpm.graph.def.DelegationException: 09270003 Cannot find the email templatte!
        at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:388)
        at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:379)
        at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:301)
        at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:241)
        at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:213)
        at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:196)
        at org.jbpm.graph.def.Transition.take(Transition.java:152)
        at org.jbpm.graph.def.Node.leave(Node.java:479)
        at org.jbpm.graph.node.StartState.leave(StartState.java:82)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
        at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$39cb43a8.leave(<generated>)
        at org.jbpm.graph.exe.Token.signal(Token.java:223)
        at org.jbpm.graph.exe.Token.signal(Token.java:188)
        at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:495)
        at org.alfresco.repo.workflow.jbpm.WorkflowTaskInstance.end(WorkflowTaskInstance.java:135)
        at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:436)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$26.doInJbpm(JBPMEngine.java:1833)
        at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
        at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:1798)
        … 88 more
Caused by: org.alfresco.service.cmr.invitation.InvitationException: 09270003 Cannot find the email templatte!
        at org.alfresco.repo.invitation.site.InviteSender.getEmailTemplateNodeRef(InviteSender.java:221)
        at org.alfresco.repo.invitation.site.InviteSender.getEmailTemplate(InviteSender.java:150)
        at org.alfresco.repo.invitation.site.InviteSender.buildMailText(InviteSender.java:141)
        at org.alfresco.repo.invitation.site.InviteSender.sendMail(InviteSender.java:115)
        at org.alfresco.repo.invitation.site.SendInviteAction.execute(SendInviteAction.java:82)
        at org.jbpm.graph.def.Action.execute(Action.java:129)
        at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:284)
        … 111 more



Any ideas into what could be causing this?

Alfresco 3.4.d

mrogers
Star Contributor
Star Contributor
The relevant bit of the exception is 09270003 Cannot find the email templatte!

nickbsd
Champ in-the-making
Champ in-the-making
How can I be missing a template if I'm deploying .war files in Tomcat? Strange..

scouil
Star Contributor
Star Contributor
check:
[yourserver]/share/page/repository#filter=path%7C%2FDictionnaire%2520de%2520donn%25E9es%2FMod%25E8les%2520d%2527e-mail%2FMod%25E8les%2520d%2527e-mail%2520d%2527invitation&page=1
is there "invite_user_email.ftl" ?

nickbsd
Champ in-the-making
Champ in-the-making
I'm missing the /page/* directory.

[root@alfresco/usr/local/apache-tomcat-6.0/webapps/share]# ls -l
total 24
drwxr-xr-x   2 www  www   512 Aug  3 18:27 META-INF
drwxr-xr-x   4 www  www   512 Aug  3 18:27 WEB-INF
drwxr-xr-x  40 www  www  1024 Aug  3 18:27 components
drwxr-xr-x   2 www  www   512 Aug  3 18:27 css
-rw-r–r–   1 www  www  1406 Jan 26  2011 favicon.ico
-rw-r–r–   1 www  www   160 Jan 26  2011 index.jsp
drwxr-xr-x   3 www  www  1024 Aug  3 18:27 js
drwxr-xr-x  14 www  www  1024 Aug  3 18:27 modules
-rw-r–r–   1 www  www  1489 Jan 26  2011 site-index.jsp
drwxr-xr-x  10 www  www   512 Aug  3 18:27 templates
drwxr-xr-x   7 www  www   512 Aug  3 18:27 themes
drwxr-xr-x  62 www  www  1536 Aug  3 18:27 yui

I do however have the 'invite_user_email.ftl' template in the following directory:

/usr/local/apache-tomcat-6.0/webapps/alfresco/WEB-INF/classes/alfresco/templates/email/invite_user_email.ftl