cancel
Showing results for 
Search instead for 
Did you mean: 

Internal and External Invites have stopped working

nickbsd
Champ in-the-making
Champ in-the-making
Not sure what's going on but all users have lost the ability to invite internal and external users to their sites.

Note: The invites were working at one point. The server has not been rebooted or the db server has not crashed so I'm puzzled to see this happening.

Alfresco Share 3.4.e

error in the tomcat stdout.log

09:39:26,877  ERROR [extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 01210075 Wrapped Exception (with status template): 01215956 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 01215955 Failed to signal transition sendInvite from workflow task jbpm$708.
org.springframework.extensions.webscripts.WebScriptException: 01210075 Wrapped Exception (with status template): 01215956 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 01215955 Failed to signal transition sendInvite from workflow task jbpm$708.
        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: 01215956 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js': 01215955 Failed to signal transition sendInvite from workflow task jbpm$708.
        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: 01215955 Failed to signal transition sendInvite from workflow task jbpm$708.
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.endTask(JBPMEngine.java:1849)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.endTask(WorkflowServiceImpl.java:648)
        at sun.reflect.GeneratedMethodAccessor1501.invoke(Unknown Source)
        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:184)
        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:653)
        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.c42._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:99)
        at org.mozilla.javascript.gen.c42.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.c42._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.c42.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.c42.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.c42.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: 01215954 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.GeneratedMethodAccessor1503.invoke(Unknown Source)
        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$$61cc5300.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)
        … 87 more
Caused by: org.alfresco.service.cmr.invitation.InvitationException: 01215954 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)
        … 109 more

10 REPLIES 10

jpotts
World-Class Innovator
World-Class Innovator
This line in your stack trace:
Caused by: org.jbpm.graph.def.DelegationException: 01215954 Cannot find the email templatte!

Makes me wonder if someone has deleted the email template from Data Dictionary/Email Templates or if the permissions on that folder or any of the child folders have changed such that the user signalling the transition no longer has read access on the email template.

Jeff

nickbsd
Champ in-the-making
Champ in-the-making
How would I reset the template with default permissions? I've attempted to look around and the template is inheriting permissions.

Screenshot of the invite.ftl file

[img]http://i.imgur.com/oeUTt.png[/img]

Any help would be appreciated! Note: I did edit the invite template and it seems the invitation didn't work afterwards. I'm happy that someone has responded to my thread!

Thanks!

jpotts
World-Class Innovator
World-Class Innovator
Okay, well if the template is inheriting permissions, that's definitely good. But also check the permissions on the template's parent folder, and that parent's parent, etc. until you get to Company Home are okay.

Looking at the source code and assuming you have not made any customizations, here is the Lucene search string that gets executed when the jBPM action tries to find the invite template:

PATH:"app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.ftl"

Can you go into the node browser and execute this Lucene search. You should see a node come back with the following characteristics:

Type: {http://www.alfresco.org/model/content/1.0}content
Name: invite-email.ftl
Mime-type: text/plain

Also, note the folder is Data Dictionary/Email Templates/invite NOT Data Dictionary/Email Templates/Invite Email Templates.

Jeff

nickbsd
Champ in-the-making
Champ in-the-making
Okay, well if the template is inheriting permissions, that's definitely good. But also check the permissions on the template's parent folder, and that parent's parent, etc. until you get to Company Home are okay.

Looking at the source code and assuming you have not made any customizations, here is the Lucene search string that gets executed when the jBPM action tries to find the invite template:

PATH:"app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.ftl"

Can you go into the node browser and execute this Lucene search. You should see a node come back with the following characteristics:

Type: {http://www.alfresco.org/model/content/1.0}content
Name: invite-email.ftl
Mime-type: text/plain

Also, note the folder is Data Dictionary/Email Templates/invite NOT Data Dictionary/Email Templates/Invite Email Templates.

Jeff


Thank you for your quick response.

Inherited permissions are good down to the root folder so that looks good.

Can you guide me to how to perform the lucene search? If I login to Alfresco as the administrator and click on the administrator console, I click on Node browser but it doesn't give me an option to search?

[img]http://i.imgur.com/iuzpt.png[/img]

If I click on any of the reference stores and perform the lucene search I get an error message:

[img]http://i.imgur.com/62VDc.png[/img]

jpotts
World-Class Innovator
World-Class Innovator
Sure…

1. Click workspace://SpacesStore. That's the main repository for Alfresco.
2. At the top, under "Search" change the dropdown to "Lucene".
3. Paste the following into the search input field, then click Search:
PATH:"app:company_home/app:dictionary/app:email_templates/cm:invite/cm:invite-email.ftl"
4. If you do not see a result, we have a problem. If you do see a result, click either the name or the node reference.
5. Compare the properties listed with the properties in my earlier post.

Quick tip to protect your sanity: In the Alfresco Explorer Node Browser never, ever use the Back Button. When and if you upgrade to Alfresco 4, you can use the Node Browser in Alfresco Share and it is a little friendlier.

Jeff

nickbsd
Champ in-the-making
Champ in-the-making
That worked beautifully..

Here are the results:

[img]http://i.imgur.com/TLDOh.png[/img]

nickbsd
Champ in-the-making
Champ in-the-making
That worked beautifully..

Here are the results:

[img]http://i.imgur.com/TLDOh.png[/img]

If I click on 'invite-email.ftl' it brings me into another page.

Are these permissions correct?

The user ntaita is the site administrator.

[img]http://i.imgur.com/zvtE8.png[/img]

jpotts
World-Class Innovator
World-Class Innovator
I expected to see "GROUP_EVERYONE" with "Consumer" rights on that file. You might try adding the EVERYONE group to that file with Consumer rights and see if that fixes your invite problem. Because inheritance is turned on, I suspect that someone decided to remove the EVERYONE group from Company Home which caused people to lose access to that file. If you intend to not add EVERYONE back to Company Home, at least add them to the invite template. There may be other folders and files you need to do that to as well–I'm not sure.

To modify the permissions with Explorer, navigate to that template, go into the details page, and then click Manage Space Users. You can then click Invite to add the EVERYONE group with Consumer.

Jeff

nickbsd
Champ in-the-making
Champ in-the-making
SUCCESS!! I'm not sure how the permissions got messed up on the file but as soon as I delegated EVERYONE access to the file, everything starts working again.

Thanks for all your help Jeff.. I've been trying to tackle this issue for a few months now.

+1 to Jeff