java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null>

Atlassian JIRA | Rp Subhub | 3 years ago
  1. 0

    # Install and setup Confluence 5.4.4 # Add 2 users # Create space, add page # Log in as user1 and add to favourites a page from this space # Log in as user2 and add to favourites the same page # Export space to XML # Install and setup Confluence 5.4.4 (to start clean again) # Add 2 users # Import space from xml.zip # Get error "Import failed. Check your server logs for more information. duplicate key: class=class com.atlassian.confluence.labels.Label" # Go to dashboard # Space is there # Log in as user1 # Observe that page you favourited is listed two times under your favourite pages # Log in as user2 # Observe that page you favourited is not listed at all under your favourite pages There are duplicate entries in the CONTENT_LABEL table (on labelid + contentid). In the log file: {code} 2014-04-24 20:10:26,371 ERROR [Long running task: Importing data] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- referer: http://localhost:1990/confluence/admin/backup.action | url: /confluence/admin/restore-local-file.action | userName: admin | action: restore-local-file java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207) at com.google.common.collect.RegularImmutableBiMap.<init>(RegularImmutableBiMap.java:39) at com.google.common.collect.ImmutableBiMap$Builder.build(ImmutableBiMap.java:176) at com.atlassian.confluence.importexport.DefaultImmutableImportProcessorSummary.newInstance(DefaultImmutableImportProcessorSummary.java:99) at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:73) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 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.performImport(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:88) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code}

    Atlassian JIRA | 3 years ago | Rp Subhub
    java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null>
  2. 0

    # Install and setup Confluence 5.4.4 # Add 2 users # Create space, add page # Log in as user1 and add to favourites a page from this space # Log in as user2 and add to favourites the same page # Export space to XML # Install and setup Confluence 5.4.4 (to start clean again) # Add 2 users # Import space from xml.zip # Get error "Import failed. Check your server logs for more information. duplicate key: class=class com.atlassian.confluence.labels.Label" # Go to dashboard # Space is there # Log in as user1 # Observe that page you favourited is listed two times under your favourite pages # Log in as user2 # Observe that page you favourited is not listed at all under your favourite pages There are duplicate entries in the CONTENT_LABEL table (on labelid + contentid). In the log file: {code} 2014-04-24 20:10:26,371 ERROR [Long running task: Importing data] [confluence.importexport.actions.ImportLongRunningTask] runInternal Failure during import -- referer: http://localhost:1990/confluence/admin/backup.action | url: /confluence/admin/restore-local-file.action | userName: admin | action: restore-local-file java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115) at com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72) at com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221) at com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207) at com.google.common.collect.RegularImmutableBiMap.<init>(RegularImmutableBiMap.java:39) at com.google.common.collect.ImmutableBiMap$Builder.build(ImmutableBiMap.java:176) at com.atlassian.confluence.importexport.DefaultImmutableImportProcessorSummary.newInstance(DefaultImmutableImportProcessorSummary.java:99) at com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:73) 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:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) 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.performImport(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:88) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26) at com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code}

    Atlassian JIRA | 3 years ago | Rp Subhub
    java.lang.IllegalArgumentException: duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null>
  3. 0

    why this error is coming i have not even started coding

    Stack Overflow | 1 year ago | Jaskaran Singh
    java.lang.IllegalArgumentException: Multiple entries with same key: Google Inc.:Google APIs:19=Google APIs (Google Inc.) (API 19) and Google Inc.:Google APIs:19=Google APIs (Google Inc.) (API 19) at com.google.common.collect.ImmutableMap.checkNoConflict(ImmutableMap.java:150)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android Studio IDE Fatal Error - "Exception in plugin Gradle."

    Stack Overflow | 2 years ago | Ali Motameni
    java.lang.IllegalArgumentException: Multiple entries with same key: 8=API 8: Android 2.2 (Froyo) and 8=API 8: Android 2.2 (Froyo)
  6. 0

    Can't debug Karma tests in IDEA

    YouTrack | 3 years ago
    java.lang.IllegalArgumentException: Multiple entries with same key: http://localhost:9876/absolute=file://S: and http://localhost:9876/absolute=file://U:

    1 unregistered visitors
    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

      duplicate key: class=class com.atlassian.confluence.labels.Label,id=1212417,<null>

      at com.google.common.base.Preconditions.checkArgument()
    2. Guava
      ImmutableBiMap$Builder.build
      1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
      2. com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:72)
      3. com.google.common.collect.ImmutableMap$Builder.fromEntryList(ImmutableMap.java:221)
      4. com.google.common.collect.ImmutableMap$Builder.build(ImmutableMap.java:207)
      5. com.google.common.collect.RegularImmutableBiMap.<init>(RegularImmutableBiMap.java:39)
      6. com.google.common.collect.ImmutableBiMap$Builder.build(ImmutableBiMap.java:176)
      6 frames
    3. com.atlassian.confluence
      DefaultImportExportManager.performImport
      1. com.atlassian.confluence.importexport.DefaultImmutableImportProcessorSummary.newInstance(DefaultImmutableImportProcessorSummary.java:99)
      2. com.atlassian.confluence.importexport.DefaultImportExportManager.performImport(DefaultImportExportManager.java:73)
      2 frames
    4. 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:597)
      4 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    7. 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
    8. Unknown
      $Proxy77.performImport
      1. $Proxy77.performImport(Unknown Source)
      1 frame
    9. com.atlassian.confluence
      ManagedTask.run
      1. com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:88)
      2. com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:26)
      3. com.atlassian.confluence.util.longrunning.ManagedTask.run(ManagedTask.java:35)
      3 frames
    10. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      6. java.lang.Thread.run(Thread.java:662)
      6 frames