Bug 900356 (JBPAPP6-971) - Bulk Envers Test failures on DB2 for processing error (ERRORCODE=-4225, SQLSTATE=24514)
Summary: Bulk Envers Test failures on DB2 for processing error (ERRORCODE=-4225, SQLST...
Keywords:
Status: CLOSED DUPLICATE of bug 2040112
Alias: JBPAPP6-971
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: EAP 6.0.1
Assignee: Strong Liu
QA Contact:
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard:
Depends On:
Blocks: 900296
TreeView+ depends on / blocked
 
Reported: 2012-05-03 10:13 UTC by Madhumita Sadhukhan
Modified: 2014-06-28 12:32 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
DB2 Database
Last Closed: 2012-10-04 09:38:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 900153 0 high CLOSED Consistent test failures on DB2 due to processingError 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPAPP6-971 0 Major Closed Bulk Envers Test failures on DB2 for processing error (ERRORCODE=-4225, SQLSTATE=24514) 2015-09-25 04:11:32 UTC

Internal Links: 900153

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 



Note You need to log in before you can comment on or make changes to this bug.