0

I deployed my Spring MVC app on Heroku...But the logs show me the error

Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: ERROR: current transaction is aborted, commands ignored until end of transaction block

I m not getting why this error is occuring as i m new to Postgres..Although my app is working smoothly with postgres locally but on Heroku it throws this errorenter image description here

This is my db configenter image description here

This is in my Procfile

web: java $JAVA_OPTS -jar target/dependency/webapp-runner.jar --port $PORT target/*.war

This line in the image

enter image description here

Nadym Baba
  • 51
  • 1
  • 2
  • 8
  • Can you show the complete stack trace? What line in your code does it point to? Can you show that code? – codefinger Jul 05 '17 at 15:18
  • Its pointing towards a line in my Dao class which persists User.I added the image – Nadym Baba Jul 05 '17 at 15:25
  • Take a look at this https://stackoverflow.com/questions/10399727/psqlexception-current-transaction-is-aborted-commands-ignored-until-end-of-tra – codefinger Jul 06 '17 at 13:42
  • And this: https://stackoverflow.com/questions/3672219/hibernate-error-current-transaction-is-aborted-commands-ignored-until-end-of-t – codefinger Jul 06 '17 at 13:43
  • Actually the problem is that tables are not created by hibernate and i am not getting why the tables are not generated – Nadym Baba Jul 07 '17 at 06:06

0 Answers0