SQLExceptionConversionTest.testIntegrityViolation fails on 3.3.2, JDK7, and Postgres 9.1

Description

Error message:

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>

Stacktrace:

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

Environment

HP-UX

jdk17_hpux

java version "1.7.0.03"
Java(TM) SE Runtime Environment (build 1.7.0.03-jinteg_2012_10_05_02_40-b00)
Java HotSpot(TM) Server VM (build 23.2-b09-jre1.7.0.03-rc1, mixed mode)

postgresql83, postgresql84, postgresql91

Activity

Show:
Brett Meyer
June 28, 2013, 3:57 PM
Edited

This is not specific to HP-UX. It's intermittently failing on ORM 3.3.2.GA-CP05 (EAP 5.2.0) w/ PostgreSQL 9.1 with a normal Sun JDK 7. It's most likely related to #2 described in HHH-2662.

Brett Meyer
June 28, 2013, 3:58 PM
Brett Meyer
June 28, 2013, 4:05 PM

Rejecting this one. 4.1, 4.2, and master already have the issue mentioned in corrected: SQLExceptionConversionTest#testBadGrammar was not using explicit transaction handling, causing #testIntegrityViolation to eventually fail.

Hibernate 3.3.2.GA-CP05 does not have this fix. Correcting solely through JBPAPP-10779.

Assignee

Brett Meyer

Reporter

Martin Simka

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure