java.lang.NullPointerException

Atlassian JIRA | Brian Nguyen (HipChat) | 1 decade ago
  1. 0

    If you comment on an issue through the "Edit Issue" page and don't make any changes, the change log is not set. This means that when Jira tries to send an *html* email a NPE is thrown: {code} MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException java.lang.NullPointerException at com.atlassian.jira.util.JiraVelocityHelper.wasDeleted(JiraVelocityHelper.java:197) 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:324) 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.evaluate(ASTReference.java:307) at org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:45) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:68) 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:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:142) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:84) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:114) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {code}

    Atlassian JIRA | 1 decade ago | Brian Nguyen (HipChat)
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.util.JiraVelocityHelper.wasDeleted()
    2. com.atlassian.jira
      JiraVelocityHelper.wasDeleted
      1. com.atlassian.jira.util.JiraVelocityHelper.wasDeleted(JiraVelocityHelper.java:197)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 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.evaluate(ASTReference.java:307)
      5. org.apache.velocity.runtime.parser.node.ASTExpression.evaluate(ASTExpression.java:45)
      6. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:68)
      7. org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      8. org.apache.velocity.Template.merge(Template.java:256)
      9. org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      9 frames
    5. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBody
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76)
      2. com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60)
      2 frames
    6. com.atlassian.jira
      IssueMailQueueItem.send
      1. com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:142)
      2. com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:84)
      3. com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:114)
      3 frames
    7. com.atlassian.mail
      MailQueueImpl.sendBuffer
      1. com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68)
      1 frame
    8. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
      2. com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50)
      3 frames
    9. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames