eazybytes/spring

could not commit jpa transaction.

iamankit555 opened this issue · 6 comments

Hi madan.. I am getting error while updating the profile details. error is triggering when jpa is trying to update the address details.
Error message : could not commit jpa transaction.
Can you please help me why it is giving this error. I have been debugging for the last one month but could not able to solve this error.

I tried to run your code that one is also giving same error.

image

Hi,

I would request to compare your code with mine and correct any mismatches. If all looks good from your side, but still facing the error, please share your exact project with me via GitHub repo. So that I can check the same.

Thanks for your response.. I have verified all the code it is completely matching.

I ran your code also that is also giving same error.

Let me provide you my code repo.

Here is my github repo.. thanks for your support.
udemy video no : 177
Error hitting while updaing the profile details
https://github.com/iamankit555/firstSpringBootProject

Hi..Madan sir.. please help here.

I checked your code and since it is missing the below property inside application.properties, you are facing the error. Please add the same and issue should get resolved. I discussed about this inside the lecture 173. Quick Tip - To Disable the javax validations in Spring Data JPA

spring.jpa.properties.javax.persistence.validation.mode=none

Next time for any question, please post inside Udemy Q&A to get fast reponse.

Thanks sir.. Now it is working fine.. Sure next time will post the query inside udemy Q&A