Activity stream fails to load with error An Error Occurred While Trying To Retrieve Recent Activity

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When attempting to access Gadget activity streams or User Profile's activity stream for any user, it fails to load and throws an error similar to the following:

 

The following appears in the atlassian-jira.log:

2016-06-xx 21:19:12,824 http-bio-8080-exec-xxxx ERROR xxx.xxx 1279x406949x2 1dt2b7s xx.xx.xx.xx /plugins/servlet/streams [streams.internal.servlet.StreamsActivityServlet] Error getting activity
java.lang.NullPointerException
	at com.atlassian.streams.api.common.Either$2.apply(Either.java:176)
	at com.atlassian.streams.api.common.Either$2.apply(Either.java:173)
	at com.google.common.collect.Iterators$7.computeNext(Iterators.java:649)
	at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
	at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
	at com.google.common.collect.Iterators$8.hasNext(Iterators.java:807)
	at com.atlassian.streams.internal.StreamsCompletionService.registerFailures(StreamsCompletionService.java:152)
	at com.atlassian.streams.internal.StreamsCompletionService.execute(StreamsCompletionService.java:145)
	at com.atlassian.streams.internal.FeedBuilder.getFeed(FeedBuilder.java:69)
	at com.atlassian.streams.internal.servlet.StreamsActivityServlet.doGet(StreamsActivityServlet.java:71)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
...

Diagnosis

Environment

  • Bamboo application links have been configured. 

Diagnostic Steps

  • Bamboo application links are not working properly, and Bamboo data is not shown in JIRA's Development Panel, or is not updated.
  • You may also see these types of NullPointerException errors in the logs:

    2016-06-xx 21:19:28,255 http-bio-8080-exec-1632 WARN xxxx 1279x406978x2 1dt2b7s xx.xx.xx.xx /rest/bamboo/latest/deploy/XXX/XXX-465 [ext.bamboo.rest.BambooDeploymentProjectResource] 
    java.lang.NullPointerException
    	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.isResponseValid(BambooRestServiceImpl.java:460)
    	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.parseResponseForJsonObject(BambooRestServiceImpl.java:404)
    	at com.atlassian.jira.plugin.ext.bamboo.service.BambooRestServiceImpl.getDeploymentProjectsForIssue(BambooRestServiceImpl.java:251)
    	at com.atlassian.jira.plugin.ext.bamboo.rest.BambooDeploymentProjectResource.getIssueDeploymentStatus(BambooDeploymentProjectResource.java:136)
    	at sun.reflect.GeneratedMethodAccessor1384.invoke(Unknown Source)  <+1> (DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)  <+19> (DispatchProviderHelper.java:234) (DispatchProviderHelper.java:100) (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38) (DefaultMethodInvocation.java:61) (DispatchProviderHelper.java:132) (DispatchProviderHelper.java:230) (ResourceJavaMethodDispatcher.java:75) (HttpMethodRule.java:288) (RightHandPathRule.java:147) (ResourceClassRule.java:108) (RightHandPathRule.java:147) (RootResourceClassesRule.java:84) (WebApplicationImpl.java:1469) (WebApplicationImpl.java:1400) (WebApplicationImpl.java:1349) (WebApplicationImpl.java:1339) (WebComponent.java:416) (ServletContainer.java:537)
    	at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:178)  <+1> (ServletContainer.java:795)
    ...
    2016-06-xx 21:19:28,801 http-bio-8080-exec-1626 WARN xxxx 1279x406986x4 1dt2b7s xx.xx.xx.xx /rest/dev-status/1.0/issue/summary [plugin.devstatus.provider.DefaultCoordinator] Requests failed: Atlassian Bamboo (java.lang.NullPointerException)

Cause

A broken Bamboo application link causes the Activity Stream to fail to load entirely. When the Streams plugin attempts to retrieve Bamboo data, it hits into the NullPointerException and consequently is not able to load any data in the Activity Stream.

The NullPointerException at the moment is thought to be caused by a corrupted application link with Bamboo. 

Resolution

Delete and re-create the Bamboo application link, and confirm that Bamboo data can be shown in Development Panel and Activity Streams.

If the Bamboo application link is still broken and its features are unavailable, please raise a ticket with Atlassian Support to fix the application links.

 

Last modified on Jun 27, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.