java.lang.NullPointerException

Atlassian JIRA | Vincent Chin [Atlassian] | 11 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h2.Summary Attempting to load the OAuth Access Token page from User Profile will return NullPointerException for Generic Application Link h2.Steps to Replicate # Create an OAuth Generic Application Link in Bamboo # Configure Incoming Authentication OAuth setting without description # Create a user access token with the generic application # Access the user OAuth Access Token page, e.g.: https://<INSTANCE_NAME>.atlassian.net/builds/plugins/servlet/oauth/users/access-tokens. h2.Expected Results User access token is listed. h2.Current Result The page returns error 500. The following error shown in {{atlassian-bamboo.log}} {noformat} 2016-03-14 10:54:25,297 ERROR [http-nio-8085-exec-15] [FiveOhOh] 500 Exception was thrown. java.lang.NullPointerException at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.parseUriFromDescription(AccessTokensServlet.java:217) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.access$000(AccessTokensServlet.java:35) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$TokenRepresentation.<init>(AccessTokensServlet.java:125) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:241) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:237) at com.google.common.collect.Iterators$8.transform(Iterators.java:799) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:271) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:226) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.doGet(AccessTokensServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45) {noformat} h2.Workaround Delete the current OAuth Incoming Authentication configuration and recreate it again with description h2.Note Perhaps it will be good to make the OAuth Incoming Authentication description field to be mandatory.

    Atlassian JIRA | 11 months ago | Vincent Chin [Atlassian]
    java.lang.NullPointerException
  2. 0

    h2.Summary Attempting to load the OAuth Access Token page from User Profile will return NullPointerException for Generic Application Link h2.Steps to Replicate # Create an OAuth Generic Application Link in Bamboo # Configure Incoming Authentication OAuth setting without description # Create a user access token with the generic application # Access the user OAuth Access Token page, e.g.: https://<INSTANCE_NAME>.atlassian.net/builds/plugins/servlet/oauth/users/access-tokens. h2.Expected Results User access token is listed. h2.Current Result The page returns error 500. The following error shown in {{atlassian-bamboo.log}} {noformat} 2016-03-14 10:54:25,297 ERROR [http-nio-8085-exec-15] [FiveOhOh] 500 Exception was thrown. java.lang.NullPointerException at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.parseUriFromDescription(AccessTokensServlet.java:217) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.access$000(AccessTokensServlet.java:35) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$TokenRepresentation.<init>(AccessTokensServlet.java:125) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:241) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:237) at com.google.common.collect.Iterators$8.transform(Iterators.java:799) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:271) at com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:226) at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.doGet(AccessTokensServlet.java:71) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45) {noformat} h2.Workaround Delete the current OAuth Incoming Authentication configuration and recreate it again with description h2.Note Perhaps it will be good to make the OAuth Incoming Authentication description field to be mandatory.

    Atlassian JIRA | 11 months ago | Vincent Chin [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.parseUriFromDescription()
    2. com.atlassian.oauth
      AccessTokensServlet$1.apply
      1. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.parseUriFromDescription(AccessTokensServlet.java:217)
      2. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.access$000(AccessTokensServlet.java:35)
      3. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$TokenRepresentation.<init>(AccessTokensServlet.java:125)
      4. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:241)
      5. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet$1.apply(AccessTokensServlet.java:237)
      5 frames
    3. Guava
      ImmutableList.copyOf
      1. com.google.common.collect.Iterators$8.transform(Iterators.java:799)
      2. com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      3. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:271)
      4. com.google.common.collect.ImmutableList.copyOf(ImmutableList.java:226)
      4 frames
    4. com.atlassian.oauth
      AccessTokensServlet.doGet
      1. com.atlassian.oauth.serviceprovider.internal.servlet.user.AccessTokensServlet.doGet(AccessTokensServlet.java:71)
      1 frame
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:622)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      2 frames
    6. com.atlassian.plugin
      DelegatingPluginServlet.service
      1. com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      1 frame
    8. com.atlassian.plugin
      ServletModuleContainerServlet.service
      1. com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45)
      1 frame