Unable to create user - failed to retrieve user metadata:

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

Unable to create user - failed to retrieve user metadata:

I am using the latest version of alfresco community and although user's are able to login, I'm getting this error when ANY user starts a workflow.  The file referenced in the dump is present but the user object is null.  Any clues.

It gets this error 

Unable to create user - failed to retrieve user metadata:

and then due to the object being null it states an error about the file not existing but not true, user object is just null so that is the message.  

Caused by: org.springframework.extensions.webscripts.WebScriptException: 11120001 Error: A user attempted to access a profile page that no longer exists or is invalid. (file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js#16)

Caused by: org.springframework.extensions.surf.exception.UserFactoryException: Unable to create user - failed to retrieve user metadata:
at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:184)
... 53 more
2018-12-12 22:57:38,367 ERROR [org.alfresco.web.site] [ajp-apr-8009-exec-19] org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
org.springframework.extensions.surf.exception.UserFactoryException: Unable to retrieve user from repository
at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:195)
at org.alfresco.web.site.SlingshotUserFactory.loadUser(SlingshotUserFactory.java:146)
at org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:183)
at org.springframework.extensions.surf.support.AbstractUserFactory.initialiseUser(AbstractUserFactory.java:101)
at org.springframework.extensions.surf.RequestContextUtil.initialiseUser(RequestContextUtil.java:260)
at org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:183)
at org.springframework.extensions.surf.RequestContextUtil.populateRequestContext(RequestContextUtil.java:138)
at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.populateRequestContext(AbstractWebFrameworkView.java:385)
at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:295)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:315)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:474)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:443)
at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:188)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.extensions.surf.exception.UserFactoryException: Unable to create user - failed to retrieve user metadata:
at org.springframework.extensions.surf.support.AlfrescoUserFactory.loadUser(AlfrescoUserFactory.java:184)
... 53 more
2018-12-12 23:20:15,092 ERROR [org.springframework.extensions.surf.render.RenderService] [ajp-apr-8009-exec-15] Unable to process template: user-profile
2018-12-12 23:20:15,092 ERROR [org.springframework.extensions.surf.render.RenderService] [ajp-apr-8009-exec-15] An exception occurred while rendering: profile
org.springframework.extensions.surf.exception.RendererExecutionException: 11120002 Failed to execute script 'classpath*:alfresco/templates/org/alfresco/user-profile.js': 11120001 Error: A user attempted to access a profile page that no longer exists or is invalid. (file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js#16)
at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:340)
at org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:58)
at org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:724)
at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.calculateComponentDependencies(TemplateInstanceRenderer.java:77)
at org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:136)
at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:78)
at org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:86)
at org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:78)
at org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:770)
at org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:412)
at org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:307)
at org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:321)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:315)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:474)
at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:443)
at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:218)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:188)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2549)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2538)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 11120002 Failed to execute script 'classpath*:alfresco/templates/org/alfresco/user-profile.js': 11120001 Error: A user attempted to access a profile page that no longer exists or is invalid. (file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js#16)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:217)
at org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:334)
... 56 more
Caused by: org.springframework.extensions.webscripts.WebScriptException: 11120001 Error: A user attempted to access a profile page that no longer exists or is invalid. (file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js#16)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:343)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:209)
... 57 more
Caused by: org.mozilla.javascript.JavaScriptException: Error: A user attempted to access a profile page that no longer exists or is invalid. (file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js#16)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47._c_main_1(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js:16)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js)
at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47._c_script_0(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js:21)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47.call(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js)
at org.mozilla.javascript.gen.file__opt_alfresco_community_tomcat_webapps_share_WEB_INF_classes_alfresco_templates_org_alfresco_user_profile_js_47.exec(file:/opt/alfresco-community/tomcat/webapps/share/WEB-INF/classes/alfresco/templates/org/alfresco/user-profile.js)
at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:333)

1 Reply
Highlighted
Member II

Re: Unable to create user - failed to retrieve user metadata:

After more looking around.  I found that the task only has the above issue when the "Send Email Notification" checkbox is checked.   If this is not checked the task works fine.

Looks like null user is a byproduct of something wrong with the email..

Email works throughout the rest of the application.