Plugin fails to start with "NoSuchBeanDefinitionException: no unique bean of type" error due to duplicate interfaces in host component exports

XMLWordPrintable

      Quite a few of the Spring components we expose to plugins share interfaces. This breaks plugins that expect to get just one bean injected with an error message like this:

      Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.cache.CacheFactory] is defined: expected single matching bean but found 2: [cacheManager, transactionalCacheFactory]
      

      We should ensure that host components are only exported with an interface which is unique to them, and we don't expose any components which don't have an interface.

              Assignee:
              Brian Nguyen (Inactive)
              Reporter:
              Matt Ryall
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: