{"record":{"id":"ac6013a0f2c0fb11","repo":"hibernate/hibernate-orm","slug":"nonebasicproxyfactory-is-unable-to-generate-a-basi","errorCode":null,"errorMessage":"NoneBasicProxyFactory is unable to generate a BasicProxy for type {superClassOrInterface}. Enable a different BytecodeProvider.","messagePattern":"NoneBasicProxyFactory is unable to generate a BasicProxy for type (.+?)\\. Enable a different BytecodeProvider\\.","errorType":"exception","errorClass":"HibernateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/NoneBasicProxyFactory.java","lineNumber":23,"sourceCode":"package org.hibernate.bytecode.internal.none;\n\nimport org.hibernate.HibernateException;\nimport org.hibernate.bytecode.spi.BasicProxyFactory;\n\n/**\n * This is used to instantiate \"components\" which are either Abstract or defined by an Interface.\n */\nfinal class NoneBasicProxyFactory implements BasicProxyFactory {\n\n\tprivate final Class superClassOrInterface;\n\n\tpublic NoneBasicProxyFactory(Class superClassOrInterface) {\n\t\tthis.superClassOrInterface = superClassOrInterface;\n\t}\n\n\t@Override\n\tpublic Object getProxy() {\n\t\tthrow new HibernateException( \"NoneBasicProxyFactory is unable to generate a BasicProxy for type \" + superClassOrInterface + \". Enable a different BytecodeProvider.\" );\n\t}\n\n}\n","sourceCodeStart":5,"sourceCodeEnd":27,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/NoneBasicProxyFactory.java#L5-L27","documentation":"Error \"NoneBasicProxyFactory is unable to generate a BasicProxy for type {superClassOrInterface}. Enable 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":["Enable the ByteBuddy bytecode provider (default); the 'none' provider cannot generate proxies required by this model."],"exampleFix":"Enable the ByteBuddy bytecode provider (default); the 'none' provider cannot generate proxies required by this model.","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"}