Can't Restore XML Backup Due To Invalid Encoding

プラットフォームについて: 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 は除く

症状

Crowd reports the following error when restoring an XML backup;

2009-01-30 16:03:44,175 http-8095-Processor25 INFO [util.persistence.hibernate.ConfigurableLocalSessionFactoryBean] Creating database schema for Hibernate SessionFactory 2009-01-30 16:03:44,222 http-8095-Processor25 ERROR [console.action.setup.Import] Error importing XML data org.dom4j.DocumentException: Invalid byte 2 of 4-byte UTF-8 sequence. Nested exception: Invalid byte 2 of 4-byte UTF-8 sequence. at org.dom4j.io.SAXReader.read(SAXReader.java:358)

原因

The File Encoding is not set to UTF-8

ソリューション

This is a known issue with Crowd version 1.5 and below. If you're seeing this issue, please see this workaround on how to perform a new backup with the proper file encoding.

If you no longer have access to your old Crowd instance, and only have the XML backup, you can edit the backup using XML Notepad to indicate which lines contain characters that must be corrected before a restore can succeed.

更新日時: September 25, 2025

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

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