org.apache.activemq.jndi.ReadOnlyContext cannot be cast to javax.jms.Destination

Document created by Ramya_Nakkapalle Employee on Dec 3, 2015
Version 1Show Document
  • View in full screen mode
When it is made sure that all the required jars are in place but still the process(performing Send Operation with JMS Connector, ActiveMQ being the JMS Server Type) fails with similar error as below:

"org-apache-activemq-jndi-ReadOnlyContext-cannot-be-cast-to-javax-jms-Destination"

Stack Trace:

java.lang.ClassCastException: org.apache.activemq.jndi.ReadOnlyContext cannot be cast to javax.jms.Destination
    at com.boomi.connector.jms.adapter.JndiAdapter.createDestination(JndiAdapter.java:39)
    at com.boomi.connector.jms.JMSUtil.createProducer(JMSUtil.java:247)
    at com.boomi.connector.jms.JMSSend.processBatch(JMSSend.java:110)
    at com.boomi.connector.jms.JMSSend.sendMessages(JMSSend.java:60)
    at com.boomi.connector.jms.JMSSend.send(JMSSend.java:37)
    at com.boomi.connector.custom.CustomSendConnectorAction.invoke(CustomSendConnectorAction.java:60)
    at com.boomi.connector.base.BaseConnectorAction.invokeBase(BaseConnectorAction.java:275)
    at com.boomi.connector.base.BaseConnectorAction.invoke(BaseConnectorAction.java:214)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   
Check if the 'Destination' field on the JMS Connector Operation is empty. If so, that is possibly causing the issue. The Destination needs a value to perform the operation successfully.

The value will be similar as below. 

dynamicQueues/Queuename

Attachments

    Outcomes