AnsweredAssumed Answered

Share site dashboard stopped working! servletexception

Question asked by flopez on Jun 21, 2011
Latest reply on Nov 26, 2013 by aaditvmajmudar
Hello!

I have an issue, on Alfresco Share 3.4c. I'm currently using multitenancy, there I created some sites, recently one of the sites (mysite) stopped working! something happened to the site's dashboard, when I click to access the site /share/page/site/mysite/documentlibrary, I get this error:


SEVERE: Servlet.service() for servlet Spring Surf Dispatcher Servlet threw exception
javax.servlet.ServletException: Could not resolve view with name 'site/mysite/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'
   at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)
   at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   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.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
   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:298)
   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
   at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
   at java.lang.Thread.run(Thread.java:619)

The site itself seems to be fine, I access /share/page/site/mysite/documentlibrary and I can see the documents BUT the menu bar "[Dashboard] [Document Library] [Members] …" does not appear.  :?

There-s no other log info to be found, I-ve researched and there are some JIRAS similiar to the issue, but most say its been corrected for the latest version and they are from 2009, 2010. Also there are other forums with the same error, but they are related to creating sites trough scripts…

If I try to access  /share/page/site/mysite/customise-site-dashboard  I get this error for the dashlets>

An error has occured in the Share component: /smart-ecm/service/components/dashboard/customise-layout.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 05210005 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js': 05210004 TypeError: Cannot read property "properties" from null (file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js#4)
Server: Alfresco Spring WebScripts - v1.0.0 (Release Candidate 2 739) schema 1,000
Time: Jun 21, 2011 10:58:40 PM
Click here to view full technical information on the error.
Exception: org.mozilla.javascript.EcmaError - TypeError: Cannot read property "properties" from null (file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js#4)
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1362)
org.mozilla.javascript.gen.c42._c1(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js:4)
org.mozilla.javascript.gen.c42.call(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js)
org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
org.mozilla.javascript.gen.c42._c0(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js:32)
org.mozilla.javascript.gen.c42.call(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js)
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
org.mozilla.javascript.gen.c42.call(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js)
org.mozilla.javascript.gen.c42.exec(file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:203)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:296)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:468)
org.springframework.extensions.surf.render.RenderService.renderRawComponent(RenderService.java:940)
org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:113)
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:797)
org.springframework.extensions.surf.taglib.RegionIncludeTag.doStartTag(RegionIncludeTag.java:36)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:213)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:148)
org.springframework.extensions.webscripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:92)
org.springframework.extensions.webscripts.GenericFreemarkerTagDirective.execute(GenericFreemarkerTagDirective.java:121)
freemarker.core.Environment.visit(Environment.java:263)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.Environment.process(Environment.java:190)
freemarker.template.Template.process(Template.java:237)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:166)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:328)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:390)
org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:49)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:114)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startRegionRenderer(RenderService.java:749)
org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:693)
org.springframework.extensions.surf.render.PresentationUtil.renderRegion(PresentationUtil.java:113)
org.springframework.extensions.surf.taglib.RegionTag.doStartTag(RegionTag.java:101)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:213)
org.springframework.extensions.surf.render.TagService.execute(TagService.java:148)
org.springframework.extensions.webscripts.FreemarkerTagSupportDirective.executeTag(FreemarkerTagSupportDirective.java:92)
org.springframework.extensions.webscripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:122)
freemarker.core.Environment.visit(Environment.java:263)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.Environment.visit(Environment.java:395)
freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.Macro$Context.runMacro(Macro.java:172)
freemarker.core.Environment.visit(Environment.java:603)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:210)
freemarker.core.Environment.process(Environment.java:190)
freemarker.template.Template.process(Template.java:237)
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:166)
org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:328)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:79)
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:582)
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:124)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:70)
org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:131)
org.springframework.extensions.surf.render.RenderService.startPageRenderer(RenderService.java:634)
org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:611)
org.springframework.extensions.surf.render.PresentationUtil.renderPage(PresentationUtil.java:74)
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:343)
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:284)
org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:163)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
java.lang.Thread.run(Thread.java:619)
Exception: org.springframework.extensions.webscripts.WebScriptException - 05210004 TypeError: Cannot read property "properties" from null (file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js#4)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
Exception: org.springframework.extensions.webscripts.WebScriptException - 05210005 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js': 05210004 TypeError: Cannot read property "properties" from null (file:/opt/alfresco-3.4.d/tomcat/webapps/smart-ecm/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/dashboard/customise-layout.get.js#4)
org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)

Where I don-t understad why would it work for other sites but not this one, and worst I cant find a workaround for it other than re-creating a new site and moving the whole library (I suspect a restart may do the trick, and I believe after the last restart the issue happened, but that's not a solution for this error)

…what can be the reason for this! I can't afford this to happen again… please HELP!!!!!

Outcomes