java.lang.NullPointerException

Atlassian JIRA | Andriy Yakovlev [Atlassian] | 9 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

    h3. Summary Getting the following error in the activity stream if all streams are chosen. _"An error occurred while trying to retrieve recent activity"_ All streams work if any 1 stream is unchecked. JIRA DVCS Connector Plugin (jira-bitbucket-connector-plugin) throws NullPointerException when getting activity stream on dashboard. Plugin is not visible in available streams, so there is no way to disable it explicitly. h3. Steps to Reproduce Some actions in JIRA (not able to reproduce problem locally). # Open dashboard with Activity stream h3. Expected Results Activity stream is loaded. h3. Actual Results Getting the following error in the activity stream: _"An error occurred while trying to retrieve recent activity"_ {noformat} 2016-08-09 06:44:27,048 ajp-bio-127.0.0.1-8009-exec-3449 ERROR admin 404 12 10.33.220.7 /plugins/servlet/streams [streams.internal.servlet.StreamsActivityServlet] Error getting activity java.lang.NullPointerException at com.atlassian.jira.plugins.dvcs.util.SystemUtils.getAllProjectKeys(SystemUtils.java:137) at com.atlassian.jira.plugins.dvcs.webwork.IssueAndProjectKeyManagerImpl.getAllProjectKeys(IssueAndProjectKeyManagerImpl.java:91) at com.atlassian.jira.plugins.dvcs.streams.DvcsStreamsActivityProvider.includeHistoricalProjectKeys(DvcsStreamsActivityProvider.java:317) at com.atlassian.jira.plugins.dvcs.streams.DvcsStreamsActivityProvider.getActivityFeed(DvcsStreamsActivityProvider.java:272) at com.atlassian.streams.internal.LocalActivityProvider.getActivityFeed(LocalActivityProvider.java:115) ... {noformat} h3. Notes Plugin full path: com.atlassian.jira.plugins.jira-bitbucket-connector-plugin Problem fixed in later version *3.3.20*+ JIRA 6.4.12: has version *3.2.4* JIRA 7.1.8: has *3.3.30* h3.Workaround * If you don't have any DVCS Accounts configured (integration with Bitbucket or GitHub) then disable JIRA DVCS Connector Plugin. * Some users reported that problem fixed after JIRA restart.

    Atlassian JIRA | 9 months ago | Andriy Yakovlev [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.plugins.dvcs.util.SystemUtils.getAllProjectKeys()
    2. com.atlassian.jira
      DvcsStreamsActivityProvider.getActivityFeed
      1. com.atlassian.jira.plugins.dvcs.util.SystemUtils.getAllProjectKeys(SystemUtils.java:137)
      2. com.atlassian.jira.plugins.dvcs.webwork.IssueAndProjectKeyManagerImpl.getAllProjectKeys(IssueAndProjectKeyManagerImpl.java:91)
      3. com.atlassian.jira.plugins.dvcs.streams.DvcsStreamsActivityProvider.includeHistoricalProjectKeys(DvcsStreamsActivityProvider.java:317)
      4. com.atlassian.jira.plugins.dvcs.streams.DvcsStreamsActivityProvider.getActivityFeed(DvcsStreamsActivityProvider.java:272)
      4 frames
    3. com.atlassian.streams
      LocalActivityProvider.getActivityFeed
      1. com.atlassian.streams.internal.LocalActivityProvider.getActivityFeed(LocalActivityProvider.java:115)
      1 frame