[interclient] Bug detected. Refer to bug code 10019.

By: Borland Staff

Abstract: InterClient issues this bug code when it detects that the transaction state
f InterServer disagrees with the transaction state of InterClient.
Problem:
During the execution of my Java application I encountered the following
error message. What does this mean?

 [interclient] Bug detected. 
 Please send mail to icsupport@interbase.com 
 Refer to bug code 10019. 
 See API reference for exception interbase.interclient.BugCheckException 
 borland.jbcl.dataset.DataSetException: [interclient] Bug detected. 


Solution:
The information in this article applies to:
** InterClient 1.x

InterClient issues this bug code when it detects that the transaction state
of InterServer  disagrees with the transaction state of InterClient. 

If an application invokes COMMIT using SQL rather than using the JDBC
Connection.commit() method,  the transaction states of interclient and
interbase  will not be in sync. So a transaction should be committed using: 

Connection.commit(); 

and not by passing SQL:  Statement.executeUpdate ("COMMIT"); 
  
In general, SQL should never be used in lieu of JDBC.  For another
example, invoking:

executeUpdate ("CREATE DATABASE...."); 

doesn't make any sense in JDBC because SQL must be executed on a
connection, and creating a database cannot happen on a connection
because the database doesn't  exist yet (in the Interbase API, this is allowed 
by nulling out the database handle; but one cannot execute SQL on a "null"
connection in JDBC). 

source: Paul Ostler


Published on: 7/24/2000 12:00:00 AM

Server Response from: ETNASC01

Copyright© 1994 - 2013 Embarcadero Technologies, Inc. All rights reserved.