-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Load a browser with the test UI client: file:///source/hawkular-command-gateway/hawkular-command-gateway-war/websocket-test-client.html
Connect to "ui/ws" context and look in server log to see hawkular gets the new connection and everything is ok. Then hit the refresh button in browser, this disconnects from the websocket and reconnects. Notice you get an error:
273426 [default task-33] ERROR org.hawkular.bus.common.log - HAWKBUS100003: Failed to start connection.
javax.jms.IllegalStateException: The Connection is closed
at org.apache.activemq.ra.ManagedConnectionProxy.getConnection(ManagedConnectionProxy.java:93)
at org.apache.activemq.ra.ManagedConnectionProxy.start(ManagedConnectionProxy.java:207)
at org.hawkular.bus.common.ConnectionContextFactory.createOrReuseConnection(ConnectionContextFactory.java:311)
at org.hawkular.bus.common.ConnectionContextFactory.createConsumerConnectionContext(ConnectionContextFactory.java:190)
at org.hawkular.cmdgw.command.bus.BusEndpointProcessors$BusWsSessionListener.sessionAdded(BusEndpointProcessors.java:88)
at org.hawkular.cmdgw.command.ws.WsSessions$SessionEntry.added(WsSessions.java:64)
at org.hawkular.cmdgw.command.ws.WsSessions.addSession(WsSessions.java:123)
at org.hawkular.cmdgw.command.ws.server.UIClientWebSocket.uiClientSessionOpen(UIClientWebSocket.java:51)