The following error is reported in the BW log when using JMS Queue Receiver with ConnectionFactory:Could not create connection with JMS server.[ Queue Connection Factory = ConnectionFactory-Name
book
Article ID: KB0090576
calendar_today
Updated On:
Products
Versions
TIBCO ActiveMatrix BusinessWorks
-
Not Applicable
-
Description
Resolution: Description: ========== The following error is reported in the BW log when using JMS Queue Receiver with ConnectionFactory:
Could not create connection with JMS server.[ Queue Connection Factory = <ConnectionFactory-Name>
Environment: =========== ALL BW 5.9.x
Symptoms: ========= The following error is reported in the BW log when using JMS Queue Receiver with ConnectionFactory:
caused by: Could not create connection with JMS server.[ Queue Connection Factory = <ConnectionFactory-Name> User Name = username JNDI Context URL = tcp://<hostname>:7222 JNDI Context Factory = com.tibco.tibjms.naming.TibjmsInitialContextFactory ] at com.tibco.plugin.share.jms.impl.JMSUtils.doRecovery(Unknown Source) at com.tibco.plugin.share.jms.impl.JMSReceiver.for(Unknown Source) at com.tibco.plugin.share.jms.impl.JMSReceiver.init(Unknown Source) at com.tibco.plugin.jms.JMSAbstractEventSource.init(Unknown Source) at com.tibco.pe.core.ProcessStarter.init(Unknown Source) at com.tibco.pe.core.WorkflowBuilder.build(Unknown Source) at com.tibco.pe.core.WorkflowLoader.setWorkflows(Unknown Source) at com.tibco.pe.core.WorkflowLoader.loadWorkflows(Unknown Source) at com.tibco.pe.core.JobPoolConfigurator.a(Unknown Source) at com.tibco.pe.core.FTActivator.itsTime(Unknown Source) at com.tibco.pe.util.ReminderQueue.run(Unknown Source) caused by: javax.naming.AuthenticationException: Not permitted: Failed to connect to any server at: tcp://<hostname>:7222 [Error: invalid name or password: url that returned this exception = tcp://<hostname>:7222 ] [Root exception is javax.jms.JMSSecurityException: Failed to connect to any server at: tcp://<hostname>:7222 [Error: invalid name or password: url that returned this exception = tcp://<hostname>:7222 ]] at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:668) at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:489) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.tibco.plugin.share.jms.impl.SharedConnection.a(Unknown Source) at com.tibco.plugin.share.jms.impl.SharedConnection.getQCF(Unknown Source) at com.tibco.plugin.share.jms.impl.SharedConnection.createQueueConnection(Unknown Source) at com.tibco.plugin.share.jms.impl.SharedConnection.createConnection(Unknown Source) at com.tibco.plugin.share.jms.impl.JMSPluginImplementation.getConnectionKey(Unknown Source) at com.tibco.plugin.share.jms.impl.JMSReceiver.for(Unknown Source) at com.tibco.plugin.share.jms.impl.JMSReceiver.init(Unknown Source) at com.tibco.plugin.jms.JMSAbstractEventSource.init(Unknown Source) at com.tibco.pe.core.ProcessStarter.init(Unknown Source) at com.tibco.pe.core.WorkflowBuilder.build(Unknown Source) at com.tibco.pe.core.WorkflowLoader.setWorkflows(Unknown Source) at com.tibco.pe.core.WorkflowLoader.loadWorkflows(Unknown Source) at com.tibco.pe.core.JobPoolConfigurator.a(Unknown Source) at com.tibco.pe.core.FTActivator.itsTime(Unknown Source) at com.tibco.pe.util.ReminderQueue.run(Unknown Source) Caused by: javax.jms.JMSSecurityException: Failed to connect to any server at: tcp://<hostname>:7222 [Error: invalid name or password: url that returned this exception = tcp://<hostname>:7222 ] at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1392) at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4155) at com.tibco.tibjms.TibjmsQueueConnection.<init>(TibjmsQueueConnection.java:36) at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:200) at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253) at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:87) at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:325) at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:655)
Cause: ====== ConnectionFactory is obtained by the client applications via JNDI lookup calls. So there are two connections involved here:
1). Connection for JNDI lookup call. 2). Connection for client subscriber or publisher.
Resolution: ========= Provide a user name and password for both connections (both "User Name"/"Password" and "JNDI User Name"/"JNDI Password") in Designer and redeploy project.
Issue/Introduction
The following error is reported in the BW log when using JMS Queue Receiver with ConnectionFactory:Could not create connection with JMS server.[ Queue Connection Factory = ConnectionFactory-Name