Description
The check for an ssl connection is causing re-init of the transport server in error.
Exception from the logs at shutdown:
2011-11-15 16:43:18,997 [139:53398-29324] WARN Service - Failed to remove connection ConnectionInfo {}, reason: java.io.IOException: Failed to bind to server socket: stomp://0.0.0.0:6163?transport.closeAsync=false&transport.keepAlive=true&transport.soLinger=0 due to: java.net.BindException: Address already in use 2011-11-15 16:43:18,997 [139:53398-29324] DEBUG Service - Exception detail: java.io.IOException: Failed to bind to server socket: stomp://0.0.0.0:6163?transport.closeAsync=false&transport.keepAlive=true&transport.soLinger=0 due to: java.net.BindException: Address already in use at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:33) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:139) at org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60) at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131) at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:315) at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:145) at org.apache.activemq.security.JaasDualAuthenticationBroker.removeConnection(JaasDualAuthenticationBroker.java:111) at org.apache.activemq.broker.BrokerFilter.removeConnection(BrokerFilter.java:113) at org.apache.activemq.broker.MutableBrokerFilter.removeConnection(MutableBrokerFilter.java:119) at org.apache.activemq.broker.TransportConnection.processRemoveConnection(TransportConnection.java:757) at org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:1036) at org.apache.activemq.broker.jmx.ManagedTransportConnection.doStop(ManagedTransportConnection.java:73) at org.apache.activemq.broker.TransportConnection$3.run(TransportConnection.java:964) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:170) at org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135) ... 12 more