How to fix the getAvatarUrlNoPermCheck Exception in Notifications
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
症状
- 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.
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)
環境
Jira Data Center on any version
原因
The Base URL has been improperly specified.
ソリューション
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.