hibernate/hibernate-orm · error · HibernateException

Generation of HibernateProxy instances at runtime is not all

Error message

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.

What it means

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.

Source

Thrown at hibernate-core/src/main/java/org/hibernate/bytecode/internal/none/DisallowedProxyFactory.java:32

import org.hibernate.type.CompositeType;

final class DisallowedProxyFactory implements ProxyFactory {

	static final DisallowedProxyFactory INSTANCE = new DisallowedProxyFactory();

	@Override
	public void postInstantiate(
			String entityName,
			Class<?> persistentClass,
			Set<Class<?>> interfaces,
			Method getIdentifierMethod,
			Method setIdentifierMethod,
			CompositeType componentIdType) {
	}

	@Override
	public HibernateProxy getProxy(Object id, SharedSessionContractImplementor session) throws HibernateException {
		throw 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." );
	}

}

View on GitHub (pinned to fad1729dce)

Solutions

  1. Remove the hibernate.bytecode.provider=none setting (or set it to bytebuddy) so proxies/reflection optimization can be generated, or avoid features requiring proxies.

Example fix

Remove the hibernate.bytecode.provider=none setting (or set it to bytebuddy) so proxies/reflection optimization can be generated, or avoid features requiring proxies.

When it happens

Trigger: Bytecode enhancement, proxy creation, or lazy interception is applied to an incompatible class or configuration.

Common situations: 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.


AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22). Data as JSON: /api/errors/bab73cba846f8208. Report an issue: GitHub.