java.lang.NullPointerException

Atlassian JIRA | Janet Albion [Atlassian] | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h3. Steps to Reproduce: # Install Confluence 5.10.x # Install JIRA Service Desk 3.2.1 # Create 2 users in both JIRA SD and Confluence. One of the user in JIRA SD is using on the Service Desk. Eg: userend2 is SD Agent, and enduser3 has  Customer access. Refer to screenshot  for example !UserListInJIRA.png|thumbnail! # Create Application Link between JIRA SD and Confluence using 2-Legged OAuth with Impersonation. Refer to   !Applink2LOi.png|thumbnail! # In Confluence, login as enduser2, access the Workbox Notification and it will shows correct information. Refer to  # In another web browser, login to Confluence as enduser3, then access the Workbox Notification   h3. Expected Behaviour: Workbox will be showing relevant notification   h3. Actual Behaviour * Workbox Notification keep loading as shown in screenshot  !NotificationBoxKeepLoading.png|thumbnail! * Following traces can be found in the Confluence Log: {code:java} 2016-09-09 17:25:16,714 ERROR [http-nio-8510-exec-9] [mywork.host.rest.ExceptionLogger] toResponse Exception thrown from REST resource -- referer: http://localhost:8510/conf5104/plugins/servlet/notifications-miniview | url: /conf5104/rest/mywork/latest/notification/nested | traceId: a7df6b452cec534e | userName: enduser3 java.lang.NullPointerException at net.oauth.signature.OAuthSignatureMethod.normalizeUrl(OAuthSignatureMethod.java:156) at net.oauth.signature.OAuthSignatureMethod.getBaseString(OAuthSignatureMethod.java:149) at net.oauth.signature.OAuthSignatureMethod.getSignature(OAuthSignatureMethod.java:76) at net.oauth.signature.OAuthSignatureMethod.sign(OAuthSignatureMethod.java:47) at net.oauth.OAuthMessage.sign(OAuthMessage.java:297) at net.oauth.OAuthMessage.addRequiredParameters(OAuthMessage.java:287) ... at com.atlassian.applinks.oauth.auth.OAuthRequest.signRequest(OAuthRequest.java:97) at com.atlassian.applinks.oauth.auth.twolo.impersonation.TwoLeggedOAuthWithImpersonationRequest.signRequest(TwoLeggedOAuthWithImpersonationRequest.java:48) at com.atlassian.applinks.oauth.auth.OAuthRequest.execute(OAuthRequest.java:57) at com.atlassian.applinks.oauth.auth.OAuthApplinksResponseHandler.handle(OAuthApplinksResponseHandler.java:73) ... {code}

    Atlassian JIRA | 6 months ago | Janet Albion [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at net.oauth.signature.OAuthSignatureMethod.normalizeUrl()
    2. OAuth
      OAuthMessage.addRequiredParameters
      1. net.oauth.signature.OAuthSignatureMethod.normalizeUrl(OAuthSignatureMethod.java:156)
      2. net.oauth.signature.OAuthSignatureMethod.getBaseString(OAuthSignatureMethod.java:149)
      3. net.oauth.signature.OAuthSignatureMethod.getSignature(OAuthSignatureMethod.java:76)
      4. net.oauth.signature.OAuthSignatureMethod.sign(OAuthSignatureMethod.java:47)
      5. net.oauth.OAuthMessage.sign(OAuthMessage.java:297)
      6. net.oauth.OAuthMessage.addRequiredParameters(OAuthMessage.java:287)
      6 frames