hibernate/hibernate-orm · error · IllegalArgumentException

Unregistered converter type: " + type.getName()

Error message

Unregistered converter type: " + type.getName()

What it means

Type-registry lookup guard behind registerStoredProcedureParameter: getRegisteredType(type.getTypeName()) returned null, meaning the Java type passed for the parameter has no registered converter/basic type in the type registry. The faulty input is the Class passed to registerStoredProcedureParameter; register a BasicType or converter for it first.

Solutions

  1. Register the AttributeConverter with the JPA persistence unit or Hibernate bootstrap.
  2. Ensure the converter class has autoApply enabled or is listed in the mapping.
Defensive patterns

Strategy: validation

When it happens

Trigger: A runtime precondition of the Hibernate API is violated.

Common situations: Occurs when application code or configuration does not satisfy the documented contract of the API being called.


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

Appendix: source

Thrown at hibernate-core/src/main/java/org/hibernate/procedure/internal/ProcedureCallImpl.java:750

				registerParameter( parameterName, type, mode );
			}
		}
		catch (HibernateException he) {
			throw getExceptionConverter().convert( he );
		}
		catch (RuntimeException e) {
			getSession().markForRollbackOnly();
			throw e;
		}
		return this;
	}

	private BasicType<?> getConvertedType(Class<?> type) {
		final var convertedType =
				getNodeBuilder().getTypeConfiguration().getBasicTypeRegistry()
						.getRegisteredType( type.getTypeName() );
		if ( convertedType == null ) {
			throw new IllegalArgumentException( "Unregistered converter type: " + type.getName() );
		}
		return convertedType;
	}

	private <C> void registerParameterWithConverter(int position, BasicType<C> convertedType, ParameterMode mode) {
		registerParameter( new ProcedureParameterImpl<>(
				position,
				mode,
				getExpressibleJavaType( convertedType ),
				convertedType
		) );
	}

	private <C> void registerParameterWithConverter(String name, BasicType<C> convertedType, ParameterMode mode) {
		registerParameter( new ProcedureParameterImpl<>(
				name,
				mode,
				getExpressibleJavaType( convertedType ),

View on GitHub (pinned to fad1729dce)