Accessing the Administration page throws the error "Invocation of method 'getNotEmptySectionsForLocation'"
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
症状
Upon accessing the Administration page of JIRA, the following error appears on the top of the page:
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 'getNotEmptySectionsForLocation' in class
com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager threw exception class java.lang.NullPointerException : 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
...
Users may also see a NullPointerException in the logs when selecting the Projects menu pulldown.
atlassian-jira.log
に次のエラーが返される。
012-03-05 14:44:11,255 http-80-23 ERROR admin 884x83424x1 1ftk60y 192.168.240.198 /plugins/servlet/project-config/TST/summary [velocity] Method getNotEmptySectionsForLocation threw exception for reference $linkManager in template templates/plugins/webfragments/system-admin-navigation-bar.vm at [2,29]
2012-03-05 14:44:11,255 http-80-23 ERROR admin 884x83424x1 1ftk60y 192.168.240.198 /plugins/servlet/project-config/TST/summary [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException
java.lang.NullPointerException
at com.atlassian.jira.project.ProjectHistoryLinkFactory.getLinks(ProjectHistoryLinkFactory.java:103)
at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:207)
at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:130)
at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getNotEmptySectionsForLocation(DefaultSimpleLinkManager.java:335)
at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getNotEmptySectionsForLocation(DefaultSimpleLinkManager.java:343)
at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getNotEmptySectionsForLocation(DefaultSimpleLinkManager.java:355)
原因
There is a project(s) that have a miss-configured project avatar. These project points to an avatar that does not exist on the database.
回避策
- Access the Administration's project list by using the following URL:
- http://<BASE-URL>/secure/project/ViewProjects.jspa
- Update all the projects where the avatar is missing via:
- Edit >> Edit Avatar >> Select a Project Avatar >> Update