tyrus
  1. tyrus
  2. TYRUS-42

Method not invoked if String and byte[] payloads are used as parameters

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-b11, 1.0
    • Component/s: None
    • Labels:
      None

      Description

      Endpoint implementation looks like:

      @WebSocketEndpoint(path="/hello")
      public class HelloBean {

      @WebSocketMessage
      public String sayHello(String name)

      { return "Hello " + name + "!"; }

      @WebSocketMessage
      public byte[] sayHello2(byte[] data)

      { return data; }

      }

      The application is deployed in GlassFish 4 build 57. A JavaScript client invoking sayHello works fine for the first time. But subsequent invocations does not dispatch the request to any method in the endpoint. And, as expected, no response is returned back. If the "sayHello2" method is commented then everything works as expected.

        Activity

        Hide
        Pavel Bucek added a comment -

        String/test messages are working as expected

        binary messages work when ByteBuffer is used; byte[] needs to be fixed.

        Show
        Pavel Bucek added a comment - String/test messages are working as expected binary messages work when ByteBuffer is used; byte[] needs to be fixed.

          People

          • Assignee:
            Pavel Bucek
            Reporter:
            arungupta
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: