Skip to content

fix: use the Future-based Vert.x APIs so SSE streaming works on Quarkus 4 - #1383

Open
suvvvv wants to merge 1 commit into
a2aproject:mainfrom
suvvvv:issue-1366
Open

suvvvv wants to merge 1 commit into
a2aproject:mainfrom
suvvvv:issue-1366

Conversation

@suvvvv

@suvvvv suvvvv commented Dec 2, 2026

Copy link
Copy Markdown

Fixes #1366

Vert.x 5 (Quarkus 4) removed the callback variants of write, send and sendBuffer, so streaming failed with NoSuchMethodError in SseResponseWriter. This switches to the Future-returning variants, which exist in both Vert.x 4.5 and 5, so nothing changes on Quarkus 3:

  • SseResponseWriter: response.write(data).onComplete(...), same handling as before.
  • VertxA2AHttpClient: request.sendBuffer(bodyBuffer).onComplete(...) and request.send().onComplete(...).
  • VertxA2AHttpClient: removed PlainBodyWriteStream. Nothing creates it, and it overrides write(Buffer, Handler) and end(Handler), which no longer exist in Vert.x 5.
  • SseResponseWriterTest: the mocks stub write(Buffer) returning a succeeded or failed Future. writeFails_failsRoutingContext still covers the failure path.

Checked locally on JDK 25 with -pl reference/common,extras/http-client-vertx -am:

Quarkus 3.40 (Vert.x 4.5) Quarkus 4.0.1 (Vert.x 5.2)
main builds doesn't compile: sendBuffer/send and PlainBodyWriteStream
this PR SseResponseWriterTest 7, VertxA2AHttpClient*Test + VertxSseParserTest 81 pass same tests pass

For the Quarkus 4 build I had to leave tests/multiversion/jsonrpc out of the reactor locally: Quarkus 4's BOM no longer manages io.quarkus:quarkus-junit5-mockito, so Maven can't read that module. That's separate from this change, but it'll come up in the Quarkus 4 bump (#1375).

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSE streaming fails on Quarkus 4 with NoSuchMethodError in SseResponseWriter

1 participant