org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MyApplicationJobController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.myapp.xx.yy.models.MyApplicationJobDAO com.myapp.xx.yy.web.MyApplicationJobController.MyApplicationJobDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MyApplicationJobDAO': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not an managed type: class com.myapp.aa.bb.myapptest.commons.dto.MyApplicationJobDTO

Stack Overflow | tiggles | 3 months ago
  1. 0

    Spring boot with external jar 'Not a Managed Type'

    Stack Overflow | 3 months ago | tiggles
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MyApplicationJobController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.myapp.xx.yy.models.MyApplicationJobDAO com.myapp.xx.yy.web.MyApplicationJobController.MyApplicationJobDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'MyApplicationJobDAO': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not an managed type: class com.myapp.aa.bb.myapptest.commons.dto.MyApplicationJobDTO
  2. 0

    Unable to autowire custom UserDetails

    Stack Overflow | 11 months ago | CodeMed
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uiApplication.UserRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not an managed type: interface org.springframework.security.core.userdetails.UserDetails
  3. 0

    Re-factor guice injected spring data classes between sbt sub-projects in playframework 2.4.6

    Stack Overflow | 10 months ago | ITL
    play.api.PlayException: Cannot load module[Module [org.springframework.guice.module.SpringModule] cannot be instantiated.]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPARepository(Spring Data JPA) + Rest / Java / Sql.ru

    sql.ru | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demandRestController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ru.se.icred.repository.DemandRepository ru.se.icred.mvc.DemandRestController.demandRepository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demandRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not an managed type: class ru.se.icred.domain.Demand
  6. 0

    Spring data Jpa 多数据源问题 Not an managed type: class - 开源中国社区

    oschina.net | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountAreaDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Not an managed type: class com.ax100.pms2.acc.bean.AccountArea
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.IllegalArgumentException

    Not an managed type: class com.myapp.aa.bb.myapptest.commons.dto.MyApplicationJobDTO

    at org.hibernate.jpa.internal.metamodel.MetamodelImpl.managedType()
  2. org.hibernate.jpa
    MetamodelImpl.managedType
    1. org.hibernate.jpa.internal.metamodel.MetamodelImpl.managedType(MetamodelImpl.java:219)
    1 frame
  3. Spring Data JPA
    JpaRepositoryFactory.getTargetRepository
    1. org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation.<init>(JpaMetamodelEntityInformation.java:68)
    2. org.springframework.data.jpa.repository.support.JpaEntityInformationSupport.getMetadata(JpaEntityInformationSupport.java:65)
    3. org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityInformation(JpaRepositoryFactory.java:149)
    4. org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:88)
    5. org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRepository(JpaRepositoryFactory.java:68)
    5 frames
  4. Spring Data Core
    RepositoryFactoryBeanSupport.afterPropertiesSet
    1. org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:158)
    2. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:224)
    3. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:210)
    3 frames
  5. Spring Data JPA
    JpaRepositoryFactoryBean.afterPropertiesSet
    1. org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:92)
    1 frame
  6. Spring Beans
    AbstractAutowireCapableBeanFactory.initializeBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1613)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1550)
    2 frames