Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-5981

Websocket.next - default serialization fails on native

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • +
    • Hide
      = WebSockets Next: Default serialization does not work in native mode

      In {ProductLongName} {ProductVersion}, when building and running applications with the `websockets-next` extension in native mode, the default serialization mechanism for WebSocket messages fails when using the `@OnTextMessage` lifecycle callback without a custom codec.

      This issue affects applications that rely on the default `JsonTextMessageCodec` for serializing and deserializing WebSocket messages. If a custom codec is specified using the `@OnTextMessage(codec = MyCodec.class)` annotation, the application works as expected.

      Workaround: link:https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection[Use the `@RegisterForReflection` annotation].
      This issue is planned to be resolved in a future release.

      For more information, see link:https://issues.redhat.com/browse/QUARKUS-5981[QUARKUS-5981].
      Show
      = WebSockets Next: Default serialization does not work in native mode In {ProductLongName} {ProductVersion}, when building and running applications with the `websockets-next` extension in native mode, the default serialization mechanism for WebSocket messages fails when using the `@OnTextMessage` lifecycle callback without a custom codec. This issue affects applications that rely on the default `JsonTextMessageCodec` for serializing and deserializing WebSocket messages. If a custom codec is specified using the `@OnTextMessage(codec = MyCodec.class)` annotation, the application works as expected. Workaround: link: https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection [Use the `@RegisterForReflection` annotation]. This issue is planned to be resolved in a future release. For more information, see link: https://issues.redhat.com/browse/QUARKUS-5981 [ QUARKUS-5981 ].
    • ---

      https://github.com/quarkusio/quarkus/issues/46989

      Issue is fixed in current main but not fixed in 3.20

              gandrian Georgios Andrianakis
              mocenas@redhat.com Martin Ocenas
              Martin Ocenas Martin Ocenas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: