Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-62194

JIRA DVCS Connector Plugin throws NullPointerException when getting activity stream on dashboard

    XMLWordPrintable

Details

    Description

      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.

      Steps to Reproduce

      Some actions in JIRA (not able to reproduce problem locally).

      1. Open dashboard with Activity stream

      Expected Results

      Activity stream is loaded.

      Actual Results

      Getting the following error in the activity stream: "An error occurred while trying to retrieve recent activity"

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

      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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: