Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchMethodException: JpaRepositoryFactoryBean.<init>() after upgrading from 1.9.2 to 1.11.23 [DATAJPA-1610] #1916

Closed
spring-projects-issues opened this issue Oct 6, 2019 · 1 comment
Assignees
Labels
in: core Issues in core support status: declined A suggestion or change that we don't feel we should currently apply type: bug A general bug

Comments

@spring-projects-issues
Copy link

gaurav9822 opened DATAJPA-1610 and commented

After upgrading spring-data-jpa from 1.9.2 to 1.11.23, the my project tests fail with the following stacktrace.

 

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personRepository': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.<init>()
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.<init>()
Caused by: java.lang.NoSuchMethodException: org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.<init>()

Source code for reference:-

https://github.com/iluwatar/java-design-patterns/blob/master/repository/src/test/java/com/iluwatar/repository/RepositoryTest.java

Please assist


Affects: 1.11.23 (Ingalls SR23)

@spring-projects-issues
Copy link
Author

Jens Schauder commented

Judging from the discussion on Gitter it seems this is

a) not a bug but a misconfiguration of dependencies
b) solved by now

@spring-projects-issues spring-projects-issues added type: bug A general bug status: declined A suggestion or change that we don't feel we should currently apply in: core Issues in core support labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support status: declined A suggestion or change that we don't feel we should currently apply type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants