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.resolveValueIfNecessary327

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.doCreateBean322

Unable to create Singleton object

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

Application Context unable to instantiate bean

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

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.createArgumentArray178

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.resolveBeanClass135

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.destroySingleton128

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.instantiateUsingFactoryMethod126

Missing or incorrect Stereotype annotation

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

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.autowireConstructor104

Missing or incompatible dependency declaration

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

Missing implementation of autowired interface

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

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.createBeanInstance100

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.resolveReference99

AbstractAutowireCapableBeanFactory.applyPropertyValues() has thrown a BeanCreationException

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

AbstractBeanFactory.getBean() has thrown a BeanCreationException

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

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

ConstructorResolver.createArgumentArray() has thrown an UnsatisfiedDependencyException

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

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.loadBeanDefinitions87

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

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.resolveInnerBean85

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

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

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

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

AbstractAutowireCapableBeanFactory.doCreateBean() has thrown a BeanCreationException

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

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.loadBeanDefinitions80

BeanDefinitionValueResolver.resolveValueIfNecessary() has thrown a BeanCreationException

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

Bean creation is not allowed in destroy method

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

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

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.applyPropertyValues72

BeanDefinitionValueResolver.resolveReference() has thrown a BeanCreationException

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

AbstractBeanFactory.doGetBean() has thrown a BeanCreationNotAllowedException

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

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.loadBeanDefinitions70

DefaultListableBeanFactory.getBean() has thrown a NoSuchBeanDefinitionException

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

AbstractAutowireCapableBeanFactory.populateBean() has thrown a MethodInvocationException

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

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.getBean68

AbstractAutowireCapableBeanFactory.doCreateBean() has thrown a MethodInvocationException

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

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.getObject67

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.getObject65

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.populateBean64

SimpleInstantiationStrategy.instantiate() has thrown a NoSuchMethodException

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

AbstractAutowireCapableBeanFactory.createBean() has thrown an UnsatisfiedDependencyException

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

DefaultSingletonBeanRegistry.getSingleton() has thrown a BeanCreationException

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

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.createBean63

AbstractAutowireCapableBeanFactory.createBean() has thrown a BeanCreationException

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

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

AbstractBeanFactory.getBean() has thrown a BeanCreationException

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

AbstractBeanDefinitionReader.loadBeanDefinitions() has thrown a BeanDefinitionStoreException

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

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.loadBeanDefinitions58

SimpleInstantiationStrategy.instantiate() has thrown a BeanInstantiationException

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