Uploaded image for project: 'Newsletter'
  1. Newsletter
  2. NEWSLETTER-245

Unable to send a newsletter : NullPointer getBodyAsHTML

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0, 2.0.0
    • Labels:
      None

      Description

      Caused by: org.apache.cocoon.ProcessingException: Sitemap: error when calling sub-sitemap
      at <map:mount> - resource://org/ametys/runtime/kernel/sitemap.xmap:149:82
      at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:113)
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:122)
      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.buildPipeline(ConcreteTreeProcessor.java:194)
      at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
      at org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:333)
      ... 77 more
      Caused by: java.lang.NullPointerException
      at org.ametys.plugins.newsletter.workflow.SendNewsletterFunction._getBodyAsHtml(SendNewsletterFunction.java:218)
      at org.ametys.plugins.newsletter.workflow.SendNewsletterFunction.execute(SendNewsletterFunction.java:86)
      at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler.invoke(PluginsComponentManager.java:159)
      at com.sun.proxy.$Proxy15.execute(Unknown Source)
      at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:871)
      at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1275)
      at org.ametys.plugins.workflow.Workflow.transitionWorkflow(Workflow.java:496)
      at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:567)
      at org.ametys.plugins.workflow.Workflow.doAction(Workflow.java:253)
      at org.ametys.plugins.workflow.cocoon.WorkflowAction._act(WorkflowAction.java:45)
      at org.ametys.cms.workflow.ContentWorkflowAction._act(ContentWorkflowAction.java:68)
      at org.ametys.plugins.workflow.cocoon.AbstractWorkflowAction.act(AbstractWorkflowAction.java:58)
      at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:125)
      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.buildPipeline(ConcreteTreeProcessor.java:194)
      at org.apache.cocoon.components.treeprocessor.TreeProcessor.buildPipeline(TreeProcessor.java:267)
      at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:111)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                laurence Laurence Aumeunier
                Reporter:
                fravetier Frederic Ravetier
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: