com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean

Atlassian JIRA | hugo lassiege | 7 years ago
  1. 0

    [JRA-19791] No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] when instantiating ExactNumberSearcher - Atlassian JIRA

    atlassian.com | 8 months ago
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean
  2. 0

    Hi, I'm trying to migrate a custom fields made in jira 3.13 to jira 4.0 but I have a problem with its custom field searcher. I use the following code in atlassian-plugin.xml (this code comes from system-customfieldtypes-plugin.xml which is part of jira source code) {code:xml} <customfield-searcher key="exactnumber2" name="Number Searcher" i18n-name-key="admin.customfield.searcher.exactnumber.name" class="com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher"> <description key="admin.customfield.searcher.exactnumber.desc">Allow searching for a number which exactly matches.</description> <resource type="velocity" name="search" location="templates/plugins/fields/edit-searcher/search-basictext.vm"/> <resource type="velocity" name="view" location="templates/plugins/fields/view-searcher/view-searcher-basictext.vm"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="float"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="importid"/> <valid-customfield-type package="org.hakanai.jira.plugins.order.core" key="ordertype"/> </customfield-searcher> {code} However I always have the following error : {quote} 2009-11-20 20:33:19,767 http-8080-Processor24 ERROR hugo 73999x18x1 1qu0oyr http://localhost:8080/secure/admin/CreateCustomField.jspa [atlassian.plugin.manager.DefaultPluginManager] Exception when retrieving plugin module exactnumber, will disable plugin org.hakanai.jira.plugins.jira-order-plugin com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getModule(JiraResourcedModuleDescriptor.java:124) {quote} it seems to be related with JRA-18431 , JRA-18008, GHS-1394 but according to JRA-18431 it should be fixed now. In jira source code ExactNumberSearcher is using an interface and not a concrete implementation. So I don't understand, is FieldVisibilityManager available for OSGI plugins (v2 plugins) ?

    Atlassian JIRA | 7 years ago | hugo lassiege
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean
  3. 0

    Hi, I'm trying to migrate a custom fields made in jira 3.13 to jira 4.0 but I have a problem with its custom field searcher. I use the following code in atlassian-plugin.xml (this code comes from system-customfieldtypes-plugin.xml which is part of jira source code) {code:xml} <customfield-searcher key="exactnumber2" name="Number Searcher" i18n-name-key="admin.customfield.searcher.exactnumber.name" class="com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher"> <description key="admin.customfield.searcher.exactnumber.desc">Allow searching for a number which exactly matches.</description> <resource type="velocity" name="search" location="templates/plugins/fields/edit-searcher/search-basictext.vm"/> <resource type="velocity" name="view" location="templates/plugins/fields/view-searcher/view-searcher-basictext.vm"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="float"/> <valid-customfield-type package="com.atlassian.jira.plugin.system.customfieldtypes" key="importid"/> <valid-customfield-type package="org.hakanai.jira.plugins.order.core" key="ordertype"/> </customfield-searcher> {code} However I always have the following error : {quote} 2009-11-20 20:33:19,767 http-8080-Processor24 ERROR hugo 73999x18x1 1qu0oyr http://localhost:8080/secure/admin/CreateCustomField.jspa [atlassian.plugin.manager.DefaultPluginManager] Exception when retrieving plugin module exactnumber, will disable plugin org.hakanai.jira.plugins.jira-order-plugin com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getModule(JiraResourcedModuleDescriptor.java:124) {quote} it seems to be related with JRA-18431 , JRA-18008, GHS-1394 but according to JRA-18431 it should be fixed now. In jira source code ExactNumberSearcher is using an interface and not a concrete implementation. So I don't understand, is FieldVisibilityManager available for OSGI plugins (v2 plugins) ?

    Atlassian JIRA | 7 years ago | hugo lassiege
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I got the following exception when trying to start JIRA. After the exception the plugin system took about a few minutes to detect that it had failed and then started JIRA after throwing a lot of exceptions. It also seemed to have trouble bringing up the dashboard plugin which seems to be unrelated to Fisheye. After this failure, I gave JIRA the three-finger-salute and it started up fine. Check the attached log for extended commentary. {code} com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.perforce.customfields.JobSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.bean.FieldVisibilityBean]: : No unique bean of type [com.atlassian.jira.web.bean.FieldVisibilityBean] is defined.... at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getModule(JiraResourcedModuleDescriptor.java:124) at com.atlassian.plugin.manager.DefaultPluginManager$4.get(DefaultPluginManager.java:713) at com.atlassian.plugin.manager.DefaultPluginManager$4.get(DefaultPluginManager.java:707) at com.atlassian.plugin.util.collect.TransformingIterator.next(TransformingIterator.java:35) at com.atlassian.plugin.util.collect.CollectionUtil.foreach(CollectionUtil.java:17) at com.atlassian.plugin.util.collect.CollectionUtil.toList(CollectionUtil.java:37) at com.atlassian.plugin.util.collect.CollectionUtil.transform(CollectionUtil.java:52) at com.atlassian.plugin.util.collect.CollectionUtil.transform(CollectionUtil.java:61) at com.atlassian.plugin.manager.DefaultPluginManager.getModules(DefaultPluginManager.java:706) at com.atlassian.plugin.manager.DefaultPluginManager.getEnabledModulesByClass(DefaultPluginManager.java:775) at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldSearchers(DefaultCustomFieldManager.java:201) at com.atlassian.jira.web.action.admin.customfields.CreateCustomField.getSearchers(CreateCustomField.java:173) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:409) at webwork.util.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:157) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspx_meth_webwork_005fif_005f0(createcustomfield_002ddetails_jsp.java:933) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspx_meth_page_005fapplyDecorator_005f0(createcustomfield_002ddetails_jsp.java:260) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspService(createcustomfield_002ddetails_jsp.java:146) {code}

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.perforce.customfields.JobSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.bean.FieldVisibilityBean]: : No unique bean of type [com.atlassian.jira.web.bean.FieldVisibilityBean] is defined....
  6. 0

    I got the following exception when trying to start JIRA. After the exception the plugin system took about a few minutes to detect that it had failed and then started JIRA after throwing a lot of exceptions. It also seemed to have trouble bringing up the dashboard plugin which seems to be unrelated to Fisheye. After this failure, I gave JIRA the three-finger-salute and it started up fine. Check the attached log for extended commentary. {code} com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.perforce.customfields.JobSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.bean.FieldVisibilityBean]: : No unique bean of type [com.atlassian.jira.web.bean.FieldVisibilityBean] is defined.... at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) at com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73) at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getModule(JiraResourcedModuleDescriptor.java:124) at com.atlassian.plugin.manager.DefaultPluginManager$4.get(DefaultPluginManager.java:713) at com.atlassian.plugin.manager.DefaultPluginManager$4.get(DefaultPluginManager.java:707) at com.atlassian.plugin.util.collect.TransformingIterator.next(TransformingIterator.java:35) at com.atlassian.plugin.util.collect.CollectionUtil.foreach(CollectionUtil.java:17) at com.atlassian.plugin.util.collect.CollectionUtil.toList(CollectionUtil.java:37) at com.atlassian.plugin.util.collect.CollectionUtil.transform(CollectionUtil.java:52) at com.atlassian.plugin.util.collect.CollectionUtil.transform(CollectionUtil.java:61) at com.atlassian.plugin.manager.DefaultPluginManager.getModules(DefaultPluginManager.java:706) at com.atlassian.plugin.manager.DefaultPluginManager.getEnabledModulesByClass(DefaultPluginManager.java:775) at com.atlassian.jira.issue.managers.DefaultCustomFieldManager.getCustomFieldSearchers(DefaultCustomFieldManager.java:201) at com.atlassian.jira.web.action.admin.customfields.CreateCustomField.getSearchers(CreateCustomField.java:173) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:409) at webwork.util.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:157) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspx_meth_webwork_005fif_005f0(createcustomfield_002ddetails_jsp.java:933) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspx_meth_page_005fapplyDecorator_005f0(createcustomfield_002ddetails_jsp.java:260) at org.apache.jsp.secure.admin.views.customfields.createcustomfield_002ddetails_jsp._jspService(createcustomfield_002ddetails_jsp.java:146) {code}

    Atlassian JIRA | 7 years ago | Brenden Bain [Atlassian]
    com.atlassian.util.concurrent.LazyReference$InitializationException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jirafisheyeplugin.perforce.customfields.JobSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.bean.FieldVisibilityBean]: : No unique bean of type [com.atlassian.jira.web.bean.FieldVisibilityBean] is defined....

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.util.concurrent.LazyReference$InitializationException

      org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.atlassian.jira.issue.customfields.searchers.ExactNumberSearcher': Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.jira.web.FieldVisibilityManager]: : No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.atlassian.jira.web.FieldVisibilityManager] is defined: Unsatisfied dependency of type [interface com.atlassian.jira.web.FieldVisibilityManager]: expected at least 1 matching bean

      at com.atlassian.util.concurrent.LazyReference.getInterruptibly()
    2. com.atlassian.util
      ResettableLazyReference.get
      1. com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
      2. com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)
      3. com.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:73)
      3 frames
    3. com.atlassian.jira
      JiraResourcedModuleDescriptor.getModule
      1. com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getModule(JiraResourcedModuleDescriptor.java:124)
      1 frame