title: Bug in ActiveMq Broker : WARN [Transport:203] Transport Connection to: StompSocket_1661562307 failed: java.io.IOException: closedOut 1006:null
body: <p>I use embedded broker ActiveMq and connect to it from a JavaScript application. The protocol used is STOMP over WebSocket. XML Config for Spring:</p>
  
  <pre><code>&lt;amq:broker id="broker" useJmx="false" persistent="false" brokerId="1" brokerName="locHost"&gt;
      &lt;amq:transportConnectors&gt;
          &lt;amq:transportConnector name="websocket" uri="ws://0.0.0.0:6661"/&gt;
      &lt;/amq:transportConnectors&gt;
  &lt;/amq:broker&gt;
  
  
  
  &lt;!-- JMS ConnectionFactory to use, configuring the embedded broker using XML --&gt;
  &lt;amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/&gt;
  
  
  &lt;bean id="jmsConnectionFactory"
        class="org.springframework.jms.connection.SingleConnectionFactory"
        depends-on="broker"
        p:targetConnectionFactory-ref="jmsFactory"
        /&gt;
  
  &lt;jms:listener-container
          container-type="default"
          connection-factory="jmsConnectionFactory"
          &gt;
      . . . . .
      &lt;jms:listener destination="toggle"     ref="consumer" method="toggle"      response-destination="toggle"/&gt;
  
      . . . . .
  
  &lt;/jms:listener-container&gt;
  </code></pre>
  
  <p>Also have a few listeners of this form(one of them):</p>
  
  <pre><code>@Component
  public class Consumer {
     . . . . .
     public String toggle(String message)  {
  
          return "Responce" + message; 
     }
  
     . . . . .
  }
  </code></pre>
  
  <p>Some listeners are working, but there are those under which there is exception type:</p>
  
  <pre><code>09:33:25,196 WARN  [Transport:203] Transport Connection to: StompSocket_1661562307 failed: java.io.IOException: closedOut 1006:null
  </code></pre>
  
  <p>and the message is not getting to the recipient. What can we do? </p>