org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'booksController': Unsatisfied dependency expressed through field 'bookService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'bookServiceImpl': Unsatisfied dependency expressed through field 'booksDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'booksDao': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property book found for type Books!

Stack Overflow | Shek | 1 week ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    Unable to create a custom method using findBy prefix in springJPA

    Stack Overflow | 4 months ago | kittu
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'topics': Unsatisfied dependency expressed through field 'topicService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'topicServiceImplementation': Unsatisfied dependency expressed through field 'topicRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'topicRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.PropertyReferenceException: No property topic found for type TopicBean!
  2. 0

    Decrypt Objects in Array fails to decrypt elements without `{cipher}`

    GitHub | 10 months ago | marcellodesales
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'githubWebhookController': Unsatisfied dependency expressed through field 'onboardService': Error creating bean with name 'onboardService': Invocation of init method failed; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'onboardService': Invocation of init method failed; nested exception is java.lang.NullPointerException
  3. 0
    samebug tip
    Spring expects that the EntityManagerFactory has to be called "entityManagerFactory". It uses convention over configuration to make it easier to use.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check Servers Launch Configuration in Eclipse. See the details below.
  6. 0

    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name...Unsatisfied dependency expressed through field

    Stack Overflow | 3 months ago | mlee_jordan
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'createPostController': Unsatisfied dependency expressed through field 'postService': Error creating bean with name 'postServiceJpaImpl': Unsatisfied dependency expressed through field 'postRepository': Error creating bean with name 'postRepository': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository(Lorg/springframework/data/repository/core/RepositoryInformation;)Ljava/lang/Object;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postRepository': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository(Lorg/springframework/data/repository/core/RepositoryInformation;)Ljava/lang/Object;; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postServiceJpaImpl': Unsatisfied dependency expressed through field 'postRepository': Error creating bean with name 'postRepository': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository(Lorg/springframework/data/repository/core/RepositoryInformation;)Ljava/lang/Object;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postRepository': Invocation of init method failed; nested exception is java.lang.AbstractMethodError: org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository(Lorg/springframework/data/repository/core/RepositoryInformation;)Ljava/lang/Object;
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. org.springframework.data.mapping.PropertyReferenceException

    No property book found for type Books!

    at org.springframework.data.mapping.PropertyPath.<init>()
  2. Spring Data Core
    PartTree.<init>
    1. org.springframework.data.mapping.PropertyPath.<init>(PropertyPath.java:77)[spring-data-commons-1.13.3.RELEASE.jar:na]
    2. org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:329)[spring-data-commons-1.13.3.RELEASE.jar:na]
    3. org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:309)[spring-data-commons-1.13.3.RELEASE.jar:na]
    4. org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:272)[spring-data-commons-1.13.3.RELEASE.jar:na]
    5. org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:243)[spring-data-commons-1.13.3.RELEASE.jar:na]
    6. org.springframework.data.repository.query.parser.Part.<init>(Part.java:76)[spring-data-commons-1.13.3.RELEASE.jar:na]
    7. org.springframework.data.repository.query.parser.PartTree$OrPart.<init>(PartTree.java:247)[spring-data-commons-1.13.3.RELEASE.jar:na]
    8. org.springframework.data.repository.query.parser.PartTree$Predicate.buildTree(PartTree.java:398)[spring-data-commons-1.13.3.RELEASE.jar:na]
    9. org.springframework.data.repository.query.parser.PartTree$Predicate.<init>(PartTree.java:378)[spring-data-commons-1.13.3.RELEASE.jar:na]
    10. org.springframework.data.repository.query.parser.PartTree.<init>(PartTree.java:89)[spring-data-commons-1.13.3.RELEASE.jar:na]
    10 frames
  3. Spring Data JPA
    JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery
    1. org.springframework.data.jpa.repository.query.PartTreeJpaQuery.<init>(PartTreeJpaQuery.java:64)[spring-data-jpa-1.11.3.RELEASE.jar:na]
    2. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:103)[spring-data-jpa-1.11.3.RELEASE.jar:na]
    3. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:214)[spring-data-jpa-1.11.3.RELEASE.jar:na]
    4. org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:77)[spring-data-jpa-1.11.3.RELEASE.jar:na]
    4 frames
  4. Spring Data Core
    RepositoryFactoryBeanSupport.afterPropertiesSet
    1. org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.<init>(RepositoryFactorySupport.java:436)[spring-data-commons-1.13.3.RELEASE.jar:na]
    2. org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:221)[spring-data-commons-1.13.3.RELEASE.jar:na]
    3. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.initAndReturn(RepositoryFactoryBeanSupport.java:277)[spring-data-commons-1.13.3.RELEASE.jar:na]
    4. org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:263)[spring-data-commons-1.13.3.RELEASE.jar:na]
    4 frames
  5. Spring Data JPA
    JpaRepositoryFactoryBean.afterPropertiesSet
    1. org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:101)[spring-data-jpa-1.11.3.RELEASE.jar:na]
    1 frame
  6. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    9. org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    10. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    11. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    12. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    13. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    14. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    15. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    16. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    17. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    18. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    19. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    20. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    21. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    22. org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    23. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    24. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    25. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    26. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    27. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    28. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    29. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    30. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    31. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    32. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    33. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    34. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    35. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)[spring-beans-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    35 frames
  7. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)[spring-context-4.3.8.RELEASE.jar:4.3.8.RELEASE]
    2 frames
  8. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    6 frames
  9. com.nerdbot.lms
    LibraryManagementSystemApplication.main
    1. com.nerdbot.lms.LibraryManagementSystemApplication.main(LibraryManagementSystemApplication.java:15)[classes/:na]
    1 frame