RepositoryFactoryBeanSupport.jaorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'auctionQueryController' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\controller\AuctionQueryController.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [pl.bpo.archiwumallegro.services.AuctionService]: : Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.AuctionIndexRepository]: : Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.Auctiva:237)

Stack Overflow | rad11 | 4 months ago
  1. 0

    Spring boot creating beans error

    Stack Overflow | 4 months ago | rad11
    RepositoryFactoryBeanSupport.jaorg.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'auctionQueryController' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\controller\AuctionQueryController.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [pl.bpo.archiwumallegro.services.AuctionService]: : Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.AuctionIndexRepository]: : Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.Auctiva:237)

    Root Cause Analysis

    1. RepositoryFactoryBeanSupport.jaorg.springframework.beans.factory.UnsatisfiedDependencyException

      Error creating bean with name 'auctionQueryController' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\controller\AuctionQueryController.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [pl.bpo.archiwumallegro.services.AuctionService]: : Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.AuctionIndexRepository]: : Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'auctionIndexRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter! Offending method public abstract org.springframework.data.elasticsearch.core.FacetedPage pl.bpo.archiwumallegro.repositories.AuctionIndexRepository.search(org.springframework.data.elasticsearch.core.query.NativeSearchQueryBuilder); nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'auctionService' defined in file [C:\Users\AP_520\Desktop\paa_allek_query-layer\target\classes\pl\bpo\archiwumallegro\services\AuctionService.class]: Unsatisfied dependency expressed through constructor argument with index 1 of type [pl.bpo.archiwumallegro.repositories.Auctiva:237)

      at org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.afterPropertiesSet()
    2. Spring Data Elasticsearch
      ElasticsearchRepositoryFactoryBean.afterPropertiesSet
      1. org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.afterPropertiesSet(ElasticsearchRepositoryFactoryBean.java:55)
      1 frame
    3. Spring Beans
      AbstractAutowireCapableBeanFactory.initializeBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1633)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570)
      2 frames