IBM Support

How to interpret SQLException due to "The application server rejected establishment of the connection."

Troubleshooting


Problem

This technote describes how to address the cause of the error described below.

Symptom

When testing the connection to a database server, you get the following error:


Test connection failed for data source TMTPDataSource on server server1 at node mercutioNode01 with the following exception:
java.lang.Exception: java.sql.SQLException:
The application server rejected establishment of the connection.
An attempt was made to access a database, tmtp, which was not found.
DB2ConnectionCorrelator: nullDSRA0010E: SQL State = 08004, Error Code = -4,499. View JVM logs for further details.

Cause

This means that the connection could not be established due to the SQLState and Error Code. SQLState = 80004 and Error Code = -4,499 means that the database name is not a database name recognized by the database server. The fully qualified database name on the server is schemaName.tableName where the schemaName is the schema that the table was created with.

Diagnosing The Problem

Check the schema name and database name of the table that is specified in the data source configuration. If no schema name is specified, the userid for the database connection will be used as the schema name. The combination of the schema name and table name must match what was used on the DB2® server to create the table.

Resolving The Problem

The solution for this problem is to correct the database name in the IBM® WebSphere® Application Server data source configuration.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"DB Connections\/Connection Pooling","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":" ","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21270638