Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7426

NPE when getting the available templates when refreshing the cms page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.7, 4.2.0
    • 4.0M6
    • None
    • None

      The site had already been refreshed several times and the file template-assignment.xml was not modified. So this does not appear to be a cache issue. However, we might want the _refreshValues method to be synchronized. Hitting f5 once again and the problem was gone, i can't tell how to reproduce this.

      Message:		Unable to get or create a ribbon manager for ribbon specific components
      	at <map:serialize type="xml"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:120:44
      	at <map:generate type="workspace"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:117:64
      	at <map:serialize type="xhtml"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:251:47
      	at <map:transform type="minimizer"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:250:110
      	at <map:transform type="i18n"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:247:45
      	at <map:transform type="xslt"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:238:71
      	at <map:transform type="i18n"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:235:45
      	at <map:mount> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/01_RUNTIME/trunk/main/kernel/sitemap.xmap:181:109
      Location:	org.apache.cocoon.util.log.SLF4JLoggerAdapter.error(SLF4JLoggerAdapter.java:46)
      Thrown:
      org.apache.cocoon.ProcessingException: Unable to get or create a ribbon manager for ribbon specific components
      	at <map:serialize type="xml"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:120:44
      	at <map:generate type="workspace"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:117:64
      	at <map:serialize type="xhtml"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:251:47
      	at <map:transform type="minimizer"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:250:110
      	at <map:transform type="i18n"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:247:45
      	at <map:transform type="xslt"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:238:71
      	at <map:transform type="i18n"> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/08_WEB/trunk/main/workspace-web/sitemap.xmap:235:45
      	at <map:mount> - file:/home/quentin/projects/Ametys/templates/CMSWEB/trunk/webapp/cms/../../../../../kernel/01_RUNTIME/trunk/main/kernel/sitemap.xmap:181:109
      	at org.ametys.plugins.core.ui.WorkspaceGenerator.doGenerate(WorkspaceGenerator.java:177)
      	at org.ametys.web.workspace.WorkspaceGenerator.generate(WorkspaceGenerator.java:97)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:782)
      	at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
      	at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101)
      	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321)
      	at org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:125)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
      	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:301)
      	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
      	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:139)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
      	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
      	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
      	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:236)
      	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:178)
      	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
      	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
      	at org.ametys.runtime.servlet.RuntimeServlet.service(RuntimeServlet.java:542)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
      	at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1474)
      	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:745)
      Caused by: java.lang.IllegalStateException: Unable to lookup client side element local components
      	at org.ametys.web.clientsideelement.TemplatesMenu._getGalleryItems(TemplatesMenu.java:160)
      	at org.ametys.core.ui.SimpleMenu.getScripts(SimpleMenu.java:159)
      	at org.ametys.web.clientsideelement.TemplatesMenu.getScripts(TemplatesMenu.java:147)
      	at org.ametys.core.ui.StaticFileImportsClientSideElement.getScripts(StaticFileImportsClientSideElement.java:317)
      	at org.ametys.core.ui.RibbonConfigurationManager._resolveReferences(RibbonConfigurationManager.java:1147)
      	at org.ametys.core.ui.RibbonConfigurationManager._createGroupForUser(RibbonConfigurationManager.java:1097)
      	at org.ametys.core.ui.RibbonConfigurationManager._generateTabGroups(RibbonConfigurationManager.java:889)
      	at org.ametys.core.ui.RibbonConfigurationManager.saxRibbonDefinition(RibbonConfigurationManager.java:822)
      	at org.ametys.plugins.core.ui.WorkspaceGenerator.doGenerate(WorkspaceGenerator.java:172)
      	... 57 more
      Caused by: java.lang.NullPointerException
      	at org.ametys.web.skin.StaticTemplatesAssignmentHandler.getAvailablesTemplates(StaticTemplatesAssignmentHandler.java:64)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:177)
      	at com.sun.proxy.$Proxy17.getAvailablesTemplates(Unknown Source)
      	at org.ametys.web.clientsideelement.TemplatesMenu._lazyInitializeTemplateGallery(TemplatesMenu.java:173)
      	at org.ametys.web.clientsideelement.TemplatesMenu._getGalleryItems(TemplatesMenu.java:156)
      	... 65 more
      

            Unassigned Unassigned
            quentin Quentin Glinel-Mortreuil (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: