com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost

Atlassian JIRA | Gurleen Anand [Atlassian] | 6 years ago
  1. 0

    [CONF-20400] Restoring a XML site backup into 3.3 fails with "No enum const class..." exception - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost
  2. 0

    When restoring a XML site backup generated in 3.3, the restore process fails with the following exception: {quote} 2010-07-19 09:33:59,161 ERROR [Importing data task] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- url: /admin/restore.action | userName: admin | referer: http://localhost:8080/admin/backup.action | action: restore com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:323) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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 $Proxy77.importAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:55) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:55) at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:314) ... 19 more Caused by: java.lang.IllegalArgumentException: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost 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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.parseBackup(DefaultXmlImporter.java:83) at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:47) ... 20 more {quote} For another customer, a different error was reported: {quote} 2010-07-19 07:30:00,476 ERROR [Importing data task] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.mail.notification.Notification] [Id[id]=2621442, Property[page]=com.atlassian.confluence.pages.Page[Id[id]=2555910], Property[userName]=amiller@dnscoinc.com, Property[creatorName]=amiller@dnscoinc.com, Property[creationDate]=2009-09-15 14:25:26.000, Property[lastModifierName]=amiller@dnscoinc.com, Property[lastModificationDate]=2009-09-15 14:25:26.000, Property[digest]=false, Property[network]=false, Property[type]=com.atlassian.confluence.search.service.ContentTypeEnum[]] - referer: http://localhost:8080/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore 2010-07-19 07:30:00,478 ERROR [Importing data task] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities: - referer: http://localhost:8080/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum. at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:55) 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) Caused by: java.lang.IllegalArgumentException: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum. at com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement(BackupParser.java:53) {quote} Steps to replicate: 1) Startup a fresh/clean 3.3 Confluence instance. 2) "Follow" a user (for testing, I had added myself as a follower - user "admin") 3) Check the "Subscribe to Network" and "Notify on my actions" checkbox under "User Preferences" 4) Watch a page in any space. For testing I had set a watch for one of the pages in the "Demonstration Space". 5) Generate a site XML backup 6) Restore the above backup either via the setup wizard or via the "Administration" console.

    Atlassian JIRA | 6 years ago | Gurleen Anand [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost
  3. 0

    When restoring a XML site backup generated in 3.3, the restore process fails with the following exception: {quote} 2010-07-19 09:33:59,161 ERROR [Importing data task] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- url: /admin/restore.action | userName: admin | referer: http://localhost:8080/admin/backup.action | action: restore com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:323) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) 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 $Proxy77.importAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:55) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:613) Caused by: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:55) at com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:314) ... 19 more Caused by: java.lang.IllegalArgumentException: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost 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 org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.parseBackup(DefaultXmlImporter.java:83) at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:47) ... 20 more {quote} For another customer, a different error was reported: {quote} 2010-07-19 07:30:00,476 ERROR [Importing data task] [confluence.importexport.xmlimport.DefaultImportProcessor] persist Error while saving object: Imported[com.atlassian.confluence.mail.notification.Notification] [Id[id]=2621442, Property[page]=com.atlassian.confluence.pages.Page[Id[id]=2555910], Property[userName]=amiller@dnscoinc.com, Property[creatorName]=amiller@dnscoinc.com, Property[creationDate]=2009-09-15 14:25:26.000, Property[lastModifierName]=amiller@dnscoinc.com, Property[lastModificationDate]=2009-09-15 14:25:26.000, Property[digest]=false, Property[network]=false, Property[type]=com.atlassian.confluence.search.service.ContentTypeEnum[]] - referer: http://localhost:8080/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore 2010-07-19 07:30:00,478 ERROR [Importing data task] [confluence.importexport.xmlimport.BackupImporter] importEntities Cannot import the entities: - referer: http://localhost:8080/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum. at com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:55) 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) Caused by: java.lang.IllegalArgumentException: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum. at com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement(BackupParser.java:53) {quote} Steps to replicate: 1) Startup a fresh/clean 3.3 Confluence instance. 2) "Follow" a user (for testing, I had added myself as a follower - user "admin") 3) Check the "Subscribe to Network" and "Notify on my actions" checkbox under "User Preferences" 4) Watch a page in any space. For testing I had set a watch for one of the pages in the "Demonstration Space". 5) Generate a site XML backup 6) Restore the above backup either via the setup wizard or via the "Administration" console.

    Atlassian JIRA | 6 years ago | Gurleen Anand [Atlassian]
    com.atlassian.confluence.importexport.ImportExportException: com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [MAPREDUCE-4120] mapred job -list-attempt-ids fails to get attempt ids - ASF JIRA

    apache.org | 11 months ago
    java.lang.IllegalArgumentException: No enum const class org.apache.hadoop.mapreduce.TaskType.map
  6. 0

    IllegalArgumentException, when a data type is present in the schema, but unavailable in code generation logic

    GitHub | 4 years ago | lukaseder
    java.lang.IllegalArgumentException: No enum const class org.jooq.util.oracle.OracleDataType.BINARY_INTEGER

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      No enum const class com.atlassian.confluence.search.service.ContentTypeEnum.blogpost

      at com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement()
    2. com.atlassian.confluence
      BackupParser.endElement
      1. com.atlassian.confluence.importexport.xmlimport.parser.BackupParser.endElement(BackupParser.java:53)
      1 frame
    3. Xerces2-j
      SAXParserImpl.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      10. org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
      10 frames
    4. Java RT
      SAXParser.parse
      1. javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
      1 frame
    5. com.atlassian.confluence
      DefaultImportExportManager.importAs
      1. com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.parseBackup(DefaultXmlImporter.java:83)
      2. com.atlassian.confluence.importexport.xmlimport.DefaultXmlImporter.doImport(DefaultXmlImporter.java:47)
      3. com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEntities(BackupImporter.java:314)
      4. com.atlassian.confluence.importexport.xmlimport.BackupImporter.importEverything(BackupImporter.java:275)
      5. com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.importEverything(FileBackupImporter.java:103)
      6. com.atlassian.confluence.importexport.xmlimport.BackupImporter.doImport(BackupImporter.java:107)
      7. com.atlassian.confluence.importexport.xmlimport.FileBackupImporter.doImport(FileBackupImporter.java:45)
      8. com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74)
      8 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    8. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    9. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    10. Unknown
      $Proxy77.importAs
      1. $Proxy77.importAs(Unknown Source)
      1 frame
    11. com.atlassian.confluence
      ConfluenceAbstractLongRunningTask.run
      1. com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:55)
      2. com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
      2 frames
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame