title: Getting error when trying to connect to setup a STOMPClient connection, what could be the issue here?
body: <p>Below is the code I have and it throws an error:</p>
  
  <pre><code>java.io.EOFException: at java.io.DataInputStream.readByte(Unknown Source)
  </code></pre>
  
  <p>The same credentials &amp; host/port are used with <code>Python</code> or <code>Java</code> and it works.</p>
  
  <p>This code is failing:</p>
  
  <pre class="lang-java prettyprint-override"><code>public static void main(String args[]) throws Exception {
      String host = "***********.mq.us-west-2.amazonaws.com";
      Integer port = 61614; String userId="******", password="*****";
  
      StompConnection connection = new StompConnection();
      connection.open(host, port);
      connection.connect(userId, password);
      connection.disconnect();
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Exception in thread "main" java.io.EOFException
      at java.io.DataInputStream.readByte(Unknown Source)
      at org.apache.activemq.transport.stomp.StompWireFormat.readHeaderLine(StompWireFormat.java:155)
      at org.apache.activemq.transport.stomp.StompWireFormat.readLine(StompWireFormat.java:148)
      at org.apache.activemq.transport.stomp.StompWireFormat.parseAction(StompWireFormat.java:181)
      at org.apache.activemq.transport.stomp.StompWireFormat.unmarshal(StompWireFormat.java:98)
      at org.apache.activemq.transport.stomp.StompConnection.receive(StompConnection.java:77)
      at org.apache.activemq.transport.stomp.StompConnection.receive(StompConnection.java:68)
      at org.apache.activemq.transport.stomp.StompConnection.connect(StompConnection.java:139)
      at org.apache.activemq.transport.stomp.StompConnection.connect(StompConnection.java:132)
      at org.apache.activemq.transport.stomp.StompConnection.connect(StompConnection.java:122)
      at com.springboot.nfl.streams.StompListn2.main(StompListn2.java:15)
  </code></pre>