org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined

Spring JIRA | k d x | 1 decade ago
  1. 0

    Given the following Java sources: p/Main.java: ----------------------------------------------------------------------------------- package p; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.InputStreamResource; public class Main { public static void main(String [] args) throws FileNotFoundException { InputStream is1 = new FileInputStream(args[0]); XmlBeanFactory bf = new XmlBeanFactory(new InputStreamResource(is1)); O o = (O)bf.getBeansOfType(O.class).values().iterator().next(); System.out.println("o="+o); } } ----------------------------------------------------------------------------------- p/O.java: ----------------------------------------------------------------------------------- package p; public class O { private I i; public I getI() { return this.i; } public void setI(I i) { this.i = i; } } ----------------------------------------------------------------------------------- p/I.java ----------------------------------------------------------------------------------- package p; public class I { private I i; public I getI() { return this.i; } public void setI(I i) { this.i = i; } } ----------------------------------------------------------------------------------- and the following bean definition (spring-refcycle.xml): ----------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="bean-0" class="p.O"> <property name="i"> <bean id="bean-1" class="p.I"> <property name="i"> <bean id="bean-2" class="p.I"> <property name="i"><ref bean="bean-1" /></property> </bean> </property> </bean> </property> </bean> </beans> ----------------------------------------------------------------------------------- running "Main spring-refcycle.xml" results in an exception: ----------------------------------------------------------------------------------- 16:50:38,287 INFO [CollectionFactory] JDK 1.4+ collections available 16:50:38,287 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap] 16:50:38,334 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from resource loaded through InputStream 16:50:38,334 DEBUG [XmlBeanDefinitionReader] Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@aeea66] 16:50:38,334 DEBUG [ResourceEntityResolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd] 16:50:38,334 DEBUG [ResourceEntityResolver] Trying to locate [spring-beans.dtd] in Spring jar 16:50:38,365 DEBUG [ResourceEntityResolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Loading bean definitions 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default lazy init 'false' 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default autowire 'no' 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default dependency check 'none' 16:50:38,412 DEBUG [DefaultXmlBeanDefinitionParser] Found 1 <bean> elements in resource loaded through InputStream 16:50:38,412 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap] 16:51:05,850 DEBUG [XmlBeanFactory] Creating shared instance of singleton bean 'bean-0' 16:51:41,209 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-0' with merged definition [Root bean: class [p.O]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 16:51:45,225 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-0' 16:52:07,365 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [p.O] 16:52:07,365 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [p.O] 16:52:07,381 DEBUG [CachedIntrospectionResults] Found property 'class' of type [java.lang.Class] 16:52:07,381 DEBUG [CachedIntrospectionResults] Found property 'i' of type [p.I] 16:52:07,381 DEBUG [CachedIntrospectionResults] Class [p.O] is cache-safe 16:52:53,865 DEBUG [XmlBeanFactory] Eagerly caching bean with name 'bean-0' to allow for resolving potential circular references 16:54:07,553 DEBUG [BeanDefinitionValueResolver] Resolving inner bean definition 'bean-1' of bean 'bean-0' 17:10:41,922 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-1' with merged definition [Root bean: class [p.I]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 17:10:41,922 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-1' 17:10:41,922 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Found property 'class' of type [java.lang.Class] 17:10:41,922 DEBUG [CachedIntrospectionResults] Found property 'i' of type [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Class [p.I] is cache-safe 17:10:45,328 DEBUG [BeanDefinitionValueResolver] Resolving inner bean definition 'bean-2' of bean 'bean-1' 17:10:47,141 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-2' with merged definition [Root bean: class [p.I]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 17:10:47,141 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-2' 17:10:47,141 DEBUG [CachedIntrospectionResults] Using cached introspection results for class [p.I] 17:10:49,719 DEBUG [BeanDefinitionValueResolver] Resolving reference from property 'bean property 'i'' in bean 'bean-2' to bean 'bean-1' 17:10:49,735 DEBUG [CollectionFactory] Creating [java.util.LinkedHashSet] 17:10:51,016 DEBUG [XmlBeanFactory] No bean named 'bean-1' found in org.springframework.beans.factory.xml.XmlBeanFactory defining beans [bean-0]; root of BeanFactory hierarchy Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-0' defined in resource loaded through InputStream: Cannot create inner bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-1' defined in resource loaded through InputStream: Cannot create inner bean 'bean-2' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-1' defined in resource loaded through InputStream: Cannot create inner bean 'bean-2' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:686) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:211) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:200) at p.Main.main(Main.java:17) ----------------------------------------------------------------------------------- Is this supposed to happen?

    Spring JIRA | 1 decade ago | k d x
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined
  2. 0

    Given the following Java sources: p/Main.java: ----------------------------------------------------------------------------------- package p; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.InputStreamResource; public class Main { public static void main(String [] args) throws FileNotFoundException { InputStream is1 = new FileInputStream(args[0]); XmlBeanFactory bf = new XmlBeanFactory(new InputStreamResource(is1)); O o = (O)bf.getBeansOfType(O.class).values().iterator().next(); System.out.println("o="+o); } } ----------------------------------------------------------------------------------- p/O.java: ----------------------------------------------------------------------------------- package p; public class O { private I i; public I getI() { return this.i; } public void setI(I i) { this.i = i; } } ----------------------------------------------------------------------------------- p/I.java ----------------------------------------------------------------------------------- package p; public class I { private I i; public I getI() { return this.i; } public void setI(I i) { this.i = i; } } ----------------------------------------------------------------------------------- and the following bean definition (spring-refcycle.xml): ----------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="bean-0" class="p.O"> <property name="i"> <bean id="bean-1" class="p.I"> <property name="i"> <bean id="bean-2" class="p.I"> <property name="i"><ref bean="bean-1" /></property> </bean> </property> </bean> </property> </bean> </beans> ----------------------------------------------------------------------------------- running "Main spring-refcycle.xml" results in an exception: ----------------------------------------------------------------------------------- 16:50:38,287 INFO [CollectionFactory] JDK 1.4+ collections available 16:50:38,287 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap] 16:50:38,334 INFO [XmlBeanDefinitionReader] Loading XML bean definitions from resource loaded through InputStream 16:50:38,334 DEBUG [XmlBeanDefinitionReader] Using JAXP implementation [com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl@aeea66] 16:50:38,334 DEBUG [ResourceEntityResolver] Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd] 16:50:38,334 DEBUG [ResourceEntityResolver] Trying to locate [spring-beans.dtd] in Spring jar 16:50:38,365 DEBUG [ResourceEntityResolver] Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Loading bean definitions 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default lazy init 'false' 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default autowire 'no' 16:50:38,396 DEBUG [DefaultXmlBeanDefinitionParser] Default dependency check 'none' 16:50:38,412 DEBUG [DefaultXmlBeanDefinitionParser] Found 1 <bean> elements in resource loaded through InputStream 16:50:38,412 DEBUG [CollectionFactory] Creating [java.util.LinkedHashMap] 16:51:05,850 DEBUG [XmlBeanFactory] Creating shared instance of singleton bean 'bean-0' 16:51:41,209 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-0' with merged definition [Root bean: class [p.O]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 16:51:45,225 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-0' 16:52:07,365 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [p.O] 16:52:07,365 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [p.O] 16:52:07,381 DEBUG [CachedIntrospectionResults] Found property 'class' of type [java.lang.Class] 16:52:07,381 DEBUG [CachedIntrospectionResults] Found property 'i' of type [p.I] 16:52:07,381 DEBUG [CachedIntrospectionResults] Class [p.O] is cache-safe 16:52:53,865 DEBUG [XmlBeanFactory] Eagerly caching bean with name 'bean-0' to allow for resolving potential circular references 16:54:07,553 DEBUG [BeanDefinitionValueResolver] Resolving inner bean definition 'bean-1' of bean 'bean-0' 17:10:41,922 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-1' with merged definition [Root bean: class [p.I]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 17:10:41,922 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-1' 17:10:41,922 DEBUG [CachedIntrospectionResults] Getting BeanInfo for class [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Caching PropertyDescriptors for class [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Found property 'class' of type [java.lang.Class] 17:10:41,922 DEBUG [CachedIntrospectionResults] Found property 'i' of type [p.I] 17:10:41,922 DEBUG [CachedIntrospectionResults] Class [p.I] is cache-safe 17:10:45,328 DEBUG [BeanDefinitionValueResolver] Resolving inner bean definition 'bean-2' of bean 'bean-1' 17:10:47,141 DEBUG [XmlBeanFactory] Creating instance of bean 'bean-2' with merged definition [Root bean: class [p.I]; abstract=false; singleton=true; lazyInit=false; autowire=0; dependencyCheck=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in resource loaded through InputStream] 17:10:47,141 DEBUG [XmlBeanFactory] Invoking BeanPostProcessors before instantiation of bean 'bean-2' 17:10:47,141 DEBUG [CachedIntrospectionResults] Using cached introspection results for class [p.I] 17:10:49,719 DEBUG [BeanDefinitionValueResolver] Resolving reference from property 'bean property 'i'' in bean 'bean-2' to bean 'bean-1' 17:10:49,735 DEBUG [CollectionFactory] Creating [java.util.LinkedHashSet] 17:10:51,016 DEBUG [XmlBeanFactory] No bean named 'bean-1' found in org.springframework.beans.factory.xml.XmlBeanFactory defining beans [bean-0]; root of BeanFactory hierarchy Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-0' defined in resource loaded through InputStream: Cannot create inner bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-1' defined in resource loaded through InputStream: Cannot create inner bean 'bean-2' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-1' defined in resource loaded through InputStream: Cannot create inner bean 'bean-2' while setting bean property 'i'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bean-2' defined in resource loaded through InputStream: Cannot resolve reference to bean 'bean-1' while setting bean property 'i'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:686) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:211) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:200) at p.Main.main(Main.java:17) ----------------------------------------------------------------------------------- Is this supposed to happen?

    Spring JIRA | 1 decade ago | k d x
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'bean-1' is defined
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    grails 3.1.7 hibernate4 spring-security

    Stack Overflow | 6 months ago | Marco Di Scala
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '' is defined
  5. 0

    No bean named '' is defined (Frameworks forum at Coderanch)

    coderanch.com | 6 months ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named '' is defined

    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. org.springframework.beans.factory.NoSuchBeanDefinitionException

      No bean named 'bean-1' is defined

      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
    2. Spring Beans
      DefaultListableBeanFactory.getBeansOfType
      1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:686)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
      5. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)
      6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
      8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
      10. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151)
      11. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97)
      12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
      13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      14. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
      15. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:151)
      16. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:97)
      17. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)
      18. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
      19. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)
      20. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
      21. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
      22. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:211)
      23. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:200)
      23 frames
    3. p
      Main.main
      1. p.Main.main(Main.java:17)
      1 frame