java.lang.NullPointerException

Atlassian JIRA | Sepideh Setayeshfar | 2 years ago
  1. 0

    Discovered for Stash version 3.1.4 How to reproduce: - create applink Stash - Bamboo - add an SSH key without label (use example pasted below) - verify that there is a key with *null* label (*not* an empty string - in such case everything will work) by GET-ing /rest/ssh/1.0/keys - try adding a linked repository of Stash type in Bamboo {code} 2014-09-05 09:33:01,628 DEBUG [http-apr-8085-exec-7] [StashRepository] Exception while negotiating key java.lang.NullPointerException at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:14) at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:8) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Lists.newArrayList(Lists.java:139) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:23) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:11) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:22) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:12) at com.atlassian.stash.rest.client.core.StashClientImpl.getCurrentUserKeys(StashClientImpl.java:215) at com.atlassian.stash.rest.client.core.StashClientImpl.isUserKey(StashClientImpl.java:226) {code} Key that caused the error: AAAAB3NzaC1yc2EAAAABJQAAAIEA2YTE7vL0AFcCJe1fH+URNpU3R0Vtw5HP4OmR8IUAEyWoi4euYF3DNTKLUrJgD8UXkVtE7Lld+Kfkff+uu2ZBuaTHWEOqdF4xESdFzSHXxxkhPAl/LfUMXCrRG5UxPja+N3VTDL/ghAWqRSlja3cg56Ia5EkDH5LZpL4PYd7bo2c= *Workaround:* This issue is related to one of the SSH keys in Stash. There is one key without a label that causes the error. Please try to delete it (and maybe update with a new one, but this time with a label) and then try to add a Stash repository. To do so, please go to Stash, then under your profile go to "Manage Account", then to "SSH Keys" and delete the single label-less key.

    Atlassian JIRA | 2 years ago | Sepideh Setayeshfar [Atlassian]
    java.lang.NullPointerException
  2. 0

    Discovered for Stash version 3.1.4 How to reproduce: - create applink Stash - Bamboo - add an SSH key without label (use example pasted below) - verify that there is a key with *null* label (*not* an empty string - in such case everything will work) by GET-ing /rest/ssh/1.0/keys - try adding a linked repository of Stash type in Bamboo {code} 2014-09-05 09:33:01,628 DEBUG [http-apr-8085-exec-7] [StashRepository] Exception while negotiating key java.lang.NullPointerException at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:14) at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:8) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Lists.newArrayList(Lists.java:139) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:23) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:11) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:22) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:12) at com.atlassian.stash.rest.client.core.StashClientImpl.getCurrentUserKeys(StashClientImpl.java:215) at com.atlassian.stash.rest.client.core.StashClientImpl.isUserKey(StashClientImpl.java:226) {code} Key that caused the error: AAAAB3NzaC1yc2EAAAABJQAAAIEA2YTE7vL0AFcCJe1fH+URNpU3R0Vtw5HP4OmR8IUAEyWoi4euYF3DNTKLUrJgD8UXkVtE7Lld+Kfkff+uu2ZBuaTHWEOqdF4xESdFzSHXxxkhPAl/LfUMXCrRG5UxPja+N3VTDL/ghAWqRSlja3cg56Ia5EkDH5LZpL4PYd7bo2c= *Workaround:* This issue is related to one of the SSH keys in Stash. There is one key without a label that causes the error. Please try to delete it (and maybe update with a new one, but this time with a label) and then try to add a Stash repository. To do so, please go to Stash, then under your profile go to "Manage Account", then to "SSH Keys" and delete the single label-less key.

    Atlassian JIRA | 2 years ago | Sepideh Setayeshfar [Atlassian]
    java.lang.NullPointerException
  3. 0

    Discovered for Stash version 3.1.4 How to reproduce: - create applink Stash - Bamboo - add an SSH key without label (use example pasted below) - verify that there is a key with *null* label (*not* an empty string - in such case everything will work) by GET-ing /rest/ssh/1.0/keys - try adding a linked repository of Stash type in Bamboo {code} 2014-09-05 09:33:01,628 DEBUG [http-apr-8085-exec-7] [StashRepository] Exception while negotiating key java.lang.NullPointerException at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:14) at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:8) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Lists.newArrayList(Lists.java:139) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:23) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:11) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:22) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:12) at com.atlassian.stash.rest.client.core.StashClientImpl.getCurrentUserKeys(StashClientImpl.java:215) at com.atlassian.stash.rest.client.core.StashClientImpl.isUserKey(StashClientImpl.java:226) {code} Key that caused the error: AAAAB3NzaC1yc2EAAAABJQAAAIEA2YTE7vL0AFcCJe1fH+URNpU3R0Vtw5HP4OmR8IUAEyWoi4euYF3DNTKLUrJgD8UXkVtE7Lld+Kfkff+uu2ZBuaTHWEOqdF4xESdFzSHXxxkhPAl/LfUMXCrRG5UxPja+N3VTDL/ghAWqRSlja3cg56Ia5EkDH5LZpL4PYd7bo2c= *Workaround:* This issue is related to one of the SSH keys in Stash. There is one key without a label that causes the error. Please try to delete it (and maybe update with a new one, but this time with a label) and then try to add a Stash repository. To do so, please go to Stash, then under your profile go to "Manage Account", then to "SSH Keys" and delete the single label-less key.

    Atlassian JIRA | 2 years ago | Sepideh Setayeshfar
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Discovered for Stash version 3.1.4 How to reproduce: - create applink Stash - Bamboo - add an SSH key without label (use example pasted below) - verify that there is a key with *null* label (*not* an empty string - in such case everything will work) by GET-ing /rest/ssh/1.0/keys - try adding a linked repository of Stash type in Bamboo {code} 2014-09-05 09:33:01,628 DEBUG [http-apr-8085-exec-7] [StashRepository] Exception while negotiating key java.lang.NullPointerException at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:14) at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:8) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at com.google.common.collect.Lists.newArrayList(Lists.java:139) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:23) at com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:11) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:22) at com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:12) at com.atlassian.stash.rest.client.core.StashClientImpl.getCurrentUserKeys(StashClientImpl.java:215) at com.atlassian.stash.rest.client.core.StashClientImpl.isUserKey(StashClientImpl.java:226) {code} Key that caused the error: AAAAB3NzaC1yc2EAAAABJQAAAIEA2YTE7vL0AFcCJe1fH+URNpU3R0Vtw5HP4OmR8IUAEyWoi4euYF3DNTKLUrJgD8UXkVtE7Lld+Kfkff+uu2ZBuaTHWEOqdF4xESdFzSHXxxkhPAl/LfUMXCrRG5UxPja+N3VTDL/ghAWqRSlja3cg56Ia5EkDH5LZpL4PYd7bo2c= *Workaround:* This issue is related to one of the SSH keys in Stash. There is one key without a label that causes the error. Please try to delete it (and maybe update with a new one, but this time with a label) and then try to add a Stash repository. To do so, please go to Stash, then under your profile go to "Manage Account", then to "SSH Keys" and delete the single label-less key.

    Atlassian JIRA | 2 years ago | Sepideh Setayeshfar
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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.NullPointerException

      No message provided

      at com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply()
    2. com.atlassian.stash
      UserSshKeyParser.apply
      1. com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:14)
      2. com.atlassian.stash.rest.client.core.parser.UserSshKeyParser.apply(UserSshKeyParser.java:8)
      2 frames
    3. Guava
      ImmutableList.copyOf
      1. com.google.common.collect.Iterators$8.next(Iterators.java:812)
      2. com.google.common.collect.Lists.newArrayList(Lists.java:139)
      3. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:256)
      4. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:217)
      4 frames
    4. com.atlassian.stash
      StashClientImpl.isUserKey
      1. com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:23)
      2. com.atlassian.stash.rest.client.core.parser.ListParser.apply(ListParser.java:11)
      3. com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:22)
      4. com.atlassian.stash.rest.client.core.parser.PageParser.apply(PageParser.java:12)
      5. com.atlassian.stash.rest.client.core.StashClientImpl.getCurrentUserKeys(StashClientImpl.java:215)
      6. com.atlassian.stash.rest.client.core.StashClientImpl.isUserKey(StashClientImpl.java:226)
      6 frames