Can't Restore XML Backup Due To Invalid Encoding

Still need help?

The Atlassian Community is here for you.

Ask the community


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.


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.

Last modified on Nov 21, 2012

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.