{"record":{"id":"5e63785fb14f7c87","repo":"hibernate/hibernate-orm","slug":"using-the-reflectionoptimizer-is-not-possible-when","errorCode":null,"errorMessage":"Using the ReflectionOptimizer is not possible when the configured BytecodeProvider is 'none'. Use a different BytecodeProvider","messagePattern":"Using the ReflectionOptimizer is not possible when the configured BytecodeProvider is 'none'\\. Use a different BytecodeProvider","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/BytecodeProviderImpl.java","lineNumber":44,"sourceCode":" *\n * @since 5.4\n */\npublic final class BytecodeProviderImpl implements BytecodeProvider {\n\n\t@Nonnull\n\t@Override\n\tpublic ProxyFactoryFactory getProxyFactoryFactory() {\n\t\treturn new NoProxyFactoryFactory();\n\t}\n\n\t@Override\n\t@Nonnull\n\tpublic ReflectionOptimizer getReflectionOptimizer(\n\t\t\t@Nonnull Class<?> clazz,\n\t\t\t@Nonnull String[] getterNames,\n\t\t\t@Nonnull String[] setterNames,\n\t\t\t@Nonnull Class<?>[] types) {\n\t\tthrow new HibernateException( \"Using the ReflectionOptimizer is not possible when the configured BytecodeProvider is 'none'. Use a different BytecodeProvider\" );\n\t}\n\n\t@Override\n\tpublic @Nullable ReflectionOptimizer getReflectionOptimizer(@Nonnull Class<?> clazz, @Nonnull Map<String, PropertyAccess> propertyAccessMap) {\n\t\treturn null;\n\t}\n\n\t@Override\n\tpublic @Nullable Enhancer getEnhancer(@Nonnull EnhancementContext enhancementContext) {\n\t\treturn null;\n\t}\n}\n","sourceCodeStart":26,"sourceCodeEnd":57,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/BytecodeProviderImpl.java#L26-L57","documentation":"Error \"Using the ReflectionOptimizer is not possible when the configured BytecodeProvider is 'none'. Use a different BytecodeProvider\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Bytecode enhancement, proxy creation, or lazy interception is applied to an incompatible class or configuration.","commonSituations":"Build-time enhancement with module-system restrictions, mismatched Hibernate versions between build and runtime, or hibernate.bytecode.provider=none with a model that needs proxies.","solutions":["Remove the hibernate.bytecode.provider=none setting (or set it to bytebuddy) so proxies/reflection optimization can be generated, or avoid features requiring proxies."],"exampleFix":"Remove the hibernate.bytecode.provider=none setting (or set it to bytebuddy) so proxies/reflection optimization can be generated, or avoid features requiring proxies.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}