Bug 900356 (JBPAPP6-971)

Summary: Bulk Envers Test failures on DB2 for processing error (ERRORCODE=-4225, SQLSTATE=24514)
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Madhumita Sadhukhan <msadhukh>
Component: HibernateAssignee: Strong Liu <stliu>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: gbadner, msadhukh, pslavice, zroubali
Target Milestone: ---   
Target Release: EAP 6.0.1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-971
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
DB2 Database
Last Closed: 2012-10-04 09:38:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 900296    

Description Madhumita Sadhukhan 2012-05-03 10:13:37 UTC
project_key: JBPAPP6

The stacktrace is as follows:

org.hibernate.exception.GenericJDBCException: [jcc][10429][12554][4.12.55] A processing error occurred on the server which resulted in an unrecoverable error.
Please set deferPrepares property to false and re-establish the connection.  If the problem still persists, please contact support. ERRORCODE=-4225, SQLSTATE=24514
	at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
	at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)

But as per log the original Error message should be:

11:26:21,025  WARN SqlExceptionHelper:143 - SQL Error: -401, SQLState: 42818
11:26:21,026 ERROR SqlExceptionHelper:144 - DB2 SQL Error: SQLCODE=-401, SQLSTATE=42818, SQLERRMC==, DRIVER=4.12.55



Query at error for example:

select componentt0_.id as id2953_0_, componentt0_.REV as REV2953_0_, sequenceid1_.REV as REV2954_1_, componentt0_.REVTYPE as REVTYPE2953_0_, componentt0_.str1 as str4_2953_0_, componentt0_.str2 as str5_2953_0_, componentt0_.comp1_MOD as comp6_2953_0_, sequenceid1_.REVTSTMP as REVTSTMP2954_1_ from CompTest_AUD componentt0_, REVINFO sequenceid1_ where componentt0_.id=? and componentt0_.comp1_MOD=? and componentt0_.REV=sequenceid1_.REV order by componentt0_.REV asc

Always this issue happens while trying to select/load a resultset from the DB (mostly from the XYZ_AUD table that was created by Envers)


Marking that the exception always occurs at StandardSQLExceptionConverter.java:54 not sure if the following is actual reason:
w.r.t http://publib.boulder.ibm.com/infocenter/wsdoc400/v6r0/index.jsp?topic=/com.ibm.websphere.iseries.doc/info/ae/ae/rtrb_db2probs.html
"To avoid receiving this exception, choose one of the following options:

    * Set the deferPrepares property to false in the data source configuration.
    * Do not use the DB2 universal JDBC type 4 driver if your table has any VARCHAR FOR BIT DATA or LONG VARCHAR FOR BIT DATA columns. Use the DB2 legacy CLI-based JDBC driver to persist the data. Refer to DB2 V8.1 readme for more details."---We can't change the driver but will tweaking the data type help?

Comment 1 Madhumita Sadhukhan 2012-05-03 11:49:16 UTC
Link: Added: This issue is related to JBPAPP-8627


Comment 2 Rajesh Rajasekaran 2012-05-03 15:17:50 UTC
Link: Added: This issue is a dependency of JBPAPP-8827


Comment 3 Madhumita Sadhukhan 2012-05-04 08:15:21 UTC
I updated the DB2-97 driver with FP5(DRIVER=4.13.80) but do not see any improvement.
The tests continue to fail with similar stacktrace.

http://hudson.qa.jboss.com/hudson/job/eap6-hibernate-envers-testsuite-temp/3/database=db2-97,jdk=java16_default,label=hibernate/


Comment 4 Gail Badner 2012-05-11 22:57:53 UTC
This will probably be fixed by https://hibernate.onjira.com/browse/HHH-7317.

Comment 5 Strong Liu 2012-05-17 08:22:39 UTC
Link: Added: This issue is duplicated by JBPAPP-8627


Comment 6 Zbyněk Roubalík 2012-10-04 09:38:21 UTC
Verified.

Comment 7 Anne-Louise Tangring 2012-11-13 20:07:56 UTC
Docs QE Status: Removed: NEW