How to fix the getAvatarUrlNoPermCheck Exception in Notifications
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
When receiving notifications from Jira the email contains "An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug." with a Stack Trace as below.
The Activity Stream no longer displays any information.
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2012-03-07 16:16:16,787 Sending mailitem com.atlassian.jira.mail.IssueMailQueueItem@20a29c3e[issue=com.atlassian.jira.issue.IssueImpl@5497b480[id=11722,summary=Notification Failure,key=LLAMA-05,created=2012-03-06 11:33:42.0,updated=2012-03-07 16:16:15.072,assignee=com.atlassian.crowd.embedded.ofbiz.OfBizUser@3d797100,reporter=com.atlassian.crowd.embedded.ofbiz.OfBizUser@48d9f3b5],remoteUser=com.atlassian.crowd.embedded.ofbiz.OfBizUser@b8bfa904,notificationType=Single_User,eventTypeId=4,templateId=4] ERROR ServiceRunner Mail Queue Service [com.atlassian.velocity.DefaultVelocityManager] Exception getting message body from Velocity: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAvatarUrlNoPermCheck' in class com.atlassian.jira.avatar.AvatarServiceImpl threw exception class java.lang.IllegalArgumentException : null
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getAvatarUrlNoPermCheck' in class com.atlassian.jira.avatar.AvatarServiceImpl threw exception class java.lang.IllegalArgumentException : 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.SimpleNode.render(SimpleNode.java:230)
at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:171)
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:171)
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: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:391)
at com.atlassian.jira.mail.MailingListCompiler.sendLists(MailingListCompiler.java:135)
at com.atlassian.jira.mail.IssueMailQueueItem.send(IssueMailQueueItem.java:154)
at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:28)
at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
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)
Environment
Jira Data Center on any version
Cause
The Base URL has been improperly specified.
Resolution
Confirm that the Base URL in Configuring JIRA Options is the exact same URL that you use to access the Jira instance.
ℹ️ If the URL has any incorrect spaces in it, such as http:// confluence.atlassian.com it will also cause errors.
Was this helpful?