com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65]

Atlassian JIRA | Mark Symons | 5 years ago
  1. 0

    A workflow scheme that uses a "bad workflow" (contains Status ID error introuduced via XML import) cannot be unhooked from a project. The "Actions Cog" is missing from the workflow tab so it's not possible to switch to a different scheme and undo the damage. The bad workflow cannot be deleted because it is active. The workflow scheme cannot be edited or deleted because it is active. There are three fixes, all rather extreme: # Roll back: restore JIRA from back-up # Make changes to the JIRA database to edit the Status ID # Delete the project & then re-import the XML workflow after fixing the Status ID there. I believe that it's a defect that there is no way to switch to a different workflow scheme. h3. Background: An XML workflow that has been massaged to contain good "fieldscreen.id" can be imported into JIRA without generating an exception on import. However, if the XML contains an invalid "status.id" then the import will appear to succeed without problems. If the workflow is then associated with a workflow scheme and that scheme associated with a project then an exception will display on-screen when viewing the workflow tab for the project admin: {noformat} Error rendering WebPanel (workflows/workflows.vm): org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] {noformat} From atlassian-jira.log: {noformat} 2012-05-11 14:01:18,815 http-8080-13 WARN marks 841x388766x1 17d4esl 192.168.150.57 /plugins/servlet/project-config/TST/workflows [plugin.web.model.ResourceTemplateWebPanel] Error rendering WebPanel (workflows/workflows.vm): org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) at com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33) at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47) (snip..see attached log) {noformat} h3. Note Also: There might be two other issues here.. # The XML import should check Status ID # Integrity Checker should check Status ID. This is what it gives currently when there is a workflow with a broken Status ID: Check Workflow Integrity PASSED: Check workflow entry states are correct PASSED: Check workflow current step entries PASSED: Check JIRA issues with null status

    Atlassian JIRA | 5 years ago | Mark Symons
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65]
  2. 0

    A workflow scheme that uses a "bad workflow" (contains Status ID error introuduced via XML import) cannot be unhooked from a project. The "Actions Cog" is missing from the workflow tab so it's not possible to switch to a different scheme and undo the damage. The bad workflow cannot be deleted because it is active. The workflow scheme cannot be edited or deleted because it is active. There are three fixes, all rather extreme: # Roll back: restore JIRA from back-up # Make changes to the JIRA database to edit the Status ID # Delete the project & then re-import the XML workflow after fixing the Status ID there. I believe that it's a defect that there is no way to switch to a different workflow scheme. h3. Background: An XML workflow that has been massaged to contain good "fieldscreen.id" can be imported into JIRA without generating an exception on import. However, if the XML contains an invalid "status.id" then the import will appear to succeed without problems. If the workflow is then associated with a workflow scheme and that scheme associated with a project then an exception will display on-screen when viewing the workflow tab for the project admin: {noformat} Error rendering WebPanel (workflows/workflows.vm): org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] {noformat} From atlassian-jira.log: {noformat} 2012-05-11 14:01:18,815 http-8080-13 WARN marks 841x388766x1 17d4esl 192.168.150.57 /plugins/servlet/project-config/TST/workflows [plugin.web.model.ResourceTemplateWebPanel] Error rendering WebPanel (workflows/workflows.vm): org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65] at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) at com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33) at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47) (snip..see attached log) {noformat} h3. Note Also: There might be two other issues here.. # The XML import should check Status ID # Integrity Checker should check Status ID. This is what it gives currently when there is a workflow with a broken Status ID: Check Workflow Integrity PASSED: Check workflow entry states are correct PASSED: Check workflow current step entries PASSED: Check JIRA issues with null status

    Atlassian JIRA | 5 years ago | Mark Symons
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65]
  3. 0

    NullPointerException after importing workflow XML - Atlassian Documentation

    atlassian.com | 3 months ago
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If you reload a plugin its webpanels will not be renderable and you will get: {noformat} com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/resources/templates/jira-dnd-attachment.vm' at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) at com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33) at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:141) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:84) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModuleAndLetNoThrowablesEscape(ModuleWebComponentImpl.java:67) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModules(ModuleWebComponentImpl.java:45) at com.atlassian.jira.web.action.issue.ViewIssue.renderPanels(ViewIssue.java:267) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:514) at webwork.util.ValueStack.findValue(ValueStack.java:213) {noformat}

    Atlassian JIRA | 5 years ago | Brad Baker [Atlassian]
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/resources/templates/jira-dnd-attachment.vm'
  6. 0

    If you reload a plugin its webpanels will not be renderable and you will get: {noformat} com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/resources/templates/jira-dnd-attachment.vm' at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100) at com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33) at com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47) at com.atlassian.plugin.web.descriptors.DefaultWebPanelModuleDescriptor$ContextAwareWebPanel.getHtml(DefaultWebPanelModuleDescriptor.java:141) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModule(ModuleWebComponentImpl.java:84) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModuleAndLetNoThrowablesEscape(ModuleWebComponentImpl.java:67) at com.atlassian.jira.web.component.ModuleWebComponentImpl.renderModules(ModuleWebComponentImpl.java:45) at com.atlassian.jira.web.action.issue.ViewIssue.renderPanels(ViewIssue.java:267) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:514) at webwork.util.ValueStack.findValue(ValueStack.java:213) {noformat}

    Atlassian JIRA | 5 years ago | Brad Baker [Atlassian]
    com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '/resources/templates/jira-dnd-attachment.vm'

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.templaterenderer.RenderingException

      org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getHtml' in class com.atlassian.jira.web.component.IssueConstantWebComponent threw exception java.lang.NullPointerException at workflows/workflows.vm[line 136, column 65]

      at com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render()
    2. com.atlassian.templaterenderer
      AbstractVelocityWebPanelRenderer.render
      1. com.atlassian.templaterenderer.velocity.one.six.internal.VelocityTemplateRendererImpl.render(VelocityTemplateRendererImpl.java:100)
      2. com.atlassian.templaterenderer.AbstractVelocityWebPanelRenderer.render(AbstractVelocityWebPanelRenderer.java:33)
      2 frames
    3. com.atlassian.plugin
      ResourceTemplateWebPanel.getHtml
      1. com.atlassian.plugin.web.model.ResourceTemplateWebPanel.getHtml(ResourceTemplateWebPanel.java:47)
      1 frame