{"record":{"id":"1ff236b613567b35","repo":"hibernate/hibernate-orm","slug":"unable-to-deserialize-a-serializableproxy-proxy-t","errorCode":null,"errorMessage":"Unable to deserialize a SerializableProxy proxy: the bytecode provider is not ByteBuddy.","messagePattern":"Unable to deserialize a SerializableProxy proxy: the bytecode provider is not ByteBuddy\\.","errorType":"exception","errorClass":"IllegalStateException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/SerializableProxy.java","lineNumber":149,"sourceCode":"\t\t\t\t? getFallbackBytecodeProvider()\t// When the session factory is not available fallback to local bytecode provider\n\t\t\t\t: castBytecodeProvider( sessionFactory.getServiceRegistry().getService( BytecodeProvider.class ) );\n\n\t}\n\n\tprivate static BytecodeProviderImpl getFallbackBytecodeProvider() {\n\t\tvar provider = fallbackBytecodeProvider;\n\t\tif ( provider == null ) {\n\t\t\tprovider = fallbackBytecodeProvider = castBytecodeProvider( buildDefaultBytecodeProvider() );\n\t\t}\n\t\treturn provider;\n\t}\n\n\tprivate static BytecodeProviderImpl castBytecodeProvider(BytecodeProvider bytecodeProvider) {\n\t\tif ( bytecodeProvider instanceof BytecodeProviderImpl impl ) {\n\t\t\treturn impl;\n\t\t}\n\t\telse {\n\t\t\tthrow new IllegalStateException( \"Unable to deserialize a SerializableProxy proxy: the bytecode provider is not ByteBuddy.\" );\n\t\t}\n\t}\n}\n","sourceCodeStart":131,"sourceCodeEnd":153,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/proxy/pojo/bytebuddy/SerializableProxy.java#L131-L153","documentation":"Error \"Unable to deserialize a SerializableProxy proxy: the bytecode provider is not ByteBuddy.\" thrown in hibernate/hibernate-orm.","triggerScenarios":"A runtime precondition of the Hibernate API is violated.","commonSituations":"Occurs when application code or configuration does not satisfy the documented contract of the API being called.","solutions":["Configure the ByteBuddy bytecode provider (the default) for proxy deserialization.","Do not mix serialized proxies across different bytecode providers."],"exampleFix":null,"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"}