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
Spring Data JPA pollutes child contexts with SharedEntityManagerCreator [DATAJPA-1797] #2091
Comments
Jens Schauder commented This seems to be a Spring Framework issue. Could you please create an issue there: https://github.com/spring-projects/spring-framework/issues They are already looking into it, but creating an issue there makes sure you get notified when the issue gets fixed |
Ihor Herasymenko commented Jens Schauder done! |
Jens Schauder commented Thanks. |
Ihor Herasymenko commented Jens Schauder the Spring Core team advised that the issue is in turn in a Spring Data issue. Please see the explanation provided by Sam Brannen here |
Oliver Drotbohm commented To quote the relevant parts from the original ticket, Sam suggested the following:
I guess we could tweak Happy to pair with you on this one |
@schauder I added this to my pom file:
but the tests still fail saying I have duplicate entity managers:
|
There is an article about this https://spring.io/blog/2016/04/13/overriding-dependency-versions-with-spring-boot Putting the dependency definition into |
Thank you |
Ihor Herasymenko opened DATAJPA-1797 and commented
Reproducible with the latest Spring Data (Neumann-SR4) and Spring Framework 5.2.9.
Not reproducible with the latest Spring Data (Neumann-SR4) and Spring Framework 5.2.5.
Looks like a regression that was introduced by fixing spring-projects/spring-framework#24852
The reproducer is on my Github.
Run all tests by executing gradlew test — one test will fail.
Run gradlew test --tests com.example.Config2Test and then gradlew test --tests com.example.ConfigTest — both tests will succeed
Affects: 2.3.4 (Neumann SR4)
Reference URL: https://github.com/iherasymenko/spring-data-jpa-child-context-pollution-reproducer
The text was updated successfully, but these errors were encountered: