title: ODI-1227: ActiveMQObjectMessage cannot be cast to javax.jms.BytesMessage
body: <p>I'm trying to get (Oracle Data Integrator 12.1.2.0.0) out of the XML from JMS queue, powered Apache ActiveMQ 5.8, but the following error:</p>
  
  <pre><code>ODI-1227: Task LKM JMS XML to SQL (Load JMS to XML) fails on the source &lt;Empty Value&gt; connection JMS_ActiveMQ_INVOICE_LOCAL2_CNG.
  Caused By: java.sql.SQLException: java.lang.ClassCastException: org.apache.activemq.command.ActiveMQObjectMessage cannot be cast to javax.jms.BytesMessage
  at com.sunopsis.jdbc.driver.SnpsDriverStatement.executeQuery(SnpsDriverStatement.java:110) 
  at com.sunopsis.jdbc.driver.SnpsDriverPreparedStatement.executeQuery(SnpsDriverPreparedStatement.java:139)
  at com.sunopsis.jdbc.driver.JMSXMLStatement.loadJMS(JMSXMLStatement.java:687)
  at com.sunopsis.jdbc.driver.JMSXMLStatement.execute(JMSXMLStatement.java:159)
  at oracle.odi.runtime.agent.execution.sql.SQLCommand.execute(SQLCommand.java:205)...
  </code></pre>
  
  <p>JMS-queue is external system and I am unable to change the type of messages.
  Can the LKM JMS XML to SQL knowledge module to process messages org.apache.activemq.command.ActiveMQObjectMessage class, that implements the interface javax.jms.BytesMessage, if so, how to config it?</p>
  
  <p>Because the message of the <code>org.apache.activemq.command.ActiveMQTextMessage</code> class that implements the interface <code>javax.jms.TextMessage</code> knowledge module LKM JMS XML to SQL is successfully handles.</p>
  
  <p>How do I solve this problem.</p>
  
  <p>Regards,
  Azamat</p>