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

alfresco.com | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Deploying Alfresco RC1 into LifeRay 3.6.1 | Alfresco Forums

    alfresco.com | 9 months ago
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
  2. 0

    Based on this message "Bean definition does not carry a resolved bean class" I couldn't figure out until after some time that I forgot to specify a class for the bean definition. Instantiation of bean failed; nested exception is java.lang.IllegalStateException: Bean definition does not carry a resolved bean class at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:207) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:268) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:950) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:740) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:417) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:140) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

    Spring JIRA | 1 decade ago | Steven Devijver
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
  3. 0

    Based on this message "Bean definition does not carry a resolved bean class" I couldn't figure out until after some time that I forgot to specify a class for the bean definition. Instantiation of bean failed; nested exception is java.lang.IllegalStateException: Bean definition does not carry a resolved bean class at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:207) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:111) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:268) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:950) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:740) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:417) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:140) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

    Spring JIRA | 1 decade ago | Steven Devijver
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring dataSource and scope

    Stack Overflow | 4 years ago | Ilkar
    java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
  6. 0

    Error

    GitHub | 2 years ago | degloba
    java.lang.IllegalStateException: Cannot convert value of type [com.degloba.persistence.datanucleus.BaseAggregateRootJpaRepository] to required type [com.degloba.domain.IBaseAggregateRootJpaRepository] for property 'repository': no matching editors or conversion strategy found
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
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractBeanDefinition.getBeanClass(AbstractBeanDefinition.java:205)
    2. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:49)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:453)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:333)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:275)
    7 frames
  3. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
    1 frame
  4. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)
    2. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
    3. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
    4. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
    4 frames
  5. Glassfish Core
    StandardHost.addChild
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3669)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4104)
    3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
    4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
    5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
    5 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  7. Commons Modeler
    BaseModelMBean.invoke
    1. org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    1 frame
  8. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
    2. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    2 frames
  9. Glassfish Core
    StandardContext.init
    1. org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  11. Commons Modeler
    BaseModelMBean.invoke
    1. org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
    1 frame
  12. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
    2. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    2 frames
  13. org.jboss.web
    TomcatDeployer.performDeploy
    1. org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:274)
    2. org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:91)
    2 frames
  14. JBoss Application Server Server
    WebModule.startService
    1. org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
    2. org.jboss.web.WebModule.startModule(WebModule.java:68)
    3. org.jboss.web.WebModule.startService(WebModule.java:46)
    3 frames
  15. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
    2 frames
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  17. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  18. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    4 frames
  19. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
    1 frame
  20. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  21. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:418)
    1 frame
  22. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  23. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  24. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    5 frames
  25. Unknown
    $Proxy28.start
    1. $Proxy28.start(Unknown Source)
    1 frame
  26. JBoss Application Server Server
    AbstractWebContainer.start
    1. org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:394)
    1 frame
  27. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
    2. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
    3 frames
  28. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  29. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  30. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    1 frame
  31. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
    1 frame
  32. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    1 frame
  33. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
    1 frame
  34. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    4 frames
  35. Unknown
    $Proxy8.deploy
    1. $Proxy8.deploy(Unknown Source)
    1 frame
  36. org.jboss.deployment
    AbstractDeploymentScanner.startService
    1. org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325)
    2. org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501)
    3. org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
    4. org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
    4 frames
  37. JBoss Application Server System
    ServiceMBeanSupport.jbossInternalLifecycle
    1. org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
    2. org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
    2 frames
  38. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  39. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  40. JBoss Application Server J2SE
    MBeanServerImpl.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    4 frames
  41. JBoss Application Server System
    ServiceController$ServiceProxy.invoke
    1. org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897)
    1 frame
  42. Unknown
    $Proxy0.start
    1. $Proxy0.start(Unknown Source)
    1 frame
  43. JBoss Application Server System
    ServiceController.start
    1. org.jboss.system.ServiceController.start(ServiceController.java:418)
    1 frame
  44. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  45. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  46. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2. org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    5. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    5 frames
  47. Unknown
    $Proxy4.start
    1. $Proxy4.start(Unknown Source)
    1 frame
  48. JBoss Application Server System JMX
    MainDeployer.deploy
    1. org.jboss.deployment.SARDeployer.start(SARDeployer.java:273)
    2. org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
    3. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
    4. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
    5. org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
    5 frames
  49. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:585)
    4 frames
  50. org.jboss.mx
    ReflectedDispatcher.invoke
    1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    1 frame
  51. JBoss Application Server J2SE
    Invocation.dispatch
    1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    1 frame
  52. org.jboss.mx
    AbstractInterceptor.invoke
    1. org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121)
    1 frame
  53. JBoss Application Server J2SE
    Invocation.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    1 frame
  54. org.jboss.mx
    ModelMBeanOperationInterceptor.invoke
    1. org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
    1 frame
  55. JBoss Application Server J2SE
    MBeanProxyExt.invoke
    1. org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    2. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    3. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    4. org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
    4 frames
  56. Unknown
    $Proxy5.deploy
    1. $Proxy5.deploy(Unknown Source)
    1 frame
  57. JBoss Application Server System JMX
    ServerImpl.start
    1. org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:434)
    2. org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
    2 frames
  58. JBoss Application Server Server
    Main$1.run
    1. org.jboss.Main.boot(Main.java:195)
    2. org.jboss.Main$1.run(Main.java:463)
    2 frames
  59. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:595)
    1 frame