Uploaded image for project: 'Workspaces'
  1. Workspaces
  2. WORKSPACES-1083

NullPointer with 2.0.2 when I try to access to index of catalogue or index of any projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0.3, 2.1.0
    • 2.0.2
    • None
    • None
    • 4.4.0

      When I try to access to the index page of the catalogue
      If I switch only the jar workspace to 2.0.1 then it works. If I use 2.0.2 it does not work

      2021-04-26 15:05:34,649 ERROR [sitemap.handled-errors] (http-nio-8080-exec-1;/generate/rse-accueil/fr/index.html) Failed to process pipeline
              at <map:serialize type="xml"> - resource://org/ametys/workspaces/web/sitemap.xmap:108:32
              at <map:generate type="inputdata"> - resource://org/ametys/workspaces/web/sitemap.xmap:107:37
              at <map:serialize type="xhtml"> - resource://org/ametys/workspaces/web/sitemap.xmap:1528:34
              at <map:transform type="minimizer-front"> - resource://org/ametys/workspaces/web/sitemap.xmap:1527:56
              at <map:transform type="i18n"> - resource://org/ametys/workspaces/web/sitemap.xmap:1524:32
              at <map:transform> - resource://org/ametys/workspaces/web/sitemap.xmap:1523:48
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:182:109
      org.apache.cocoon.ProcessingException: Failed to process pipeline
              at <map:serialize type="xml"> - resource://org/ametys/workspaces/web/sitemap.xmap:108:32
              at <map:generate type="inputdata"> - resource://org/ametys/workspaces/web/sitemap.xmap:107:37
              at <map:serialize type="xhtml"> - resource://org/ametys/workspaces/web/sitemap.xmap:1528:34
              at <map:transform type="minimizer-front"> - resource://org/ametys/workspaces/web/sitemap.xmap:1527:56
              at <map:transform type="i18n"> - resource://org/ametys/workspaces/web/sitemap.xmap:1524:32
              at <map:transform> - resource://org/ametys/workspaces/web/sitemap.xmap:1523:48
              at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:182:109
              at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:955)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:585)
              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.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.handleCocoonRedirect(ConcreteTreeProcessor.java:300)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:49)
              at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:348)
              at org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
              at org.apache.cocoon.components.treeprocessor.sitemap.RedirectToURINode.invoke(RedirectToURINode.java:70)
              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:574)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
              at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:688)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
              at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:367)
              at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
              at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
              at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1639)
              at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
              at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.lang.NullPointerException
              at org.ametys.core.user.UserManager.getUser(UserManager.java:346)
              at org.ametys.plugins.workspaces.members.ProjectMemberManager.getProjectMembers(ProjectMemberManager.java:970)
              at org.ametys.plugins.workspaces.members.ProjectMemberManager.getProjectMember(ProjectMemberManager.java:1030)
              at org.ametys.plugins.workspaces.members.ProjectMemberManager.getProjectMember(ProjectMemberManager.java:1001)
              at org.ametys.plugins.workspaces.project.ProjectManager.getUserProjects(ProjectManager.java:415)
              at org.ametys.plugins.workspaces.project.ProjectManager.getUserProjects(ProjectManager.java:399)
              at org.ametys.plugins.workspaces.events.activitystream.ActivityStreamClientInteraction.getProjectsForCurrentUser(ActivityStreamClientInteraction.java:456)
              at org.ametys.plugins.workspaces.events.activitystream.ActivityStreamClientInteraction.getEventsForCurrentUser(ActivityStreamClientInteraction.java:419)
              at org.ametys.plugins.workspaces.events.activitystream.ActivityStreamInputData.toSAX(ActivityStreamInputData.java:86)
              at org.ametys.web.inputdata.InputDataGenerator.generate(InputDataGenerator.java:161)
              at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:581)
              ... 76 more
      

        1. image-2021-04-29-15-10-14-240.png
          41 kB
          Magali Franchet
        2. image-2021-04-29-15-11-01-045.png
          412 kB
          Magali Franchet
        3. image-2021-04-29-15-11-52-420.png
          19 kB
          Magali Franchet
        4. image-2021-04-29-15-12-20-848.png
          211 kB
          Magali Franchet

            kbourgoin Kepa Bourgoin
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: