Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5670

org.apache.wicket.protocol.ws.api.registry.IKey should be Serializable (IClusterable)

    XMLWordPrintableJSON

Details

    Description

      IKey not serializable whereas it is supposed to be.

      this.add(new WebSocketBehavior() {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onConnect(ConnectedMessage message)

      { super.onConnect(message); LOG.info("Client connected"); applicationName = message.getApplication().getName(); sessionId = message.getSessionId(); key = message.getKey(); }

      });

      Leads to:
      private org.apache.wicket.protocol.ws.api.registry.IKey
      MyPage.key [class=org.apache.wicket.protocol.ws.api.registry.PageIdKey] <----- field that is causing the problem

      If you could update the wicket guide in the same time (the usage of the key), it would be nice!
      http://wicket.apache.org/guide/guide/nativewebsockets.html#nativewebsockets_2

      Thanks in advance,
      Sebastien

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            sebfz1 Sebastien Briquet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: