Template NullPointerException when visiting Confluence after space import

お困りですか?

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

コミュニティに質問

Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

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.

*Fisheye および Crucible は除く

問題

After importing a space, a user may see the following error when visiting Confluence:

Error occurred during template rendering: Invocation of method 'getRenderedParam' in class
com.atlassian.plugin.web.model.DefaultWebParam threw exception java.lang.NullPointerException at
template/includes/menu-macros.vm[line 67, column 50]. Contact your administrator for assistance.

診断

環境

  • Confluence 5.7
  • Other versions of Confluence may be affected

Diagnostic Steps

  1. Run the following command against the database.

    select * from spaces where spacename is NULL;
  2. If results are returned, please proceed below.

原因

A space has been imported into Confluence that has no Space Name.  CONF-39517 - Getting issue details... STATUS

ソリューション

Change Space Name

  1. Open your Confluence instance;
  2. Go to Space > Space Directory;
  3. Look for spaces with the name set as 'Undefined';
  4. Change the space name.

Modify Data

  1. Confluence を停止します。
  2. In the database, run:

    update spaces set spacename='SPACE_NAME' where spaceid=XXXXXX; 

    データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。

    Where XXXXXX is the spaceid from the results returned in your Diagnosis, and the SPACE_NAME is set to the desired space name.

  3. Confluence を起動します。

  4. 検索インデックスの再構築


最終更新日 2018 年 9 月 27 日

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

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