1. Explore
  2. »
  3. Spring Beans
  4. »
  5. org.springframework.beans.factory.support

org.springframework.beans.factory.support errorsSpring Beans

Top patterns

  1. Cannot resolve reference to bean/object passed as property in bean definition

    Your applicationcontext.xml has a transactionManager defined. Your would need to remove it or add an entity manager.

    Check the source of this solution for more info

  2. Missing or incorrect property values set in bean definition

    There are quite a few reasons as to why this might happen:

    • Incompatible reference objects (versions not compatible with other frameworks) passed as property value in bean definition
    • Incorrect property values passed in bean definition.
    • Location where the property file is placed is incorrect (generally should be under src/main/resources) , resulting in properties missing altogether.
    • Incorrect property file location (should be relative to classpath) passed as value to @PropertySource annotation
  3. Unable to create Singleton object
    No solution
Error patternsClassesMethodsExceptions
DescriptionException TypeEntry MethodWeb pages

Cannot resolve reference to bean/object passed as property in bean definition

org.springframework.beans.factory.BeanCreationException
1 frames hidden
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
327Web pages
1Solution
BeanCreationExceptionBeanDefinitionValueResolver.resolveValueIfNecessary()327

Missing or incorrect property values set in bean definition

org.springframework.beans.factory.BeanCreationException
2 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
322Web pages
1Solution
BeanCreationExceptionAbstractAutowireCapableBeanFactory.doCreateBean()322

Unable to create Singleton object

org.springframework.beans.factory.BeanCreationException
4 frames hidden
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
313Web pages
BeanCreationExceptionDefaultSingletonBeanRegistry.getSingleton()313

Application Context unable to instantiate bean

org.springframework.beans.factory.BeanCreationException
3 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
190Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.populateBean()190

Missing or incorrect dependencies in build file(maven/gradle/ant)

org.springframework.beans.factory.UnsatisfiedDependencyException
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray
178Web pages
UnsatisfiedDependencyExceptionConstructorResolver.createArgumentArray()178

Missing jar file in deployment server library resulting in ClassNotFoundException

java.lang.ClassNotFoundException
3 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass
135Web pages
1Solution
ClassNotFoundExceptionAbstractBeanDefinition.resolveBeanClass()135

Incompatible library version added as dependency causing IllegalStateException

java.lang.IllegalStateException
4 frames hidden
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton
128Web pages
1Solution
IllegalStateExceptionDefaultSingletonBeanRegistry.destroySingleton()128

Incorrectly configured bean passed as factory-method in bean definition

org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod
126Web pages
BeanCreationExceptionConstructorResolver.instantiateUsingFactoryMethod()126

Missing or incorrect Stereotype annotation

org.springframework.beans.factory.NoSuchBeanDefinitionException
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean
124Web pages
NoSuchBeanDefinitionExceptionDefaultListableBeanFactory.getBean()124

Unable to instantiate object due to corrupt autowired constructor arguments

org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor
104Web pages
BeanCreationExceptionConstructorResolver.autowireConstructor()104

Missing or incompatible dependency declaration

org.springframework.beans.factory.CannotLoadBeanClassException
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass
104Web pages
1Solution
CannotLoadBeanClassExceptionAbstractBeanFactory.resolveBeanClass()104

Missing implementation of autowired interface

org.springframework.beans.factory.NoSuchBeanDefinitionException
4 frames hidden
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray
102Web pages
NoSuchBeanDefinitionExceptionConstructorResolver.createArgumentArray()102

Unable to satisfy dependency while autowiring constructor arguments

org.springframework.beans.factory.UnsatisfiedDependencyException
3 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance
100Web pages
UnsatisfiedDependencyExceptionAbstractAutowireCapableBeanFactory.createBeanInstance()100

Referenced bean is not defined in bean definitions xml file

org.springframework.beans.factory.NoSuchBeanDefinitionException
4 frames hidden
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
99Web pages
NoSuchBeanDefinitionExceptionBeanDefinitionValueResolver.resolveReference()99

AbstractAutowireCapableBeanFactory.applyPropertyValues() has thrown a BeanCreationException

org.springframework.beans.NotWritablePropertyException
5 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
92Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.applyPropertyValues()92

AbstractBeanFactory.getBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
9 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
89Web pages
BeanCreationExceptionAbstractBeanFactory.getBean()89

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
6 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
88Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()88

ConstructorResolver.createArgumentArray() has thrown an UnsatisfiedDependencyException

org.springframework.beans.factory.NoSuchBeanDefinitionException
5 frames hidden
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray
87Web pages
UnsatisfiedDependencyExceptionConstructorResolver.createArgumentArray()87

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
3 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
87Web pages
XmlBeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()87

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
6 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
87Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()87

Missing or incorrectly named bean passed as property reference

org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean
85Web pages
1Solution
BeanCreationExceptionBeanDefinitionValueResolver.resolveInnerBean()85

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
3 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
84Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()84

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
4 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
82Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.createBean()82

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
4 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
82Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.createBean()82

AbstractAutowireCapableBeanFactory.doCreateBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
3 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
81Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.doCreateBean()81

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
4 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
80Web pages
XmlBeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()80

BeanDefinitionValueResolver.resolveValueIfNecessary() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
1 frames hidden
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
80Web pages
BeanCreationExceptionBeanDefinitionValueResolver.resolveValueIfNecessary()80

Bean creation is not allowed in destroy method

org.springframework.beans.factory.BeanCreationNotAllowedException
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
76Web pages
1Solution
BeanCreationNotAllowedExceptionDefaultSingletonBeanRegistry.getSingleton()76

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
4 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
75Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()75

Incompatible version or missing library containing class passed as property reference

org.springframework.beans.MethodInvocationException
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
72Web pages
MethodInvocationExceptionAbstractAutowireCapableBeanFactory.applyPropertyValues()72

BeanDefinitionValueResolver.resolveReference() has thrown a BeanCreationException

org.springframework.beans.factory.NoSuchBeanDefinitionException
5 frames hidden
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
72Web pages
BeanCreationExceptionBeanDefinitionValueResolver.resolveReference()72

AbstractBeanFactory.doGetBean() has thrown a BeanCreationNotAllowedException

org.springframework.beans.factory.BeanCreationNotAllowedException
1 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
71Web pages
BeanCreationNotAllowedExceptionAbstractBeanFactory.doGetBean()71

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a XmlBeanDefinitionStoreException

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException
5 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
70Web pages
XmlBeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()70

DefaultListableBeanFactory.getBean() has thrown a NoSuchBeanDefinitionException

org.springframework.beans.factory.NoSuchBeanDefinitionException
1 frames hidden
org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean
69Web pages
NoSuchBeanDefinitionExceptionDefaultListableBeanFactory.getBean()69

AbstractAutowireCapableBeanFactory.populateBean() has thrown a MethodInvocationException

org.springframework.beans.MethodInvocationException
1 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
69Web pages
MethodInvocationExceptionAbstractAutowireCapableBeanFactory.populateBean()69

Trying to create bean in destroy method

org.springframework.beans.factory.BeanCreationNotAllowedException
2 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
68Web pages
BeanCreationNotAllowedExceptionAbstractBeanFactory.getBean()68

AbstractAutowireCapableBeanFactory.doCreateBean() has thrown a MethodInvocationException

org.springframework.beans.MethodInvocationException
2 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
67Web pages
MethodInvocationExceptionAbstractAutowireCapableBeanFactory.doCreateBean()67

AbstractBeanFactory$1.getObject() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
5 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject
67Web pages
BeanCreationExceptionAbstractBeanFactory$1.getObject()67

AbstractBeanFactory$1.getObject() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
5 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject
65Web pages
BeanCreationExceptionAbstractBeanFactory$1.getObject()65

Unable to satisfy dependency while setting bean properties

org.springframework.beans.factory.NoSuchBeanDefinitionException
7 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
64Web pages
UnsatisfiedDependencyExceptionAbstractAutowireCapableBeanFactory.populateBean()64

SimpleInstantiationStrategy.instantiate() has thrown a NoSuchMethodException

java.lang.NoSuchMethodException
2 frames hidden
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate
64Web pages
NoSuchMethodExceptionSimpleInstantiationStrategy.instantiate()64

AbstractAutowireCapableBeanFactory.createBean() has thrown an UnsatisfiedDependencyException

org.springframework.beans.factory.UnsatisfiedDependencyException
5 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
63Web pages
UnsatisfiedDependencyExceptionAbstractAutowireCapableBeanFactory.createBean()63

DefaultSingletonBeanRegistry.getSingleton() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
6 frames hidden
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
63Web pages
BeanCreationExceptionDefaultSingletonBeanRegistry.getSingleton()63

Unable to instantiate bean due to missing or incompatible dependency

org.springframework.beans.factory.BeanCreationException
3 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
63Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.createBean()63

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
4 frames hidden
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
61Web pages
BeanCreationExceptionAbstractAutowireCapableBeanFactory.createBean()61

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

org.springframework.beans.factory.BeanDefinitionStoreException
5 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
61Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()61

AbstractBeanFactory.getBean() has thrown a BeanCreationException

org.springframework.beans.factory.BeanCreationException
8 frames hidden
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
61Web pages
BeanCreationExceptionAbstractBeanFactory.getBean()61

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

java.io.FileNotFoundException
7 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
60Web pages
BeanDefinitionStoreExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()60

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionParsingException

org.springframework.beans.factory.parsing.BeanDefinitionParsingException
14 frames hidden
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
58Web pages
BeanDefinitionParsingExceptionAbstractBeanDefinitionReader.loadBeanDefinitions()58

SimpleInstantiationStrategy.instantiate() has thrown a BeanInstantiationException

java.lang.NoSuchMethodException
3 frames hidden
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate
58Web pages
BeanInstantiationExceptionSimpleInstantiationStrategy.instantiate()58
Nothing to list here.
Nothing to list here.
Nothing to list here.