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>

Hibernate JIRA | Martin Šimka | 3 years ago
  1. 0

    Error message: {quote} 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> {quote} Stacktrace: {noformat} 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) {noformat} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap5-hibernate-core-test-matrix-hpux/BITS=-d64,database=postgresql91,jdbc=jdbc4,jdk=jdk17_hpux,label=hpux11v3/lastCompletedBuild/testReport/org.hibernate.test.exception/SQLExceptionConversionTest/testIntegrityViolation/ it doesn't happen with jdk16

    Hibernate JIRA | 3 years ago | Martin Šimka
    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>
  2. 0

    Error message: {quote} 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> {quote} Stacktrace: {noformat} 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) {noformat} https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/eap5-hibernate-core-test-matrix-hpux/BITS=-d64,database=postgresql91,jdbc=jdbc4,jdk=jdk17_hpux,label=hpux11v3/lastCompletedBuild/testReport/org.hibernate.test.exception/SQLExceptionConversionTest/testIntegrityViolation/ it doesn't happen with jdk16

    Hibernate JIRA | 3 years ago | Martin Šimka
    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>
  3. 0

    GitHub comment 761#184457880

    GitHub | 10 months ago | ifoche
    junit.framework.AssertionFailedError: expected:<class org.eyeseetea.malariacare.LoginActivity> but was:<class org.eyeseetea.malariacare.ProgressActivity>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 761#184461940

    GitHub | 10 months ago | idelcano
    junit.framework.AssertionFailedError: expected:<class org.eyeseetea.malariacare.LoginActivity> but was:<class org.eyeseetea.malariacare.ProgressActivity>
  6. 0

    Re: [VOTE] Release Apache Tomcat 9.0.0.M3

    tomcat-dev | 10 months ago | Rainer Jung
    junit.framework.AssertionFailedError: expected:<class java.io.IOException> but was:<class java.nio.channels.ClosedChannelException>

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.hibernate.test
      SQLExceptionConversionTest.testIntegrityViolation
      1. org.hibernate.test.exception.SQLExceptionConversionTest.testIntegrityViolation(SQLExceptionConversionTest.java:65)
      1 frame
    3. org.hibernate.junit
      FunctionalTestClassTestSuite.run
      1. org.hibernate.junit.functional.FunctionalTestCase.runTest(FunctionalTestCase.java:124)
      2. org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:64)
      3. org.hibernate.junit.functional.FunctionalTestClassTestSuite.runTest(FunctionalTestClassTestSuite.java:115)
      4. org.hibernate.junit.functional.FunctionalTestClassTestSuite.run(FunctionalTestClassTestSuite.java:84)
      4 frames