org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)

Atlassian JIRA | John Ball | 8 years ago
  1. 0

    After editing a comment JIRA sends a notification email message. If the comment was added by a user who exists then the message is as expected. If the comment was added by a user whose account has since been deleted then the message contains the following: {noformat} An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:144) 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.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.app.VelocityEngine.evaluate(VelocityEngine.java:316) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142) at com.atlassian.jira.mail.MailingListCompiler$1.processRecipient(MailingListCompiler.java:285) at com.atlassian.jira.mail.NotificationRecipientProcessor.process(NotificationRecipientProcessor.java:41) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:307) at com.atlassian.jira.mail.MailingListCompiler.access$500(MailingListCompiler.java:35) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:472) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:440) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:393) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:133) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) 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.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat}

    Atlassian JIRA | 8 years ago | John Ball
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
  2. 0

    After editing a comment JIRA sends a notification email message. If the comment was added by a user who exists then the message is as expected. If the comment was added by a user whose account has since been deleted then the message contains the following: {noformat} An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:144) 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.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.app.VelocityEngine.evaluate(VelocityEngine.java:316) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142) at com.atlassian.jira.mail.MailingListCompiler$1.processRecipient(MailingListCompiler.java:285) at com.atlassian.jira.mail.NotificationRecipientProcessor.process(NotificationRecipientProcessor.java:41) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:307) at com.atlassian.jira.mail.MailingListCompiler.access$500(MailingListCompiler.java:35) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:472) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:440) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:393) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:133) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) 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.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) {noformat}

    Atlassian JIRA | 8 years ago | John Ball
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)
  3. 0

    The below occurred after logging 0m to a task: An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'indentToChangelog' in class com.atlassian.jira.util.JiraVelocityHelper threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) 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.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.app.VelocityEngine.evaluate(VelocityEngine.java:316) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:224) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:135) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:88) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) 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.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | Whitney Davis
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'indentToChangelog' in class com.atlassian.jira.util.JiraVelocityHelper threw exception class java.lang.NullPointerException : null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The below occurred after logging 0m to a task: An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: ------- org.apache.velocity.exception.MethodInvocationException: Invocation of method 'indentToChangelog' in class com.atlassian.jira.util.JiraVelocityHelper threw exception class java.lang.NullPointerException : null at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246) 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.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.app.VelocityEngine.evaluate(VelocityEngine.java:316) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:224) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:135) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:88) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167) 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.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | Whitney Davis
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'indentToChangelog' in class com.atlassian.jira.util.JiraVelocityHelper threw exception class java.lang.NullPointerException : null
  6. 0

    In some cases sending a mail message from JIRA triggers the following exception: {quote} 2011-11-07 15:22:41,010 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@177d7db[issue=com.atlassian.jira.issue.IssueImpl@567282[id=43789,summary=[lsc] (sxswt-4101) info: mailarchivierung / user erstellen,key=SXSWT-4101,created=2011-10-17 07:40:53.94,updated=2011-11-07 15:21:41.844,assignee=voehrijn,reporter=dak@sowitec.com],remoteUser=dak@sowitec.com,notificationType=Current_Assignee,eventTypeId=2,templateId=2] ERROR ServiceRunner Mail Queue Service [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception class com.atlassian.jira.util.dbc.Assertions$NullArgumentException : copy should not be null! org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception class com.atlassian.jira.util.dbc.Assertions$NullArgumentException : copy should not be null! at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:251) 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.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) 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.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.runtime.directive.Parse.render(Parse.java:181) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:300) at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:202) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:143) at com.atlassian.jira.mail.MailingListCompiler$1.processRecipient(MailingListCompiler.java:296) at com.atlassian.jira.mail.NotificationRecipientProcessor.process(NotificationRecipientProcessor.java:39) at com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:318) at com.atlassian.jira.mail.MailingListCompiler.access$400(MailingListCompiler.java:42) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:463) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:433) at com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:386) at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:135) at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:152) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:60) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {quote} This issue is relatively rare (about once per week) but annoying because our customers get an e-mail message containing the error stack trace. Unfortunately I haven't found a way to reliably reproduce the issue.

    Atlassian JIRA | 5 years ago | Malik Mangier
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'diff' in class com.atlassian.jira.mail.DiffUtils threw exception class com.atlassian.jira.util.dbc.Assertions$NullArgumentException : copy should not be null!

    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. org.apache.velocity.exception.MethodInvocationException

      Invocation of method 'getUser' in class com.atlassian.core.user.UserUtils threw exception class com.opensymphony.user.EntityNotFoundException : No user fred.bloggs@xxxxxxxxxxx.co.uk found at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:246)

      at org.apache.velocity.runtime.parser.node.ASTReference.execute()
    2. Apache Velocity
      VelocityEngine.evaluate
      1. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      2. org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:327)
      3. org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:144)
      4. org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      5. org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
      6. org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      7. org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70)
      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.app.VelocityEngine.evaluate(VelocityEngine.java:316)
      13. org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:210)
      13 frames
    3. com.atlassian.velocity
      DefaultVelocityManager.getEncodedBodyForContent
      1. com.atlassian.velocity.DefaultVelocityManager.getEncodedBodyForContent(DefaultVelocityManager.java:142)
      1 frame
    4. com.atlassian.jira
      IssueMailQueueItem.send
      1. com.atlassian.jira.mail.MailingListCompiler$1.processRecipient(MailingListCompiler.java:285)
      2. com.atlassian.jira.mail.NotificationRecipientProcessor.process(NotificationRecipientProcessor.java:41)
      3. com.atlassian.jira.mail.MailingListCompiler.addMailsToQueue(MailingListCompiler.java:307)
      4. com.atlassian.jira.mail.MailingListCompiler.access$500(MailingListCompiler.java:35)
      5. com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.addEmailsToQueue(MailingListCompiler.java:472)
      6. com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendLists(MailingListCompiler.java:440)
      7. com.atlassian.jira.mail.MailingListCompiler$NotificationCompiler.sendForEvent(MailingListCompiler.java:393)
      8. com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:133)
      9. com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:167)
      9 frames
    5. com.atlassian.mail
      MailQueueImpl.sendBuffer
      1. com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:68)
      1 frame
    6. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23)
      2. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      3. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:61)
      3 frames
    7. 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