Upgrading ATST results in a RuntimeException thrown from TroubleshootingPluginReplacementService
プラットフォームについて: 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 は除く
問題
When upgrading Atlassian Troubleshooting and Support Tools (ATST) from versions prior to 1.3 to a higher version, the following exception is logged in JIRA log file:
2017-10-20 12:04:51,743 UpmAsynchronousTaskManager:thread-2 ERROR admin 724x440x1 1wtf84b 172.17.0.1 /rest/plugins/1.0/ [c.a.event.internal.AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.plugin.event.events.PluginEnabledEvent for com.atlassian.troubleshooting.plugin-jira] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.troubleshooting.upgrade.TroubleshootingPluginReplacementService.onPluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent), listener=com.atlassian.troubleshooting.upgrade.TroubleshootingPluginReplacementService@1ad233fd}]
java.lang.RuntimeException: service proxy has been destroyed. Listener: com.atlassian.troubleshooting.upgrade.TroubleshootingPluginReplacementService event: com.atlassian.plugin.event.events.PluginEnabledEvent
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:55)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:38)
at com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)
...
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.gemini.blueprint.service.importer.ServiceProxyDestroyedException: service proxy has been destroyed
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceDynamicInterceptor$ServiceLookUpCallback.doWithRetry(ServiceDynamicInterceptor.java:102)
at org.eclipse.gemini.blueprint.service.importer.support.internal.support.RetryTemplate.execute(RetryTemplate.java:81)
...
原因
The ATST upgrade approach has been changed in version 1.3, therefore it is not listening for PluginEnabledEvent
anymore, which results in the above exception.
ソリューション
This exception can be safely ignored, as this is a spurious exception. It has no impact on the functionality.