Confluence crashes on trying to parse content
On screen:
Import failed. Check your server logs for more information. com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
in atlassian-confluence.log:
2012-07-10 19:21:44,725 ERROR [Importing data task] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.pages.Draft] [Id[id]=157, Property[pageId]=2308, Property[owner]=ascruggs, Property[type]=page, Property[spaceKey]=SE, Property[title]=WEB-758 Maven Moms Promo Codes, Property[content]=h2. JIRA WEB-758
{jiraissues:url=http://jira.kajeet.local/jira/browse/WEB-758?decorator=none&view=rss&os_username=confluence&os_password=confluence}
h2. Testing
h3. Test Plan
{testplan: WEB-726 Maven Moms}
1. Navigate to page via a URL link.
2. Confirm promo code begins in MM1006
//2.1 Confirm Phone Displayed is 6165
3. Confirm Landing page is the new RT one
4. Begin Purchase process
5. In Shopping Cart, confirm:
//5.1 phone discounted %100
//5.2 phone is 6165
//5.3 shipping is $1
6. checkout
7. Repeat prcess and confirm failure to insure efficacy of "One Time Use"
8. Confirm 1$ charged to credit card
{testplan}
h3. Test Reports
h3. Test Code
h2. Requirements
h3. Known
- 500 needed for use
- 5 needed for testing
- Expires in 3 months (02/15/0)
- campaign code is (MM1006)
- Codes are 1 times use
h3. Needed
h2. Implementation Constraints
h2. Abandoned Tests & Requirements, Property[savedDate]=2006-11-06 22:19:39.000, Property[originalVersion]=4]
-- referer: http://cartier.kajeet.local:9090/setup/setup-restore-local.action | url: /setup/setup-restore-local.action | userName: anonymous | action: setup-restore-local
2012-07-10 19:21:44,764 ERROR [Importing data task] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities:
-- referer: http://cartier.kajeet.local:9090/setup/setup-restore-local.action | url: /setup/setup-restore-local.action | userName: anonymous | action: setup-restore-local
com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:64)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:237)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEverything(BackupImporter.java:181)
at com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.importEverything(FileBackupImporter.java:108)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.doImportInternal(BackupImporter.java:108)
at com.atlassian.confluence.importexport.Importer.doImport(Importer.java:74)
at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...
2012-07-10 19:21:45,754 ERROR [Importing data task] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import
-- referer: http://cartier.kajeet.local:9090/setup/setup-restore-local.action | url: /setup/setup-restore-local.action | userName: anonymous | action: setup-restore-local
com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:247)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEverything(BackupImporter.java:181)
at com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.importEverything(FileBackupImporter.java:108)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.doImportInternal(BackupImporter.java:108)
at com.atlassian.confluence.importexport.Importer.doImport(Importer.java:74)
at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
...
Caused by: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:64)
at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:237)
... 19 more
Caused by: org.xml.sax.SAXException: Error while importing backup: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
java.lang.UnsupportedOperationException: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
at com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement(BackupParser.java:53)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.parseBackup(DefaultXmlImporter.java:95)
at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:48)
... 20 more
Caused by: java.lang.UnsupportedOperationException: Unknown type for restoring data: com.atlassian.confluence.core.ContentEntityObject
at com.atlassian.confluence.importexport.xmlimport.persister.PersisterOperations.getPrimitivePropertyValue(PersisterOperations.java:77)
at com.atlassian.confluence.importexport.xmlimport.persister.ReflectiveObjectPersister.getPropertyValue(ReflectiveObjectPersister.java:209)
at com.atlassian.confluence.importexport.xmlimport.persister.ReflectiveObjectPersister.setProperty(ReflectiveObjectPersister.java:163)
at com.atlassian.confluence.importexport.xmlimport.persister.ReflectiveObjectPersister.persist(ReflectiveObjectPersister.java:78)
at com.atlassian.confluence.importexport.xmlimport.DefaultImportProcessor.persist(DefaultImportProcessor.java:42)
at com.atlassian.confluence.importexport.xmlimport.DefaultImportProcessor.processObject(DefaultImportProcessor.java:32)
at com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement(BackupParser.java:49)
... 31 more
Hi Mark,
Export / Import is only designed to work with the same major Confluence versions so you would need to upgrade a 2.2.9 instance of Confluence to 3.5.17, export from that and then import that into the target 3.5.17 instance.
Having a quick scan through the upgrade notes for Confluence it looks like you should be able to go straight to 3.5.17 from 2.2.9 without any intermediate upgrades, but that is a big jump in versions so I would recommend checking the upgrade notes for the in-between versions documented under the relevant release notes for each version at https://confluence.atlassian.com/display/DOC/Release+Notes - I wouldn't be surprised if you needed to go to 3.0 or 3.3 from 2.2.9 before going to 3.5.17
Hope that helps?
Andrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.