Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Martin Šimka, 1 year ago
Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>
via Hibernate JIRA by Martin Šimka, 2 years ago
Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>
junit.framework.AssertionFailedError: Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>	at org.hibernate.test.exception.SQLExceptionConversionTest.testIntegrityViolation(SQLExceptionConversionTest.java:65)	at org.hibernate.junit.functional.FunctionalTestCase.runTest(FunctionalTestCase.java:124)	at org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:64)	at org.hibernate.junit.functional.FunctionalTestClassTestSuite.runTest(FunctionalTestClassTestSuite.java:115)	at org.hibernate.junit.functional.FunctionalTestClassTestSuite.run(FunctionalTestClassTestSuite.java:84)