How to fix the getAvatarUrlNoPermCheck Exception in Notifications

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

  1. 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.
  2. The Activity Stream no longer displays any information.

The following appears in the atlassian-jira.log:

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)

原因

The Base URL has been improperly specified.

ソリューション

  1. Confirm that the Base URL in Configuring JIRA Options is the exact same URL that you use to access the JIRA instance.
    (info) If the URL has any incorrect spaces in it, such as http:// confluence.atlassian.com it will also cause errors.

最終更新日 2016 年 3 月 30 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.