NullPointerException when trying to access System Dashboard

お困りですか?

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

コミュニティに質問

症状

When trying to access the main dashboard, a System Error is thrown and the following appears in the atlassian-jira.log:

ERROR EIL018 948x15658x1 admin 172.30.248.33 /secure/Dashboard.jspa [atlassian.plugin.web.DefaultWebInterfaceManager] Could not evaluate condition 'com.atlassian.plugin.web.conditions.AndCompositeCondition@47d94f' for descriptor: jira.top.navigation.bar:gadgets.dashboard.menu.share (null)
java.lang.NullPointerException
    at com.atlassian.jira.plugin.webfragment.conditions.ShowDashboardToolsMenuCondition.shouldDisplay(ShowDashboardToolsMenuCondition.java:41)
    at com.atlassian.plugin.web.conditions.AndCompositeCondition.shouldDisplay(AndCompositeCondition.java:14)
    at com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172)
    at com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103)
    at sun.reflect.GeneratedMethodAccessor372.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

原因

The default System Dashboard has an username value set on the username column and it will cause a system error, if you are not logged in with that user.

ソリューション

  1. Perform a database backup, for roll-back purposes, if necessary.
  2. Jira をシャットダウンします。
  3. Run the statement below:

    UPDATE portalpage SET username = null WHERE pagename = 'System Dashboard'
    

    (info)The query above will set the owner of the default dashboard to nobody, so users which did not logged in can see it.

最終更新日 2018 年 11 月 2 日

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

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