{"record":{"id":"a0299e38f7c1c7f3","repo":"quarkusio/quarkus","slug":"value-is-not-set-for-s-s-most-probably-an-old","errorCode":null,"errorMessage":"Value is not set for %s.%s(). Most probably an older version of Jandex was used to index an application dependency. Make sure that Jandex 2.1+ is used.","messagePattern":"Value is not set for (.+?)\\.(.+?)\\(\\)\\. Most probably an older version of Jandex was used to index an application dependency\\. Make sure that Jandex 2\\.1\\+ is used\\.","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java","lineNumber":110,"sourceCode":"        }\n\n        AnnotationLiteralClassInfo literal = cache.getValue(new CacheKey(annotationClass));\n\n        ClassDesc generatedClass = ClassDesc.of(literal.generatedClassName);\n\n        if (literal.annotationMembers().isEmpty()) {\n            return bc.getStaticField(FieldDesc.of(generatedClass, \"INSTANCE\", generatedClass));\n        }\n\n        Expr[] ctorArgs = new Expr[literal.annotationMembers().size()];\n        int argIndex = 0;\n        for (MethodInfo annotationMember : literal.annotationMembers()) {\n            AnnotationValue value = annotationInstance.value(annotationMember.name());\n            if (value == null) {\n                value = annotationMember.defaultValue();\n            }\n            if (value == null) {\n                throw new IllegalStateException(String.format(\n                        \"Value is not set for %s.%s(). Most probably an older version of Jandex was used to index an application dependency. Make sure that Jandex 2.1+ is used.\",\n                        annotationMember.declaringClass().name(), annotationMember.name()));\n            }\n            Expr valueExpr = loadValue(bc, literal, annotationMember, value);\n            ctorArgs[argIndex] = valueExpr;\n\n            argIndex++;\n        }\n\n        ConstructorDesc ctor = ConstructorDesc.of(generatedClass, literal.annotationMembers()\n                .stream()\n                .map(it -> classDescOf(it.returnType()))\n                .toArray(ClassDesc[]::new));\n        return bc.new_(ctor, ctorArgs);\n    }\n\n    /**\n     * Generates a bytecode sequence to load given annotation member value.","sourceCodeStart":92,"sourceCodeEnd":128,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationLiteralProcessor.java#L92-L128","documentation":"When generating an annotation literal, each annotation member must have a value — either present in the AnnotationInstance or a declared default. If neither exists, Arc throws IllegalStateException advising that a Jandex older than 2.1 likely produced the index (older versions did not record default values).","triggerScenarios":"Annotation member with no explicit value on the usage site AND no defaultValue() in the Jandex index, encountered during literal generation in create().","commonSituations":"Stale or old Jandex version on the build classpath indexing an application dependency; dependency indexed with outdated tooling producing missing defaultValue metadata; annotation modified after indexing without reindex.","solutions":["Upgrade Jandex to 2.1+ (and matching smallrye/jandex artifacts) in the build","Re-index the offending dependency (mvn clean install with jandex plugin)","Give the annotation member a default value or supply an explicit value at usage"],"exampleFix":"// before\n<dependency> <groupId>io.smallrye</groupId> <artifactId>jandex</artifactId> <version>2.0.3.Final</version> </dependency>\n// after\n<dependency> <groupId>io.smallrye</groupId> <artifactId>jandex</artifactId> <version>3.x.x</version> </dependency>","handlingStrategy":"validation","validationCode":"// verify Jandex version\nif (Version.getString().startsWith(\"2.0\")) throw new IllegalStateException(\"upgrade Jandex\");","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Use Jandex 2.1+ and defaults on annotation members"],"tags":["arc","cdi","jandex","version-mismatch"],"backgroundTag":"jandex-index-outdated","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}