I have ActiveMQ running on a server.  I can connect from my PC using Python 
stomp.  With Scala, I get this error:
Exception in thread "main" javax.jms.JMSException: Wire format negotiation 
timeout: peer did not send his wire format.


I copied the Scala "Receive from Queue" sample from the Cross Language Clients 
page (https://activemq.apache.org/cross-language-clients).  I added my user, 
password and broker URL to the instantiation of the ActiveMQConnectionFactory 
object.  It generates the error on this line:
val sess = conn.createSession(false, Session.AUTO_ACKNOWLEDGE)

I took the error to Google it found this page "Wire format negotiation timeout 
- peer did not send his wire format" 
(https://activemq.apache.org/javaxjmsjmsexception-wire-format-negociation-timeout-peer-did-not-send-his-wire-format).
  I know my port is correct because it's the same one that Python stomp can 
connect to.  This is a test ActiveMQ instance with no load, so it's not 
overworked.  That leaves the JMS appender topic 
(https://activemq.apache.org/how-do-i-use-log4j-jms-appender-with-activemq).  I 
copied the sample log4j.properties code into my project, but it didn't change 
anything.


Can anyone suggest what to check next?  I'd really appreciate it.


Thanks

Reply via email to