AnsweredAssumed Answered

Invites to Sharew web sites

Question asked by konsultex on Nov 19, 2009
Latest reply on Dec 30, 2009 by konsultex
I recently upgraded a 2.1 installation to 3.2r using a 2 step procedure. First to 3.0 and finally to 3.2 since there are problems in the way that I solved with forum posts and Jira suggestions. Everything seems to be working fine. I'm using JBoss 4.2.3, Java 1.6.0_16 on FC4. The only customization I have is an email alert rule in a specific space. This alert is currently working fine.

The problem I have is related to invites to web sites. If I invite an external user, what happens is that the progress window shows "0 invites sent out. 1 failure". server.log shows this:


2009-11-19 00:18:37,816 INFO  [STDOUT] 00:18:37,812 User:miguelk ERROR [web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 10190028 Wrapped Exception (with status template): 10190027 Failed to execute script '/org/alfresco/repository/site/invitation/invitation.post.json.js (in classpath store file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts)': Non-unique path: found : /app:company_home/app:user_homes 0                                  
org.alfresco.web.scripts.WebScriptException: 10190028 Wrapped Exception (with status template): 10190027 Failed to execute script '/org/alfresco/repository/site/invitation/invitation.post.json.js (in classpath store file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts)': Non-unique path: found : /app:company_home/app:user_homes 0              
        at org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)                                         
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165)                                                 
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:371)                                            
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:326)                          
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:421)                                 
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:438)                               
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:302)                                        
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:295)                                                     
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:172)                                                     
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)                                                 
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)                                                                         
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)                                    
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)                                            
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)                                                   
        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:230)                                                  
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)                                                  
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)                                     
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)                                                      
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)                                                        
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)                                                        
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)                                        
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)                                                    
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)                                                          
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)                                                           
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)                                     
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)                                                              
        at java.lang.Thread.run(Thread.java:619)                                                                                                
Caused by: org.alfresco.scripts.ScriptException: 10190027 Failed to execute script '/org/alfresco/repository/site/invitation/invitation.post.json.js (in classpath store file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts)': Non-unique path: found : /app:company_home/app:user_homes 0                                                             
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:178)                                                
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:274)                                              
        at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)                            
        at org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:819)                                                 
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)                                                  
        … 27 more                                                                                                                             
Caused by: java.lang.IllegalStateException: Non-unique path: found : /app:company_home/app:user_homes 0                                         
        at org.alfresco.repo.security.person.AbstractHomeFolderProvider.resolvePath(AbstractHomeFolderProvider.java:259)                        
        at org.alfresco.repo.security.person.AbstractHomeFolderProvider.getPathNodeRef(AbstractHomeFolderProvider.java:244)                     
        at org.alfresco.repo.security.person.UIDBasedHomeFolderProvider.getHomeFolder(UIDBasedHomeFolderProvider.java:74)                       
        at org.alfresco.repo.security.person.AbstractHomeFolderProvider$OnCreateNode.doWork(AbstractHomeFolderProvider.java:298)                
        at org.alfresco.repo.security.person.AbstractHomeFolderProvider$OnCreateNode.doWork(AbstractHomeFolderProvider.java:283)                
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:503)                                      
        at org.alfresco.repo.security.person.AbstractHomeFolderProvider.onCreateNode(AbstractHomeFolderProvider.java:270)                       
        at org.alfresco.repo.security.person.HomeFolderManager.onCreateNode(HomeFolderManager.java:136)                                         
        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.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:179)                                    
        at $Proxy72.onCreateNode(Unknown Source)                                                                                                
        at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source)                                                                        
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                                     
        at org.alfresco.repo.policy.PolicyFactory$MultiHandler.invoke(PolicyFactory.java:306)                                                   
        at org.alfresco.repo.policy.$Proxy249.onCreateNode(Unknown Source)                                                                      
        at org.alfresco.repo.node.AbstractNodeServiceImpl.invokeOnCreateNode(AbstractNodeServiceImpl.java:256)                                  
        at org.alfresco.repo.node.db.DbNodeServiceImpl.createNode(DbNodeServiceImpl.java:330)                                                   
        at sun.reflect.GeneratedMethodAccessor547.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:304)                                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)                    
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)                            
        at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(SingleEntryTransactionResourceInterceptor.java:163)                                                                                                                                            
        at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntryTransactionResourceInterceptor.java:138)   
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                             
        at $Proxy65.createNode(Unknown Source)                                                                                                  
        at sun.reflect.GeneratedMethodAccessor547.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:304)                                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)                    
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)                            
        at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:110)                                  
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework                                                                                                                  
2009-11-19 00:18:37,817 INFO  [STDOUT] .aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                    
        at $Proxy65.createNode(Unknown Source)                                                                                                  
        at sun.reflect.GeneratedMethodAccessor547.invoke(Unknown Source)                                                                        
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                
        at java.lang.reflect.Method.invoke(Method.java:597)                                                                                     
        at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)       
        at $Proxy66.createNode(Unknown Source)                                                                                                  
        at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:279)                                                  
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:188)                            
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:188)                            
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                             
        at $Proxy65.createNode(Unknown Source)                                                                                                  
        at org.alfresco.repo.security.person.PersonServiceImpl.createPerson(PersonServiceImpl.java:615)                                         
        at org.alfresco.repo.security.person.PersonServiceImpl.createPerson(PersonServiceImpl.java:598)                                         
        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:304)                                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)                    
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)                            
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)                
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)                                               
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                             
        at $Proxy115.createPerson(Unknown Source)                                                                                               
        at org.alfresco.repo.invitation.InvitationServiceImpl$1.doWork(InvitationServiceImpl.java:968)                                          
        at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:503)                                      
        at org.alfresco.repo.invitation.InvitationServiceImpl.createInviteePerson(InvitationServiceImpl.java:966)                               
        at org.alfresco.repo.invitation.InvitationServiceImpl.startNominatedInvite(InvitationServiceImpl.java:1205)                             
        at org.alfresco.repo.invitation.InvitationServiceImpl.inviteNominated(InvitationServiceImpl.java:275)                                   
        at org.alfresco.repo.invitation.InvitationServiceImpl.inviteNominated(InvitationServiceImpl.java:245)                                   
        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:304)                                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)                    
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)                            
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)            
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)                                               
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)                           
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)                            
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)                                             
        at $Proxy151.inviteNominated(Unknown Source)                                                                                            
        at org.alfresco.repo.site.script.Site.inviteNominated(Site.java:632)                                                                    
        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.c17._c1(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js:123)
        at org.mozilla.javascript.gen.c17.call(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/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.c17._c0(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js:134)
        at org.mozilla.javascript.gen.c17.call(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/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.c17.call(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.mozilla.javascript.gen.c17.exec(file:/usr/local/jboss-4.2.3.GA/server/default/tmp/deploy/tmp8284114638285581900alfresco-exp.war/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/site/invitation/invitation.post.json.js)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:457)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:174)
        … 31 more

If I search for a user, when I invite this user, the email is sent out but arrives empty. Unfortunately nothing is logged in server.log,alfresco.log

So this is pretty frustrating because one of the main reasons for upgrading was to use collaboration spaces with internal and external users. Since the invites to external users don't go out, there seems to be no way they can log in.

Any suggestions about what to check?

Thanks

Outcomes