From a552b861fa134e9ac97f1d3c999039e38aba6487 Mon Sep 17 00:00:00 2001 From: "robin.bygrave" Date: Thu, 27 Nov 2025 12:24:38 +1300 Subject: [PATCH] [HttpClient] Improve error when no client implementation found Add the: `3. Using JDK 23+, and need to set property full` ... just to be a bit more explicit. The `avaje-http-client-generator dependency was not available` is accurate but perhaps it's good to explicitly mention the maven.compiler.proc full issue. --- http-client/src/main/java/io/avaje/http/client/DHttpApi.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http-client/src/main/java/io/avaje/http/client/DHttpApi.java b/http-client/src/main/java/io/avaje/http/client/DHttpApi.java index 19ce2a98..75cdc1bb 100644 --- a/http-client/src/main/java/io/avaje/http/client/DHttpApi.java +++ b/http-client/src/main/java/io/avaje/http/client/DHttpApi.java @@ -42,7 +42,8 @@ T provideFor(Class type, HttpClient httpClient) { + type + "\nPossible Causes: \n" + "1. Missing @Client or @Client.Import annotation.\n" - + "2. The avaje-http-client-generator dependency was not available during compilation\n"); + + "2. The avaje-http-client-generator dependency was not available during compilation\n" + + "3. Using JDK 23+, and need to set property full\n"); } return apiProvider.provide(httpClient); }