org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IViewMyTableRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Could not create query metamodel for method public abstract List a.b.c.interfaces.IViewMyTableRepository.findByDomain(java.lang.String)!

  1. 0

    Problems defining a DTO and a Repository for a View with JPA

    Stack Overflow | 4 months ago | Marc Gil Sendra
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'IViewMyTableRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Could not create query metamodel for method public abstract List a.b.c.interfaces.IViewMyTableRepository.findByDomain(java.lang.String)!
  2. 0

    JPA: dealing with Views

    Stack Overflow | 5 months ago | Marc Gil Sendra
    java.lang.IllegalArgumentException: Not an entity: class es.prodevelop.pui.common.jpa.model.views.dto.VLanguage
  3. 0

    Customer page run issue

    GitHub | 2 years ago | FNico
    org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.thomasmore.oo3.course.resortui.controller.CustomerController.init() on org.thomasmore.oo3.course.resortui.controller.CustomerController@26000b3b
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPA Entity not registered with EntityManager

    Stack Overflow | 2 years ago | VeXaL Santos
    java.lang.IllegalArgumentException: Not an entity: class org.gradle.security.persistence.jpa.entities.impl.SubjectImpl
  6. 0

    JPA Entity Class Instances

    Stack Overflow | 2 years ago | Raoul
    java.lang.IllegalArgumentException: Not an entity: class <package>.entity.Country

    4 unregistered visitors
    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 entity: class a.b.c.views.dto.ViewMyTable

      at org.hibernate.jpa.internal.metamodel.MetamodelImpl.entity()
    2. org.hibernate.jpa
      CriteriaQueryImpl.from
      1. org.hibernate.jpa.internal.metamodel.MetamodelImpl.entity(MetamodelImpl.java:194)
      2. org.hibernate.jpa.criteria.QueryStructure.from(QueryStructure.java:124)
      3. org.hibernate.jpa.criteria.CriteriaQueryImpl.from(CriteriaQueryImpl.java:156)
      3 frames
    3. Spring Data JPA
      JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery
      1. org.springframework.data.jpa.repository.query.JpaQueryCreator.<init>(JpaQueryCreator.java:74)
      2. org.springframework.data.jpa.repository.query.JpaCountQueryCreator.<init>(JpaCountQueryCreator.java:45)
      3. org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.createCreator(PartTreeJpaQuery.java:259)
      4. org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.<init>(PartTreeJpaQuery.java:116)
      5. org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.<init>(PartTreeJpaQuery.java:241)
      6. org.springframework.data.jpa.repository.query.PartTreeJpaQuery.<init>(PartTreeJpaQuery.java:68)
      7. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:103)
      8. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106)
      9. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:214)
      10. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:77)
      10 frames
    4. Spring Data Core
      RepositoryFactoryBeanSupport.afterPropertiesSet
      1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.<init>(RepositoryFactorySupport.java:435)
      2. org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:220)
      3. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:266)
      4. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:252)
      4 frames
    5. Spring Data JPA
      JpaRepositoryFactoryBean.afterPropertiesSet
      1. org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:92)
      1 frame
    6. Spring Beans
      AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      6. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
      7. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      8. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
      9. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      10. org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:187)
      11. org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1208)
      12. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1048)
      13. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1018)
      14. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:570)
      14 frames