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

orm.xml named queries transaction throw RollbackException [SPR-11336] #15960

Closed
spring-projects-issues opened this issue Jan 20, 2014 · 5 comments
Closed
Assignees
Labels

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jan 20, 2014

grf110 opened SPR-11336 and commented

  1. Spring data jpa(1.4.3) entityManagerFactory config mappingResources value="META-INF/orm.xml"
  2. Repository add query method and add jpql to orm.xml
  3. Call repository query method in service(@Transactional)
  4. Throw RollbackException(org.springframework.orm.jpa.JpaTransactionManager#doCommit #526)
  • Use @Query(' .. jpql ..') is ok!

Affects: 3.2.6

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 21, 2014

Thomas Darimont commented

Which JPA implementation do you use?

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 21, 2014

Juergen Hoeller commented

Not sure what this could be caused by - and not sure whether it's in the core JPA support or in Spring Data JPA either...

Juergen

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 22, 2014

grf110 commented

hibernate-jpa-2.1-api-1.0.0.Final

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jan 23, 2014

grf110 commented

@Thomas Darimont hibernate-jpa-2.1-api-1.0.0.Final, hibernate 4.3.0.Fainl

Loading

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 16, 2014

Juergen Hoeller commented

I'm afraid we need further debugging from your side there... or ideally an isolated test project that reproduces the issue.

The key question is where the rollback-only status is being caused. These might be very specific circumstances in your scenario.

Juergen

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants