APJMS 1885-IAPJMS - "Failed to get connection to the EMS" messages reported in the sw_warn.log file.

APJMS 1885-IAPJMS - "Failed to get connection to the EMS" messages reported in the sw_warn.log file.

book

Article ID: KB0092993

calendar_today

Updated On:

Products Versions
TIBCO iProcess Engine (Oracle) -
Not Applicable -

Description

Description:
When starting the TIBCO iProcess Engine, repeated messages similar to the following are reported in the sw_warn.log file when IAPJMS is configured to publish messages.


2016/01/18 12:25:46(iapjms:::2::com.staffware.core.iapjms.library.iapjmssocket.JMSMonitor::87):1885-IAPJMS Failed to get connection to the EMS.  Reason: [com.staffware.core.iapjms.library.iapjmssupport.IAPJMSException: Failed to obtain a Connection]

Symptoms:
When starting of the TIBCO iProcess Engine the IAPJMS process is started but repeated Failed to get connection to the EMS messages are reported in the sw_warn.log file.

The IAPJMS processes is listed as RUNNING when the system status is checked with "swsvrmgr status -v" and if port ranging is set the process is listed correctly using the command "swadm show_ports".

Cause:
There is an issue between the TIBCO iProcess Engine IAPJMS configuration for EMS and EMS itself for the connection factory.

Resolution

Check the EMS URL definition for the parameter IAPJMSConnect.InitialURL in the SWDIR/etc/iapjms.properties file. For example: IAPJMSConnect.InitialURL=tibjmsnaming://myserver:8222

The EMS URL would be: tcp://myserver:8222

The IAPJMS performs a look-up to the EMS server using the URL and connection factory. The EMS server factories.conf configuration file must have the correct URL defined. Login into EMS via the EMS Admin and display the factory details using the command: show factory TopicConnectionFactory

Example output:
Factory                     = TopicConnectionFactory
JNDI Names             = "TopicConnectionFactory"
URL                          = tcp://7222
ClientID                    =
Load Balanced         = no

In the above example, the TopicConnectionFactory URL is incorrect and should be: tcp://8222 . Update the EMS configuration file factories.conf so the TopicConnectionFactory parameter has the correct definition. A restart of the EMS server will be required for the configuration to take effect.

Issue/Introduction

APJMS 1885-IAPJMS - "Failed to get connection to the EMS" messages reported in the sw_warn.log file.