Activity Stream gadget doesn't load due to Third Party feeds

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

The Activity Stream gadget intermittently fails to load as displayed in the screenshot below:

診断

環境

The Activity Stream gadget was configured to display feeds from a third party source (e.g. a plugin) as per the Adding Activities to a Third Party Feed with the REST API document.

Diagnostic Steps

1) On Logging and Profiling screen, set the logging level for the net.java.ao.sql package to DEBUG and replicate the problem.

2) The queries below are written to the atlassian-jira.log file, thousands of times:

2015-12-30 16:40:22,648 StreamsCompletionService::thread-20 DEBUG username 999x283x1 1fj20mu 0:0:0:0:0:0:0:1 /rest/activity-stream/1.0/config [net.java.ao.sql] SELECT "GENERATOR_ID" FROM public."AO_563AEE_ACTIVITY_ENTITY" WHERE "ACTIVITY_ID" = ?
2015-12-30 16:40:22,648 StreamsCompletionService::thread-20 DEBUG username 999x283x1 1fj20mu 0:0:0:0:0:0:0:1 /rest/activity-stream/1.0/config [net.java.ao.sql] SELECT "GENERATOR_ID" FROM public."AO_563AEE_ACTIVITY_ENTITY" WHERE "ACTIVITY_ID" = ?
2015-12-30 16:40:22,649 StreamsCompletionService::thread-20 DEBUG username 999x283x1 1fj20mu 0:0:0:0:0:0:0:1 /rest/activity-stream/1.0/config [net.java.ao.sql] SELECT "GENERATOR_ID" FROM public."AO_563AEE_ACTIVITY_ENTITY" WHERE "ACTIVITY_ID" = ?
2015-12-30 16:40:22,650 StreamsCompletionService::thread-20 DEBUG username 999x283x1 1fj20mu 0:0:0:0:0:0:0:1 /rest/activity-stream/1.0/config [net.java.ao.sql] SELECT "GENERATOR_ID" FROM public."AO_563AEE_ACTIVITY_ENTITY" WHERE "ACTIVITY_ID" = ?

3) When you inspect the browser console after replicating the problem, the error message below is displayed:

Uncaught TypeError: Cannot read property 'filters' of null

4) The thread dumps taken while replicating the problem display a stack trace similar to the one below:

"StreamsCompletionService::thread-38" prio=5 tid=0x00007f9830ec2800 nid=0x12803 runnable [0x0000700007afe000]
   java.lang.Thread.State: RUNNABLE
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:152)
    at java.net.SocketInputStream.read(SocketInputStream.java:122)
    (...)
    at com.atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl$2.apply(ActivityServiceActiveObjectsImpl.java:637)
    at com.atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl$2.apply(ActivityServiceActiveObjectsImpl.java:633)
    at com.google.common.collect.Iterators$8.next(Iterators.java:812)
    at com.atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl.uniqueApplications(ActivityServiceActiveObjectsImpl.java:298)
    at com.atlassian.streams.thirdparty.ActivityServiceActiveObjectsImpl.applications(ActivityServiceActiveObjectsImpl.java:291)
    (...)
    at com.sun.proxy.$Proxy2796.applications(Unknown Source)
    at com.atlassian.streams.thirdparty.ActivityServiceDelegator.applications(ActivityServiceDelegator.java:47)
    at com.atlassian.streams.thirdparty.ThirdPartyStreamsFilterOptionProvider$1.doInTransaction(ThirdPartyStreamsFilterOptionProvider.java:53)
    at com.atlassian.streams.thirdparty.ThirdPartyStreamsFilterOptionProvider$1.doInTransaction(ThirdPartyStreamsFilterOptionProvider.java:49)
    at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
    at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34)
    (...)
    at com.sun.proxy.$Proxy2790.execute(Unknown Source)
    at com.atlassian.streams.thirdparty.ThirdPartyStreamsFilterOptionProvider.getThirdPartyProviderFilter(ThirdPartyStreamsFilterOptionProvider.java:48)
    at com.atlassian.streams.thirdparty.ThirdPartyStreamsFilterOptionProvider.getFilterOptions(ThirdPartyStreamsFilterOptionProvider.java:43)
    at com.atlassian.streams.internal.rest.representations.ProviderFilterRepresentation.<init>(ProviderFilterRepresentation.java:61)
    at com.atlassian.streams.internal.LocalActivityProvider.getFilters(LocalActivityProvider.java:144)
    at com.atlassian.streams.internal.ConfigRepresentationBuilder$6$1.call(ConfigRepresentationBuilder.java:253)
    at com.atlassian.streams.internal.ConfigRepresentationBuilder$6$1.call(ConfigRepresentationBuilder.java:249)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:38)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

原因

The Activity Stream doesn't load due to performance problems to retrieve Third Party feeds (Adding Activities to a Third Party Feed with the REST API).

This bug is tracked tracked on Unable to locate Jira server for this macro. It may be due to Application Link configuration. , which has been fixed on the Activity Stream plugin version 6.0.0, included in JIRA Core 7.0 or later.

ソリューション

Upgrade your JIRA instance to version 7.0 or later as per the Upgrading JIRA document.
Last modified on Mar 30, 2016

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.