Service Virtualization

Expand all | Collapse all

Error creating connection with factory *******TopicConnectionFactory: authentication failed error is thrown while Sending/Receiving messages through JMS assets

Jump to Best Answer
  • 1.  Error creating connection with factory *******TopicConnectionFactory: authentication failed error is thrown while Sending/Receiving messages through JMS assets

    Posted 07-20-2017 02:54 AM

    Greetings Team,

     

    Objective- To create a Tibco EMS JNDI Based VS by Request and Response Pairs

    Available Jars- tibcrypt and tibjms

    Transport Protocol Used- JMS

    Created the JMS Asset as follows

    Class- JMS Topic-->JMS Connection (UserName/Password)-->JMS Connection Factory-->JNDI Context(UserName/Password)

    After creating the assets changed the Class from JMS Topic to JMS JNDI Topic and selected the corresponding JNDI Context defined.

    Step- JMS Send-Receive to verify the created assets

    Issue-

    This setup was working till yesterday, since today morning I am getting the below error.

    ----------------------------------------------------------------------------
    | Trapped Exception: authentication failed
    | Trapped Message:   javax.jms.JMSSecurityException: authentication failed
    ----------------------------------------------------------------------------

    Quick guidance on resolution would be much appreciated.

    Thanks inadvance.

    Execution Log extract for reference.

    Executing step
    Autopopulated JMS Producer with producer:*******Topic@*******TopicConnectionFactory (JMS Message Producer)
    Autopopulated JMS Producer.JMS Session with *******TopicConnectionFactory (JMS Session)
    Adjusting Runtime Scopes
    Adjusting Runtime Scopes
    Opening JNDI context with URL: <<Ldap URL>>
    Performing JNDI lookup with name: <<Topic Name>>
    Performing JNDI lookup with name: <<JNDI Factory Name>>
    Creating JMS Connection
    Error: Error creating connection with factory *******TopicConnectionFactory: authentication failed


    ============================================================================
    | Exception:
    ============================================================================
    | Message:     Error creating connection with factory *******TopicConnectionFactory: authentication failed
    ----------------------------------------------------------------------------
    | Trapped Exception: authentication failed
    | Trapped Message:   javax.jms.JMSSecurityException: authentication failed
    ----------------------------------------------------------------------------
    STACK TRACE
    javax.jms.JMSSecurityException: authentication failed
     at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:575)
     at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:1338)
     at com.tibco.tibjms.TibjmsConnection.<init>(TibjmsConnection.java:4127)
     at com.tibco.tibjms.TibjmsTopicConnection.<init>(TibjmsTopicConnection.java:36)
     at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:191)
     at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:253)
     at com.tibco.tibjms.TibjmsConnectionFactory.createConnection(TibjmsConnectionFactory.java:36)
     at com.****.**.*********.jms.****JmsConnectionFactory.createConnection(****JmsConnectionFactory.java:222)
     at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:131)
     at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:42)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.asset.AbstractJmsSessionAsset.createInstance(AbstractJmsSessionAsset.java:84)
     at com.itko.lisa.messaging.asset.AbstractJmsSessionAsset.createInstance(AbstractJmsSessionAsset.java:35)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.asset.JmsProducerAsset.createInstance(JmsProducerAsset.java:106)
     at com.itko.lisa.messaging.asset.JmsProducerAsset.createInstance(JmsProducerAsset.java:29)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.jms.JmsSendOperation.doExecute(JmsSendOperation.java:190)
     at com.itko.lisa.messaging.jms.JmsSendOperation.doExecute(JmsSendOperation.java:68)
     at com.itko.lisa.asset.operation.AbstractRuntimeOperation.execute(AbstractRuntimeOperation.java:167)
     at com.itko.lisa.messaging.builder.AbstractSendReceiveOperation.doExecute(AbstractSendReceiveOperation.java:152)
     at com.itko.lisa.asset.operation.AbstractRuntimeOperation.execute(AbstractRuntimeOperation.java:167)
     at com.itko.lisa.asset.operation.AbstractOperationStep.execute(AbstractOperationStep.java:176)
     at com.itko.lisa.asset.operation.AbstractOperationStep.execute(AbstractOperationStep.java:125)
     at com.itko.lisa.asset.operation.AbstractOperationStepEditor$ExecuteTask.run(AbstractOperationStepEditor.java:575)
     at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:116)
     at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:98)
     at javax.swing.SwingWorker$1.call(Unknown Source)
     at java.util.concurrent.FutureTask.run(Unknown Source)
     at javax.swing.SwingWorker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
    ============================================================================


     at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:134)
     at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:42)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.asset.AbstractJmsSessionAsset.createInstance(AbstractJmsSessionAsset.java:84)
     at com.itko.lisa.messaging.asset.AbstractJmsSessionAsset.createInstance(AbstractJmsSessionAsset.java:35)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.asset.JmsProducerAsset.createInstance(JmsProducerAsset.java:106)
     at com.itko.lisa.messaging.asset.JmsProducerAsset.createInstance(JmsProducerAsset.java:29)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:1691)
     at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1227)
     at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:660)
     at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:157)
     at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:109)
     at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:100)
     at com.itko.lisa.messaging.jms.JmsSendOperation.doExecute(JmsSendOperation.java:190)
     at com.itko.lisa.messaging.jms.JmsSendOperation.doExecute(JmsSendOperation.java:68)
     at com.itko.lisa.asset.operation.AbstractRuntimeOperation.execute(AbstractRuntimeOperation.java:167)
     at com.itko.lisa.messaging.builder.AbstractSendReceiveOperation.doExecute(AbstractSendReceiveOperation.java:152)
     at com.itko.lisa.asset.operation.AbstractRuntimeOperation.execute(AbstractRuntimeOperation.java:167)
     at com.itko.lisa.asset.operation.AbstractOperationStep.execute(AbstractOperationStep.java:176)
     at com.itko.lisa.asset.operation.AbstractOperationStep.execute(AbstractOperationStep.java:125)
     at com.itko.lisa.asset.operation.AbstractOperationStepEditor$ExecuteTask.run(AbstractOperationStepEditor.java:575)
     at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:116)
     at com.itko.lisa.asset.ui.ProgressLog$Worker.doInBackground(ProgressLog.java:98)
     at javax.swing.SwingWorker$1.call(Unknown Source)
     at java.util.concurrent.FutureTask.run(Unknown Source)
     at javax.swing.SwingWorker.run(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)



  • 2.  Re: Error creating connection with factory *******TopicConnectionFactory: authentication failed error is thrown while Sending/Receiving messages through JMS assets

    Posted 07-24-2017 07:14 AM

    Greetings Team,

     

    Any input or suggestion would be much appreciated.

     

    Thanks in advance.



  • 3.  Re: Error creating connection with factory *******TopicConnectionFactory: authentication failed error is thrown while Sending/Receiving messages through JMS assets
    Best Answer

    Posted 07-24-2017 10:56 AM

    Check and make sure the username/password defined on your Connection asset is still correct?

     

    If your configuration was working before, you made no changes but it's no longer working, then something in your environment must have changed. 



  • 4.  Re: Error creating connection with factory *******TopicConnectionFactory: authentication failed error is thrown while Sending/Receiving messages through JMS assets

    Posted 07-25-2017 04:07 AM

    Thanks for the response Kevin.

     

    I have raised the issue with the Dev and Environment team. Will keep you posted on the outcome.

     

    Below is the extract execution log of the successful connection, before encountering the issue.

     

    Executing step
    Autopopulated JMS Producer with producer:***** ** Topic@***** Topic ** Connection Factory (JMS Message Producer)
    Adjusting Runtime Scopes
    Adjusting Runtime Scopes
    Opening JNDI context with URL: *****
    Performing JNDI lookup with name: *****
    Performing JNDI lookup with name: *****
    Creating JMS Connection
    Starting JMS Connection
    Creating JMS Session
    Creating JMS Producer
    Creating JMS Text Message
    Writing JMS Message Headers
    Writing JMS Message Properties
    Sending JMS Message to Topic *****
    Closing JMS Producer
    Closing JMS Session
    Stopping JMS Connection
    Closing JMS Connection
    Finished executing step