Details

    • Type: Feature Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Cloud 36
    • Fix Version/s: Cloud 36
    • Component/s: Web Scripts and Surf
    • Labels:
      None
    • Environment:
      Clodu2 myAlfrescoHead build 497 rel36rc2

      Description

      Steps:

      1. Create premium user.
      2. login to cloud and open > Account Settings > Site Manager tab

      Expected: Info about all created sites should be displayed.
      Actual:

      The Web Script /share/service/components/console/manage-sites has responded with a status of 500 - Internal Error.
      

      Message:

      04280003 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js': 04280002 TypeError: Cannot read property "config" from null (file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js#4)
      

      Exception:

      org.mozilla.javascript.EcmaError - TypeError: Cannot read property "config" from null (file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js#4)
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3687)
      	org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3665)
      	org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3693)
      	org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3712)
      	org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3725)
      	org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1483)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27._c_disableFacetedSearch_1(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js:4)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27.call(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js)
      	org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27._c_main_2(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js:9)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27.call(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js)
      	org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27._c_script_0(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js:12)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27.call(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js)
      	org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
      	org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27.call(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.get.js)
      	org.mozilla.javascript.gen.file__opt_tomcat7_share_webapps_share_WEB_INF_classes_alfresco_site_webscripts_org_alfresco_cloud_core_customizations_faceted_search_enable_share_header_share_header_get_js_27.exec(file:/opt/tomcat7/share/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/cloud/core/customizations/faceted-search/enable/share/header/share-header.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:1381)
      	org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
      	org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
      	org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:236)
      	org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
      	org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
      	org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310)
      	org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
      	org.springframework.extensions.surf.render.RenderService.process(RenderService.java:598)
      	org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:504)
      	org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1283)
      	org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
      	freemarker.core.Environment.visit(Environment.java:341)
      	freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.IfBlock.accept(IfBlock.java:84)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Environment.process(Environment.java:243)
      	org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
      	org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
      	org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
      	org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:203)
      	org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
      	org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:431)
      	org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:960)
      	org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:899)
      	org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1262)
      	org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
      	freemarker.core.Environment.visit(Environment.java:341)
      	freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Environment.process(Environment.java:243)
      	org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
      	org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
      	org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
      	org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:203)
      	org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
      	org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:850)
      	org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91)
      	org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:414)
      	org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
      	org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
      	freemarker.core.Environment.visit(Environment.java:341)
      	freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Environment$1.render(Environment.java:313)
      	org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119)
      	org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:414)
      	org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
      	org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
      	freemarker.core.Environment.visit(Environment.java:341)
      	freemarker.core.UnifiedCall.accept(UnifiedCall.java:136)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Environment.visit(Environment.java:487)
      	freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Macro$Context.runMacro(Macro.java:209)
      	freemarker.core.Environment.visit(Environment.java:694)
      	freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.MixedContent.accept(MixedContent.java:93)
      	freemarker.core.Environment.visit(Environment.java:265)
      	freemarker.core.Environment.process(Environment.java:243)
      	org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
      	org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
      	org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
      	org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:720)
      	org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
      	org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
      	org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:761)
      	org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:411)
      	org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:306)
      	org.alfresco.module.org_alfresco_module_cloud_share.TenantPageView.renderView(TenantPageView.java:156)
      	org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316)
      	org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
      	org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
      	org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
      	org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
      	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
      	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
      	org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
      	org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
      	org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
      	org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
      	org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
      	org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      	org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:315)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
      	org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:203)
      	org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	de.javakaffee.web.msm.RequestTrackingContextValve.invoke(RequestTrackingContextValve.java:99)
      	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	de.javakaffee.web.msm.RequestTrackingHostValve.invoke(RequestTrackingHostValve.java:170)
      	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      	org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2379)
      	java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      	java.lang.Thread.run(Thread.java:745)
      

      THe issue is not reproduced on Cloud2 myAlfrescoHead build 475 rel36rc1

      please see attached screenshot: sites-manager page.png

        Attachments

          Activity

            People

            • Assignee:
              closedissues Closed Issues
              Reporter:
              dyukhnovets Dmitry Yukhnovets [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: