java.lang.IllegalArgumentException: duplicate key: Attachment

Atlassian JIRA | Janet Albion [Atlassian] | 4 years ago
  1. 0

    When user attach multiple files into an issue, JIRA does attach the files successfully. However, the JIRA logs produce noise: {noformat} 2012-07-26 20:48:57,526 http-8082-6 WARN admin 1248x270x1 1ohq849 10.60.1.204 /secure/AttachFile.jspa [labs.remoteapps.webhook.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent java.lang.IllegalArgumentException: duplicate key: Attachment 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.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.changeGroupToMap(IssueEventMapper.java:78) at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:40) at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:16) at com.atlassian.labs.remoteapps.product.jira.webhook.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:41) {noformat} {panel:title=Workaround| borderStyle=dashed| borderColor=#3C78B5| titleBGColor=#3C78B5| bgColor=#E7F4FA} This issue still exists in JIRA 5.2, the following will act as a workaround to the verbose logging: * On the file system navigate to your directory \{JIRA_INSTALL\}/atlassian-jira/WEB-INF/classes/ * Make a backup copy of log4j.properties * Add the following line to the log4j.properties file: _com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin = OFF, console, filelog_ * Restart JIRA {panel}

    Atlassian JIRA | 4 years ago | Janet Albion [Atlassian]
    java.lang.IllegalArgumentException: duplicate key: Attachment
  2. 0

    When user attach multiple files into an issue, JIRA does attach the files successfully. However, the JIRA logs produce noise: {noformat} 2012-07-26 20:48:57,526 http-8082-6 WARN admin 1248x270x1 1ohq849 10.60.1.204 /secure/AttachFile.jspa [labs.remoteapps.webhook.WebHookRegistrationManager] Failed to publish web-hooks for event com.atlassian.jira.event.issue.IssueEvent java.lang.IllegalArgumentException: duplicate key: Attachment 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.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.changeGroupToMap(IssueEventMapper.java:78) at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:40) at com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:16) at com.atlassian.labs.remoteapps.product.jira.webhook.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:41) {noformat} {panel:title=Workaround| borderStyle=dashed| borderColor=#3C78B5| titleBGColor=#3C78B5| bgColor=#E7F4FA} This issue still exists in JIRA 5.2, the following will act as a workaround to the verbose logging: * On the file system navigate to your directory \{JIRA_INSTALL\}/atlassian-jira/WEB-INF/classes/ * Make a backup copy of log4j.properties * Add the following line to the log4j.properties file: _com.atlassian.jira.plugins.webhooks.jira-webhooks-plugin = OFF, console, filelog_ * Restart JIRA {panel}

    Atlassian JIRA | 4 years ago | Janet Albion [Atlassian]
    java.lang.IllegalArgumentException: duplicate key: Attachment
  3. 0

    Server crash

    GitHub | 3 years ago | niklon
    java.lang.IllegalArgumentException: duplicate key: Enchantment[21, LOOT_BONUS_MOBS]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.DoubleConverter

    Stack Overflow | 3 years ago | Lance
    java.lang.IllegalArgumentException: duplicate key: class javax.faces.convert.DoubleConverter

    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: Attachment

      at com.google.common.base.Preconditions.checkArgument()
    2. Guava
      ImmutableMap$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)
      4 frames
    3. com.atlassian.labs
      JiraEventSerializerFactory.create
      1. com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.changeGroupToMap(IssueEventMapper.java:78)
      2. com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:40)
      3. com.atlassian.labs.remoteapps.product.jira.webhook.IssueEventMapper.toMap(IssueEventMapper.java:16)
      4. com.atlassian.labs.remoteapps.product.jira.webhook.JiraEventSerializerFactory.create(JiraEventSerializerFactory.java:41)
      4 frames