Error in User Profile's activity stream
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Summary
Problem
The Activity Stream on the user profile does not load but instead throw an error :
1
An error occurred while trying to retrieve recent activity
The following appears in the atlassian-jira.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
2016-04-27 11:34:45,815 http-nio-8080-exec-42 ERROR zaitsev 694x3050491x2 ivkfqs 185.36.63.205,0:0:0:0:0:0:0:1 /plugins/servlet/streams [c.a.s.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:652)
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.TransformedIterator.hasNext(TransformedIterator.java:43)
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:618)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
... 17 filtered
at com.xpandit.raven.servlet.RequestIdFilter.doFilter(Unknown Source)
... 176 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Diagnosis
Environment
Reported on JIRA 7.0.10
Diagnostic Steps
Issue seems to happen after linking JIRA with another application using the application link
The error only appears on the User Profile's dasboard but not the System Dashboard
The error does not appear when the application is removed
Cause
From the investigation done, it seems like the application links is either not configured correctly or corrupted.
There is also a bug ticket raised here which has been closed as it is not reproducible JRASERVER-42885 - Error in user profile activity stream
Solution
Resolution
Recreate the application links and ensure the following on both JIRA and the other application :
Only OAuth is used for incoming and outgoing authentication.
Ensure that Trusted and Basic is disabled
Ensure that 2-legged Oauth is enabled for incoming and outgoing authentication
Was this helpful?