None are Marked as Primary によりアプリケーション リンクに失敗する
問題
Application Links functionality fails after creation, for example:
- Commits, Pull Requests and Branches do not display in the Development Panel.
- Pages are not correctly being displayed from Confluence.
- Bamboo builds do not appear.
atlassian-jira.log
に次のメッセージが表示される。
2015-06-13 14:35:35,116 myWorkHostChecker:thread-1 ERROR [atlassian.mywork.util.Executors] Uncaught exception in thread "myWorkHostChecker:thread-1": There are application links of type interface com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType configured, but none are marked as primary
java.lang.IllegalStateException: There are application links of type interface com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType configured, but none are marked as primary
at com.atlassian.applinks.core.DefaultApplicationLinkService.getPrimaryApplicationLink(DefaultApplicationLinkService.java:483)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy1626.getPrimaryApplicationLink(Unknown Source)
at com.atlassian.mywork.client.service.HostServiceImpl.findAutoSelectedHost(HostServiceImpl.java:178)
at com.atlassian.mywork.client.service.HostServiceImpl.findSelectedHost(HostServiceImpl.java:160)
at com.atlassian.mywork.client.service.HostServiceImpl.updateHostAvailability(HostServiceImpl.java:146)
at com.atlassian.mywork.client.service.HostServiceImpl.enable(HostServiceImpl.java:84)
at com.atlassian.mywork.client.service.ServiceSelectorImpl$2.run(ServiceSelectorImpl.java:96)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
原因
None of the Application Links have been marked as primary.
As per Making a primary link for links to the same application type, if you have set up application links to more than one of the same application type (e.g. you have linked your application to two JIRA servers), then one of the servers needs to be the 'Primary' link. This means that any outgoing requests will be directed to the primary link's application.
ソリューション
- To make a primary link, browse to Application Links and click Make Primary on one of the links.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.