com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.NullPointerException

Atlassian JIRA | Alejandro Conde Carrillo | 3 years ago
  1. 0

    When establishing a trusted application link with a JIRA (tested with different 6.1.x versions), when viewing a page which contain links to JIRA issues, clicking on the _JIRA links_ button, the links are displayed but you receive the following warning on the screen: {quote}(!) Unable to retrieve all JIRA metadata. Error retrieving JIRA metadata. Please check the logs for errors{quote} The following stack trace appears in the logs: {noformat}2014-01-17 13:02:33,729 ERROR [http-6540-4] [jira.service.helper.JiraMetadataErrorHelper] logError Error retrieving JIRA metadata. Please check the logs for errors -- url: /rest/jira-metadata/1.0/metadata | userName: alex | referer: http://aconde01:6540/display/~alex/badsfasdf+asdf+asdf+asdf+adsf com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.NullPointerException at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper.handleException(SingleAppLinkMetadataHelper.java:159) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper.access$600(SingleAppLinkMetadataHelper.java:30) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:109) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:90) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.atlassian.confluence.plugins.metadata.jira.service.helper.JiraEpicPropertiesHelper.getEpicProperties(JiraEpicPropertiesHelper.java:52) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:98) ... 6 more {noformat} No error appears on JIRA logs. The problem comes from the REST call {{<CONFLUENCE_URL>/rest/jira-metadata/1.0/metadata?pageId=1736714&_=1389961101786}}. The response to that rest call is: {noformat}{"count":1,"groups":[{"type":"VERSIONS","items":[],"links":[]},{"type":"SPRINTS","items":[],"links":[]},{"type":"EPICS","items":[],"links":[]},{"type":"ISSUES","items":[{"name":"TPA-1","status":"To Do","description":"Test Issue 1","url":"http://aconde01:5611/browse/TPA-1"}],"links":[]}],"unauthorisedAppLinks":[],"errors":[{"type":"WARNING","errorMessage":"Error retrieving JIRA metadata. Please check the logs for errors"}]}}{noformat} This makes me think it is related to authentication, but other information and features which come from that application link work without apparent problems. +Repro Steps:+ # Create an application link between JIRA and Confluence. Make sure _trusted authentication_ is enabled. # Create a new Confluence page and add a link to a JIRA ticket. # The JIRA Link button will now appear on the top of the created page. Click on it to get the error.

    Atlassian JIRA | 3 years ago | Alex Conde [Atlassian]
    com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.NullPointerException
  2. 0

    When establishing a trusted application link with a JIRA (tested with different 6.1.x versions), when viewing a page which contain links to JIRA issues, clicking on the _JIRA links_ button, the links are displayed but you receive the following warning on the screen: {quote}(!) Unable to retrieve all JIRA metadata. Error retrieving JIRA metadata. Please check the logs for errors{quote} The following stack trace appears in the logs: {noformat}2014-01-17 13:02:33,729 ERROR [http-6540-4] [jira.service.helper.JiraMetadataErrorHelper] logError Error retrieving JIRA metadata. Please check the logs for errors -- url: /rest/jira-metadata/1.0/metadata | userName: alex | referer: http://aconde01:6540/display/~alex/badsfasdf+asdf+asdf+asdf+adsf com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.NullPointerException at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper.handleException(SingleAppLinkMetadataHelper.java:159) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper.access$600(SingleAppLinkMetadataHelper.java:30) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:109) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:90) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at com.atlassian.confluence.plugins.metadata.jira.service.helper.JiraEpicPropertiesHelper.getEpicProperties(JiraEpicPropertiesHelper.java:52) at com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:98) ... 6 more {noformat} No error appears on JIRA logs. The problem comes from the REST call {{<CONFLUENCE_URL>/rest/jira-metadata/1.0/metadata?pageId=1736714&_=1389961101786}}. The response to that rest call is: {noformat}{"count":1,"groups":[{"type":"VERSIONS","items":[],"links":[]},{"type":"SPRINTS","items":[],"links":[]},{"type":"EPICS","items":[],"links":[]},{"type":"ISSUES","items":[{"name":"TPA-1","status":"To Do","description":"Test Issue 1","url":"http://aconde01:5611/browse/TPA-1"}],"links":[]}],"unauthorisedAppLinks":[],"errors":[{"type":"WARNING","errorMessage":"Error retrieving JIRA metadata. Please check the logs for errors"}]}}{noformat} This makes me think it is related to authentication, but other information and features which come from that application link work without apparent problems. +Repro Steps:+ # Create an application link between JIRA and Confluence. Make sure _trusted authentication_ is enabled. # Create a new Confluence page and add a link to a JIRA ticket. # The JIRA Link button will now appear on the top of the created page. Click on it to get the error.

    Atlassian JIRA | 3 years ago | Alejandro Conde Carrillo
    com.atlassian.confluence.plugins.metadata.jira.exception.JiraMetadataException: java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.confluence.plugins.metadata.jira.service.helper.JiraEpicPropertiesHelper.getEpicProperties()
    2. com.atlassian.confluence
      SingleAppLinkMetadataHelper$1.call
      1. com.atlassian.confluence.plugins.metadata.jira.service.helper.JiraEpicPropertiesHelper.getEpicProperties(JiraEpicPropertiesHelper.java:52)
      2. com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:98)
      3. com.atlassian.confluence.plugins.metadata.jira.service.helper.SingleAppLinkMetadataHelper$1.call(SingleAppLinkMetadataHelper.java:90)
      3 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      2. java.util.concurrent.FutureTask.run(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      5. java.lang.Thread.run(Unknown Source)
      5 frames