IBM Support

CWSIA0241E with JMSException when creating QCF connection

Troubleshooting


Problem

JMS client receives CWSIA0241E and CWSIT0006E when creating a connection factory: javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to contact a messaging engine in bus tbus...

Symptom

Use of launchClient to run a standalone Java™ program to create Java Message Service (JMS) connection factory results in the following error (excerpt of the stack trace):

javax.jms.JMSException: CWSIA0241E: An exception was received during the call to the method JmsManagedConnectionFactoryImpl.createConnection: com.ibm.websphere.sib.exception.SIResourceException: CWSIT0006E: It is not possible to contact a messaging engine in bus tbus..
      at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:225)
      at com.ibm.ws.sib.api.jms.impl.JmsManagedConnectionFactoryImpl.createConnection(JmsManagedConnectionFactoryImpl.java:148)
      at com.ibm.websphere.samples.bank.client.SendToMDB.sendFromJavaClient(TransferJMS.java:93)


Note: This is an issue when trying to create a JMS connection factory from an application client or a stand-alone Java client. This does not address other scenarios that can lead to the CWSIA0241E.

Cause

The explanation for the error messages:

  • CWSIA0241: An exception was received during the call to the method {1}:{0}.

    Explanation: During execution of the specified method an exception was thrown by another component.

    User Response: See the linked exception for more information.

  • WSIT0006E: It is not possible to contact a messaging engine in bus {0}.

    Explanation: The client cannot establish contact with a bootstrap server. This situation may be due to network problems or it may be that none of the required bootstrap servers are currently available.

    User Response: Ensure that the network is working correctly and that the required bootstrap servers are available.

The bootstrap server and bootstrap port were correctly specified (verified from serverindex.xml and SystemOut.log).

Checked the resources.xml and determined that the ProviderEndpoints for the connection factory was not defined.

Resolving The Problem

Check the resources.xml to make sure the property ProviderEndpoints for the connection factory is correctly defined. A sample entry should look like this:

<resources.j2c:J2CResourceAdapter xmi:id="J2CResourceAdapter_1104942063483" name="SIB JMS Resource Adapter" archivePath="${WAS_INSTALL_ROOT}/installedConnectors/sib.api.jmsra.rar">
<classpath>${WAS_INSTALL_ROOT}/installedConnectors/sib.api.jmsra.rar</classpath>
<factories xmi:type="resources.j2c:J2CConnectionFactory" xmi:id="J2CConnectionFactory_1105044352853" name="rfactory" jndiName="jms/rfactory" description="" category="" authDataAlias="" manageCachedHandles="false" logMissingTransactionContext="false" xaRecoveryAuthAlias="" connectionDefinition="ConnectionDefinition_1104942063577">
<propertySet xmi:id="J2EEResourcePropertySet_1105462162538">
...
...
<resourceProperties xmi:id="J2EEResourceProperty_1105462162546" name="ProviderEndpoints" type="java.lang.String" value="myhost:7282" required="false"/>

See JMS connection factory settings in the information center for information on how to define the provider endpoints.

Notes:

  • The value for the provider endpoints has a format of host_name:port_number:chain_name(if chain_nameis not specified, the default is BootstrapBasicMessaging).

  • Restart the server after making the change.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Service Integration Technology","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"}],"Version":"9.0;8.5.5;8.0;7.0","Edition":"Base;Express;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"}},{"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":"7.0;6.1;6.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21195691