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

Spring Data JPA custom query with countQuery breaks in dev mode #6214

Closed
geoand opened this issue Dec 16, 2019 · 0 comments · Fixed by #6216
Closed

Spring Data JPA custom query with countQuery breaks in dev mode #6214

geoand opened this issue Dec 16, 2019 · 0 comments · Fixed by #6216
Assignees
Labels
area/spring Issues relating to the Spring integration kind/bug Something isn't working
Milestone

Comments

@geoand
Copy link
Contributor

geoand commented Dec 16, 2019

Describe the bug
There is a classloader issue when using the spring-data-jpa integration test in dev mode.

Expected behavior
Dev-mode should behave the same as regular mode.

Actual behavior
java.lang.LinkageError: io/quarkus/hibernate/orm/panache/PanacheQuery
at io.quarkus.it.spring.data.jpa.MovieRepository_4263b43a08c2ca0cc9a7dd59c4e59bb4f9386bbdImpl.customFind(MovieRepository_4263b43a08c2ca0cc9a7dd59c4e59bb4f9386bbdImpl.zig:381)
at io.quarkus.it.spring.data.jpa.MovieRepository_4263b43a08c2ca0cc9a7dd59c4e59bb4f9386bbdImpl_ClientProxy.customFind(MovieRepository_4263b43a08c2ca0cc9a7dd59c4e59bb4f9386bbdImpl_ClientProxy.zig:430)

To Reproduce
Steps to reproduce the behavior:

  1. cd integration-tests/spring-data-jpa in Quarkus repo
  2. mvn clean quarkus:dev
  3. hit http://localhost:8080/movie/customFind/page/1/0

This only appears after the change in #5823 was made.

@geoand geoand added kind/bug Something isn't working area/spring Issues relating to the Spring integration labels Dec 16, 2019
@geoand geoand self-assigned this Dec 16, 2019
geoand added a commit to geoand/quarkus that referenced this issue Dec 16, 2019
gsmet added a commit that referenced this issue Dec 16, 2019
Move Spring Data JPA classes to panache to avoid dev-mode CL issue
@gsmet gsmet added this to the 1.1.0 milestone Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/spring Issues relating to the Spring integration kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants