Cannot close a remote JDBC connection that is not the current connection.

Item Value
SQLCODE -998
Constant SQLE_CANNOT_CLOSE_JDBC_CONNECTION
SQLSTATE WO026
Sybase error code 711
ODBC 2 State ERROR
ODBC 3 State ERROR

Probable cause 

When attempting to close a remote JDBC connection, the specified connection must be the local connection.