Skip to content

SSE streaming fails on Quarkus 4 with NoSuchMethodError in SseResponseWriter #1366

Backlog

Description

@omatheusmesmo

On Quarkus 4 (Vert.x 5), every SendStreamingMessage over JSON-RPC fails with HTTP 500, while SendMessage works:

java.lang.NoSuchMethodError: 'void io.vertx.core.http.HttpServerResponse.write(java.lang.Object, io.vertx.core.Handler)'
	at org.a2aproject.sdk.server.common.quarkus.SseResponseWriter$1.onNext(SseResponseWriter.java:116)
	at org.a2aproject.sdk.server.common.quarkus.SseResponseWriter$1.onNext(SseResponseWriter.java:67)
	at io.smallrye.mutiny.subscription.MultiSubscriberAdapter.onItem(MultiSubscriberAdapter.java:27)
	...
	at org.a2aproject.sdk.transport.jsonrpc.handler.JSONRPCHandler$1.onNext(JSONRPCHandler.java:799)

SseResponseWriter writes each event with response.write(data, ar -> ...), and Vert.x 5 removed the callback variants in favour of the Future returning ones. The REST routes go through the same writer. main still has that call, and building the SDK against Quarkus 4 also fails to compile in VertxA2AHttpClient for the same reason (sendBuffer(Buffer, Handler), send(Handler), WriteStream.end()).

I found it while moving the A2A server of quarkus-langchain4j to Quarkus 4.

Reproducer

A Quarkus app with only a2a-java-sdk-reference-jsonrpc:1.5.1.Final, the hello world card (with streaming(true)) and executor from examples/helloworld/server, a2a.authorization.required=false, and this test:

@QuarkusTest
class StreamingOnQuarkus4Test {

    @Test
    void sendMessage() {
        post("SendMessage");
    }

    @Test
    void sendStreamingMessage() {
        post("SendStreamingMessage");
    }

    private static void post(String method) {
        given()
                .contentType("application/json")
                .header("A2A-Version", "1.0")
                .body("""
                        {"jsonrpc": "2.0", "id": "1", "method": "%s", "params": {"message": {
                            "messageId": "message-1", "role": "ROLE_USER", "parts": [{"text": "hi"}]}}}
                        """.formatted(method))
                .when().post("/")
                .then()
                .statusCode(200)
                .body(containsString("Hello World"));
    }
}
  • Quarkus 3.39.2: both tests pass.
  • Quarkus 4.0.1: sendMessage passes, sendStreamingMessage fails with the error above.

JDK 25, A2A Java SDK 1.5.1.Final.

Activity

  1. suvvvv commented on Dec 2, 2026

    @suvvvv

    I'd like to take this one. The plan is to switch these calls to the Future-returning variants, which exist in both Vert.x 4.5 and 5, so the SDK keeps working on Quarkus 3 too:

    • SseResponseWriter: response.write(data).onComplete(...)
    • VertxA2AHttpClient: request.sendBuffer(body).onComplete(...) / request.send().onComplete(...), and remove the unused PlainBodyWriteStream, which overrides the Vert.x 4-only write(Buffer, Handler) and end(Handler)

    I'm checking it against Quarkus 4.0.1 locally and will open a PR shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions