Troubleshooting
Problem
JDBC applications using the IBM Data Server Driver for JDBC and SQLJ, and a Type 4 connection, may fail with driver error code -4476 on a call to a stored procedure using the JDBC executeQuery method, while the same application does not fail if a Type 2 (native) connection is used
Symptom
The error message received should be similar to the following:
Exception: com.ibm.db2.jcc.am.SqlException: [jcc][10100][10910][3.64.82] java.sql.CallableStatement.executeQuery() was called but no result set was returned.
Use java.sql.CallableStatement.executeUpdate() for non-queries.
ERRORCODE=-4476, SQLSTATE=null
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
30 April 2025
UID
swg21601186