java.lang.IllegalStateException: Bean definition does not carry a resolved bean class

Spring JIRA | Magnus Heino | 1 decade ago
  1. 0

    Deploying Alfresco RC1 into LifeRay 3.6.1 | Alfresco Forums

    alfresco.com | 3 months ago
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    We recently upgraded from 1.1.5 to 1.2.5 and found that an abstract bean definition, which was working, now throws an exception: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'abstractInboxCommand' defined in class path resource [com/webify/jigsaw/inbox/command/inbox-commands.beans.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: Bean definition does not carry a resolved bean class java.lang.IllegalStateException: Bean definition does not carry a resolved bean class at org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass(AbstractBeanDefinition.java:205) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:81) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66) at org.springframework.test.AbstractSpringContextTests.loadContextLocations(AbstractSpringContextTests.java:121) at org.springframework.test.AbstractDependencyInjectionSpringContextTests.loadContextLocations(AbstractDependencyInjectionSpringContextTests.java:161) at org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:101) at org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:129) The relevant beans are listed like this: <bean id="abstractInboxCommand"> <property name="inboxMessageDao"> <ref bean="inboxMessageDao"/> </property> <property name="mappingSystem"> <ref bean="inboxMappingSystem"/> </property> </bean> <bean id="createMessagesCommand" parent="abstractInboxCommand" class="com.webify.jigsaw.inbox.command.CreateMessagesCommand"/> <bean id="deleteMessagesCommand" parent="abstractInboxCommand" class="com.webify.jigsaw.inbox.command.DeleteMessagesCommand"/> <bean id="getMessagesCommand" parent="abstractInboxCommand" class="com.webify.jigsaw.inbox.command.GetMessagesCommand"/> I was under the impression that: 1) the 1.2 bean context was fully backwards compatible with 1.1 2) abstract beans can be defined simply by not declaring a class attribute Let me know if I can provide any other information.

    Spring JIRA | 1 decade ago | mike perham
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class

    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. java.lang.IllegalStateException

      Bean definition does not carry a resolved bean class

      at org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass()
    2. Spring Beans
      RequiredBeanFactoryPostProcessor.postProcessBeanFactory
      1. org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass(AbstractBeanDefinition.java:266)
      2. org.springframework.beans.factory.annotation.RequiredBeanFactoryPostProcessor.processBeanDefinition(RequiredBeanFactoryPostProcessor.java:103)
      3. org.springframework.beans.factory.annotation.RequiredBeanFactoryPostProcessor.postProcessBeanFactory(RequiredBeanFactoryPostProcessor.java:81)
      3 frames