Index: src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java =================================================================== --- src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java (revision 9155) +++ src/main/java/com/xpn/xwiki/store/migration/hibernate/R4359XWIKI1459Migrator.java (working copy) @@ -110,7 +110,11 @@ // In this case just ignore the archive... if (sArchive.trim().length() != 0) { XWikiDocumentArchive docArchive = new XWikiDocumentArchive(docId); - docArchive.setArchive(sArchive); + try { + docArchive.setArchive(sArchive); + } catch (XWikiException e) { + LOG.error("RCS archive is broken. New archive will be empty for this doc.", e); + } context.getWiki().getVersioningStore().saveXWikiDocArchive(docArchive, true, context); } else { LOG.warn("Empty revision found for document [" + rs.getString(3) + "]. Ignoring non-fatal error.");