IBM Support

ConnectionWaitTimeoutException prevents message listener ports from starting

Troubleshooting


Problem

During startup of WebSphere® Application Server, the below errors might occur when the message listener ports attempt to start.

Symptom

The following errors might appear at startup:


WMSG0019E: Unable to start MDB Listener Admin, JMSDestination jms/qcf : javax.jms.JMSException: Failed to create queue connection

J2CA0045E: Connection not available while invoking method queueRequest for resource jms/qcf.

J2CA0020E: The Connection Pool Manager could not allocate a Managed Connection: com.ibm.websphere.ce.j2c.ConnectionWaitTimeoutException: Connection not available

Cause

Each listener port that is configured on the Application Server requires one connection in the Queue Connection Factory (QCF) connection pool.

This problem occurs if multiple listener ports are configured with the same QCF, and the Maximum Connection Pool Size for the QCF is less than the number of listener ports associated with it.

For example, if there are 15 listener ports associated with a QCF and the Maximum Connection Pool Size for the QCF is 10, the first 10 listener ports start successfully, but the last five listener ports fail to start. This is because all 10 connections in the pool are in use.

The ConnectionWaitTimeoutException is issued.

Resolving The Problem

Ensure that the Maximum Connection Pool Size for the QCF exceeds the total number of listener ports that are associated with it. That way, there are enough connections in the pool to allow all of the listener ports to start successfully.

For help with the configuration, please see: Connection Factory Settings.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java 2 Connectivity (J2C)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21198681