Migrating to Hibernate User Management Failed with JasperException

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

Migrating to new User Management fails with the following error in the browser:

javax.servlet.error.exception: org.apache.jasper.JasperException: An exception occurred processing JSP page /admin/osuser2atluser.jsp at line 73 70: out.print("Migrating users and groups ... "); 71: try 72: { 73: migrator.migrate(migratorConfiguration, new HtmlJspWriterMigrationProgressListener(out)); 74: out.print("<p>Users and groups migrated successfully!</p>"); 75: } 76: catch (DuplicateEntityException dee)

atlassian-confluence.log に次のエラーが返される。

Caused by: java.lang.NullPointerException at com.atlassian.user.util.migration.OSUserDao$4.processRow(OSUserDao.java:114) at org.springframework.jdbc.core.JdbcTemplate$RowCallbackHandlerResultSetExtractor.extractData(JdbcTemplate.java:1248) at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:395) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:343) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:405) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:409) ... at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy39.migrate(Unknown Source) at org.apache.jsp.admin.osuser2atluser_jsp._jspService(osuser2atluser_jsp.java:136) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) ... 58 more

原因

Confluence hit a reference to non-existent user in the os_user_group table, hence it was not able to complete the user migration. The root cause for what has corrupted the table is unknown.

ソリューション

  1. Identify the rogue rows that prevented your users from being migrated by running the following query:

    select os_user_group.* from os_user_group left join os_user on os_user_group.user_id = os_user.id where os_user.id is null;
  2. Delete the rogue user id from your database:

    delete from os_user_group where user_id = <user id returned from the query above>;
更新日時: September 25, 2025

さらにヘルプが必要ですか?

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