java.lang.NullPointerException

Atlassian JIRA | Jonathan Appel [Atlassian] | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Editing an existing "Permission Condition" condition results in a NPE. This appears to occure regardless of the permission selected. {noformat} 2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [velocity] Method getText threw exception for reference $i18n in template templates/jira/workflow/com/atlassian/jira/plugin/permission-condition-edit-params.vm at [7,14] 2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.web.bean.I18nBean._getUnescapedText(I18nBean.java:245) at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:199) at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:124) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97) at com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor.getHtml(WorkflowConditionModuleDescriptor.java:29) at com.atlassian.jira.web.action.admin.workflow.AbstractEditWorkflowTransitionDescriptorParams.getDescriptorHtml(AbstractEditWorkflowTransitionDescriptorParams.java:204) ... {noformat} Steps to Reproduce: # Copy the "jira" read only system workflow. # Select "Steps" # Select the "Start Progress" transition # Select the "Conditions" tab # Select "Add" # Select "Permission Condition" # Select "Administer Projects" # Select "Edit" on the added condition.

    Atlassian JIRA | 9 years ago | Jonathan Appel [Atlassian]
    java.lang.NullPointerException
  2. 0

    Editing an existing "Permission Condition" condition results in a NPE. This appears to occure regardless of the permission selected. {noformat} 2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [velocity] Method getText threw exception for reference $i18n in template templates/jira/workflow/com/atlassian/jira/plugin/permission-condition-edit-params.vm at [7,14] 2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.web.bean.I18nBean._getUnescapedText(I18nBean.java:245) at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:199) at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:124) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97) at com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor.getHtml(WorkflowConditionModuleDescriptor.java:29) at com.atlassian.jira.web.action.admin.workflow.AbstractEditWorkflowTransitionDescriptorParams.getDescriptorHtml(AbstractEditWorkflowTransitionDescriptorParams.java:204) ... {noformat} Steps to Reproduce: # Copy the "jira" read only system workflow. # Select "Steps" # Select the "Start Progress" transition # Select the "Conditions" tab # Select "Add" # Select "Permission Condition" # Select "Administer Projects" # Select "Edit" on the added condition.

    Atlassian JIRA | 9 years ago | Jonathan Appel [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.web.bean.I18nBean._getUnescapedText()
    2. com.atlassian.jira
      I18nBean.getText
      1. com.atlassian.jira.web.bean.I18nBean._getUnescapedText(I18nBean.java:245)
      2. com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:199)
      3. com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:124)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. Apache Velocity
      VelocityEngine.mergeTemplate
      1. org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
      2. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
      3. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      4. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
      5. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      6. org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      7. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      8. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      9. org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172)
      10. org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      11. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      12. org.apache.velocity.Template.merge(Template.java:256)
      13. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      13 frames
    5. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
      3. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56)
      3 frames
    6. com.atlassian.jira
      AbstractEditWorkflowTransitionDescriptorParams.getDescriptorHtml
      1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97)
      2. com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor.getHtml(WorkflowConditionModuleDescriptor.java:29)
      3. com.atlassian.jira.web.action.admin.workflow.AbstractEditWorkflowTransitionDescriptorParams.getDescriptorHtml(AbstractEditWorkflowTransitionDescriptorParams.java:204)
      3 frames