Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-19422

Error when restoring version 3.2 XML backup

    XMLWordPrintable

Details

    Description

      Restoring XML backup created by confluence 3.2 fails with error:

      Import failed. com.atlassian.confluence.importexport.ImportExportException: Error performing import: Error processing backup. Refer to logs for more details.

      In the following error can be observed from the log file:

      2010-04-23 13:58:17,406 ERROR [Importing data task] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities:
       -- referer: http://localhost/confluence/admin/backup.action | url: /confluence/admin/restore.action | userName: admin | action: restore
      com.atlassian.confluence.importexport.ImportExportException: Error performing import: Error processing backup. Refer to logs for more details.
      	at com.atlassian.confluence.importexport.xmlimport.legacy.LegacyXmlImporter.doImport(LegacyXmlImporter.java:45)
      	at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:314)
      	at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEverything(BackupImporter.java:275)
      	at com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.importEverything(FileBackupImporter.java:103)
      	at com.atlassian.confluence.importexport.xmlimport.BackupImporter.doImport(BackupImporter.java:107)
      	at com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.doImport(FileBackupImporter.java:45)
      	at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      	at $Proxy76.importAs(Unknown Source)
      	at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:60)
      	at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: net.sf.hibernate.HibernateException: Error processing backup. Refer to logs for more details.
      	at com.atlassian.confluence.importexport.xmlimport.legacy.ReverseDatabinder.fromXML(ReverseDatabinder.java:133)
      	at com.atlassian.confluence.importexport.xmlimport.legacy.LegacyXmlImporter.doImport(LegacyXmlImporter.java:38)
      	... 20 more
      Caused by: java.lang.NoSuchMethodException: com.atlassian.confluence.pages.attachments.ImageDetailsDto.<init>()
      	at com.atlassian.confluence.importexport.xmlimport.legacy.ReverseDatabinder.endElement(ReverseDatabinder.java:280)
      	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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      	at javax.xml.parsers.SAXParser.parse(Unknown Source)
      	at com.atlassian.confluence.importexport.xmlimport.legacy.ReverseDatabinder.fromXML(ReverseDatabinder.java:115)
      	... 21 more
      Caused by: java.lang.NoSuchMethodException: com.atlassian.confluence.pages.attachments.ImageDetailsDto.<init>()
      	at java.lang.Class.getConstructor0(Unknown Source)
      	at java.lang.Class.getConstructor(Unknown Source)
      	at com.atlassian.confluence.importexport.xmlimport.legacy.ImportedObject.readObjectId(ImportedObject.java:96)
      	at com.atlassian.confluence.importexport.xmlimport.legacy.ReverseDatabinder.endElement(ReverseDatabinder.java:214)
      

      If you search through entities.xml of your backup you can find :

      <object class="ImageDetailsDto" package="com.atlassian.confluence.pages.attachments">

      Patch for 3.2

      I have attached patches for Confluence 3.2 to resolve this issue.

      1. Download the patch here.
      2. Shutdown Confluence.
      3. Follow the documentation to install this patch.
      4. Startup Confluence.

      If you are running Confluence 3.2.1 you do not need to install this patch, 3.2.1 includes this fix.

      Attachments

        Activity

          People

            mjensen m@ (Inactive)
            hchen@atlassian.com Han Chen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: