Uploaded image for project: 'Hawkular'
  1. Hawkular
  2. HAWKULAR-672

cannot connect to bus after the first websocket connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.0.0.Alpha6
    • None
    • Bus
    • None

    Description

      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)

      Attachments

        Activity

          People

            ppalaga Peter Palaga
            jmazzitelli John Mazzitelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: