{"record":{"id":"bab73cba846f8208","repo":"hibernate/hibernate-orm","slug":"generation-of-hibernateproxy-instances-at-runtime","errorCode":null,"errorMessage":"Generation of HibernateProxy instances at runtime is not allowed when the configured BytecodeProvider is 'none'; your model requires a more advanced BytecodeProvider to be enabled.","messagePattern":"Generation of HibernateProxy instances at runtime is not allowed when the configured BytecodeProvider is 'none'; your model requires a more advanced BytecodeProvider to be enabled\\.","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/DisallowedProxyFactory.java","lineNumber":32,"sourceCode":"import org.hibernate.type.CompositeType;\n\nfinal class DisallowedProxyFactory implements ProxyFactory {\n\n\tstatic final DisallowedProxyFactory INSTANCE = new DisallowedProxyFactory();\n\n\t@Override\n\tpublic void postInstantiate(\n\t\t\tString entityName,\n\t\t\tClass<?> persistentClass,\n\t\t\tSet<Class<?>> interfaces,\n\t\t\tMethod getIdentifierMethod,\n\t\t\tMethod setIdentifierMethod,\n\t\t\tCompositeType componentIdType) {\n\t}\n\n\t@Override\n\tpublic HibernateProxy getProxy(Object id, SharedSessionContractImplementor session) throws HibernateException {\n\t\tthrow new HibernateException( \"Generation of HibernateProxy instances at runtime is not allowed when the configured BytecodeProvider is 'none'; your model requires a more advanced BytecodeProvider to be enabled.\" );\n\t}\n\n}\n","sourceCodeStart":14,"sourceCodeEnd":36,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/DisallowedProxyFactory.java#L14-L36","documentation":"Error \"Generation of HibernateProxy instances at runtime is not allowed when the configured BytecodeProvider is 'none'; your model requires a more advanced BytecodeProvider to be enabled.\" 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"}