Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-8337

WebSocket connection is closed based on web session timeout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.21.0.Final
    • 7.18.0.Final
    • Controller
    • None
    • 8
    • NEW
    • NEW
    • Hide

      Download single zip dist.
      Change business-central.war/WEB-INF/we.xml session-config session-timeout to 2.
      Update controller connection url to use websocket:

      <property name="org.kie.server.controller" value="ws://localhost:8080/controller/websocket/controller"/>
      

      start server and watch logs for reconnect message every 2 minutes.

      Show
      Download single zip dist. Change business-central.war/WEB-INF/we.xml session-config session-timeout to 2. Update controller connection url to use websocket: <property name= "org.kie.server.controller" value= "ws://localhost:8080/controller/websocket/controller" /> start server and watch logs for reconnect message every 2 minutes.
    • 2019 Week 08-10, 2019 Week 11-13, 2019 Week 14-16, 2019 Week 20-22, 2019 Week 23-25

      When connecting a Kie Server to the embedded controller in Business Central, the websocket connection is limited to the session timeout, causing a reconnect everytime the session expires.
      The problem is not reproducible using the standalone controller war.

      14:19:51,913 INFO [org.kie.server.controller.websocket.common.WebSocketClientImpl] (default task-1) Session NhjtAHIaV4LTCOr-YHZbWCtT0SynRlomKv0yiHP- is closed due to CloseReason[1008]
      14:19:51,931 INFO [org.kie.server.controller.impl.KieServerControllerImpl] (default task-4) Server http://localhost:8080/kie-server/services/rest/server disconnected from controller
      14:19:51,944 INFO [org.kie.server.controller.websocket.notification.WebSocketNotificationService] (default task-4) WebSocket notify on instance deleted :: ServerInstanceDeleted

      {serverInstanceId='sample-server@localhost:8080'}

      14:19:51,945 INFO [org.kie.server.controller.websocket.notification.WebSocketNotificationService] (default task-4) WebSocket notify on updated :: Updated server template{serverTemplate=ServerTemplateKey

      {id='sample-server', name='sample-server'}

      , resetBeforeUpdate=false}
      14:19:51,945 WARN [org.kie.server.common.KeyStoreHelperUtil] (default task-4) Unable to load key store. Using password from configuration
      14:19:51,945 INFO [org.kie.server.controller.websocket.notification.WebSocketNotificationService] (default task-4) WebSocket notify on instance disconnected :: ServerInstanceDisconnected

      {serverInstanceId='sample-server@localhost:8080'}

      14:19:51,947 INFO [org.kie.server.controller.websocket.WebSocketKieServerControllerImpl] (default task-4) Server with id 'sample-server' disconnected
      14:20:01,928 INFO [org.kie.server.controller.websocket.common.WebSocketClientImpl] (Kie Server - Web Socket reconnect) Connection to Kie Controller over Web Socket is now open with session id: EzPHoPY3FDZPZCPENx4s6HAgyF9sDJ5PXXTIvx6k
      14:20:01,960 INFO [org.kie.server.controller.impl.KieServerControllerImpl] (default task-1) Server http://localhost:8080/kie-server/services/rest/server connected to controller

              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              cnicolai@redhat.com Cristiano Nicolai (Inactive)
              Jan Stastny Jan Stastny
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: