{"record":{"id":"81c4735f34e7bb1b","repo":"quarkusio/quarkus","slug":"no-parameter-injector-found-for-parameter-s-of-ro","errorCode":null,"errorMessage":"No parameter injector found for parameter %s of route method %s declared on %s","messagePattern":"No parameter injector found for parameter (.+?) of route method (.+?) declared on (.+?)","errorType":"exception","errorClass":"java.lang.IllegalStateException","httpStatus":null,"severity":"error","filePath":"extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java","lineNumber":563,"sourceCode":"            DotName returnTypeName = method.returnType().name();\n\n            if ((returnTypeName.equals(DotNames.UNI)\n                    || returnTypeName.equals(DotNames.MULTI)\n                    || returnTypeName.equals(DotNames.COMPLETION_STAGE))\n                    && method.returnType().kind() == Kind.CLASS) {\n                throw new IllegalStateException(String.format(\n                        \"Route business method returning a Uni/Multi/CompletionStage must declare a type argument on the return type [method: %s, bean: %s]\",\n                        method, bean));\n            }\n            boolean canEndResponse = false;\n            int idx = 0;\n            int failureParams = 0;\n            for (Type paramType : params) {\n                Set<AnnotationInstance> paramAnnotations = Annotations.getParameterAnnotations(transformedAnnotations,\n                        method, idx);\n                List<ParameterInjector> injectors = getMatchingInjectors(paramType, paramAnnotations, index);\n                if (injectors.isEmpty()) {\n                    throw new IllegalStateException(String.format(\n                            \"No parameter injector found for parameter %s of route method %s declared on %s\", idx,\n                            method, bean));\n                }\n                if (injectors.size() > 1) {\n                    throw new IllegalStateException(String.format(\n                            \"Multiple parameter injectors found for parameter %s of route method %s declared on %s\",\n                            idx, method, bean));\n                }\n                ParameterInjector injector = injectors.get(0);\n                if (injector.getTargetHandlerType() != null && !injector.getTargetHandlerType().equals(handlerType)) {\n                    throw new IllegalStateException(String.format(\n                            \"HandlerType.%s is not legal for parameter %s of route method %s declared on %s\",\n                            injector.getTargetHandlerType(), idx, method, bean));\n                }\n\n                // A param injector may validate the parameter annotations\n                injector.validate(bean, method, routeAnnotation, paramType, paramAnnotations);\n","sourceCodeStart":545,"sourceCodeEnd":581,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java#L545-L581","documentation":"Raised by ReactiveRoutesProcessor.validateRouteMethod when, while iterating the route method's parameters, no registered ParameterInjector matches a parameter's type and annotations. Reactive Routes only injects parameters it recognizes (RoutingContext, @Param, @Header, body types, etc.); an unmatched parameter would arrive as null at runtime, so the build-time validation fails fast, naming the parameter index, method and declaring bean.","triggerScenarios":"Thrown at extensions/reactive-routes/deployment/src/main/java/io/quarkus/vertx/web/deployment/ReactiveRoutesProcessor.java:563 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Annotate the parameter with a supported annotation such as @Param or @Header","Change the parameter type to a supported injectable type like RoutingContext","Register a custom ParameterInjector extension if a custom parameter type must be supported"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}