search cancel

Configuring JMS Producer throws: Message: An unexpected object of type class

book

Article ID: 77044

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

Have configured the JNDI CONNECT and JMS Destination Queue and tested it (clicking GREEN Arrow in the configuration window).  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"; what was needed is the JNDI name of the connection factory.

Environment

All supported DevTest releases.

Resolution

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

Additional Information

Refer to section "JMS Client Assets" in the documentation of the DevTest release you are running.