configuring JMS Producer throws unexpected object of type class error

book

Article ID: 77044

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

We have configured the JNDI CONNECT AND JMS Destination Queue and test it (clicking GREEN Arroun in the configuration window). We are seeing below error while trying to configure the JMS Producer Verifying Asset

 Opening JNDI context with URL: smf://abc.com:55555 Performing JNDI lookup with name: Q_QUEUE.NAME Performing JNDI lookup with name: Q_QUEUE.NAME Error: An unexpected object of type class com.solacesystems.jms.impl.SolQueueImpl was returned from the JNDI lookup Q_QUEUE.NAME: MY.QUEUE.NAME ============================================================================ | Exception: ============================================================================
| Message: An unexpected object of type class com.solacesystems.jms.impl.SolQueueImpl was returned from the JNDI lookup Q_QUEUE.NAME: MY.QUEUE.NAME ---------------------------------------------------------------------------- ============================================================================ at com.itko.lisa.jms.JndiUtils.throwJndiLookupException(JndiUtils.java:77) at com.itko.lisa.jms.JndiUtils.lookupWithExpectedType(JndiUtils.java:47) at com.itko.lisa.jndi.asset.JndiLookupAssetDelegate.createInstance(JndiLookupAssetDelegate.java:98) at com.itko.lisa.messaging.asset.AbstractJmsJndiConnectionFactoryAsset.createInstance(AbstractJmsJndiConnectionFactoryAsset.java:74) at com.itko.lisa.messaging.asset.AbstractJmsJndiConnectionFactoryAsset.createInstance(AbstractJmsJndiConnectionFactoryAsset.java:34) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:2320) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1539) at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:803) at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:166) at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:123) at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:114) at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:102) at com.itko.lisa.messaging.asset.AbstractJmsConnectionFromFactoryAsset.createInstance(AbstractJmsConnectionFromFactoryAsset.java:44) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:2320) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1539) at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:803) at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:166) at com.itko.lisa.asset.LocalAssetRuntime.openAssetInScope(LocalAssetRuntime.java:123) at com.itko.lisa.asset.LocalAssetRuntime.openAsset(LocalAssetRuntime.java:114) 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:2320) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1539) at com.itko.lisa.asset.LocalAssetRuntime$RuntimeEntry.checkOut(LocalAssetRuntime.java:803) at com.itko.lisa.asset.LocalAssetRuntime.doOpenAsset(LocalAssetRuntime.java:166) at c

Cause

The error message says that "Q_QUEUE.NAME" is the JNDI name of the *queue* "MY.QUEUE.NAME". But what we need is the JNDI name of the connection factory.

Environment

Release:
Component: ITKOTF

Resolution

We need to provide a valid JNDI name of the connection factory in the JMS Connection Factory Asset.