LoadBalanced JNDI EMS connection connect string defined - failed to start TIBCO BusinessEvents Agent (initialize channel).

LoadBalanced JNDI EMS connection connect string defined - failed to start TIBCO BusinessEvents Agent (initialize channel).

book

Article ID: KB0088931

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
LoadBalanced JNDI EMS connection connect string defined - failed to start TIBCO BusinessEvents Agent (initialize channel).
Symptoms:
Exception in logfile (startup sequence):
<timestamp> <agent> Info [main] - [runtime.channel] Initialized Channel Manager
<timestamp> <agent> Fatal [main] - [container.standalone] Supplied URL (tibjmsnaming://<ip1>:7222|tibjmsnaming://<ip2>:72
22) contains an invalid port number: For input string: "7222|tibjmsnaming:"
javax.naming.InvalidNameException: Supplied URL (tibjmsnaming://<ip1>:7222|tibjmsnaming://<ip2>:7222) contains an invalid port number: For input string: "7222
|tibjmsnaming:"
        at com.tibco.tibjms.naming.TibjmsNamingEnvUtil._parseURL(TibjmsNamingEnvUtil.java:195)
        at com.tibco.tibjms.naming.TibjmsNamingEnvUtil.parseURL(TibjmsNamingEnvUtil.java:274)
        at com.tibco.tibjms.naming.TibjmsNamingEnvUtil.parseInitialEnvironment(TibjmsNamingEnvUtil.java:234)
        at com.tibco.tibjms.naming.TibjmsInitialContextFactory.getInitialContext(TibjmsInitialContextFactory.java:36)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)
        at javax.naming.InitialContext.init(InitialContext.java:242)
        at javax.naming.InitialContext.<init>(InitialContext.java:216)
        at com.tibco.cep.driver.jms.JMSChannelConfig.a(SourceFile:480)
        at com.tibco.cep.driver.jms.JMSChannelConfig.a(SourceFile:141)
        at com.tibco.cep.driver.jms.JMSChannelConfig.<init>(SourceFile:70)
        at com.tibco.cep.driver.jms.JMSDriver.createChannel(SourceFile:26)
        at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.registerChannel(ChannelManagerImpl.java:107)
        at com.tibco.cep.runtime.channel.impl.ChannelManagerImpl.init(ChannelManagerImpl.java:99)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initChannels(RuleServiceProviderImpl.java:1006)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.initCluster(RuleServiceProviderImpl.java:687)
        at com.tibco.cep.runtime.session.impl.RuleServiceProviderImpl.configure(RuleServiceProviderImpl.java:269)
        at com.tibco.cep.container.standalone.BEMain.jumpStart(SourceFile:149)
        at com.tibco.cep.container.standalone.BEMain.main(SourceFile:69)


Cause:
LoadBalanced EMS URL is not supported at the JNDI level.

Issue/Introduction

LoadBalanced JNDI EMS connection connect string defined - failed to start TIBCO BusinessEvents Agent (initialize channel).

Resolution

Only FaultTolerant URLs are allowed.

example: FaultTolerant URL:

tibjmsnaming://testsystem1:7222,tibjmsnaming://testsystem2:7222

To configure LoadBalanced connections, update the EMS configuration (factories.conf) - see the TIBCO EMS User Guide.