hibernate/hibernate-orm · error · IllegalIdentifierException
Object name to parse must be specified, but found null
Error message
Object name to parse must be specified, but found null
What it means
Guard in QualifiedNameParser.parse rejecting a null object name. The caller passed null text where a catalog.schema.name string was mandatory; the faulty input is the string handed to parse(), not anything in the mapping model.
Solutions
- Provide a non-null catalog/schema/object name; check configuration properties and annotations for empty name values.
Example fix
Provide a non-null catalog/schema/object name; check configuration properties and annotations for empty name values.
Defensive patterns
Strategy: validation
When it happens
Trigger: An entity mapping annotation or bootstrap configuration violates a Hibernate mapping rule.
Common situations: Annotation mapping mistakes: inverse-side @Id associations, @Column on @OneToOne, unmapped association targets, mismatched @EnumeratedValue/@Temporal usage, duplicate sequence generators.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/db79d1e9ddc1e6e4.
Report an issue: GitHub.
Appendix: source
Thrown at hibernate-core/src/main/java/org/hibernate/boot/model/relational/QualifiedNameParser.java:108
}
@Override
public int hashCode() {
return Objects.hash( catalogName, schemaName, objectName );
}
}
/**
* Parses a textual representation of a qualified name into a NameParts
* representation. Explicitly looks for the form {@code catalog.schema.name}.
*
* @param text The simple text representation of the qualified name.
*
* @return The wrapped QualifiedName
*/
public NameParts parse(String text, Identifier defaultCatalog, Identifier defaultSchema) {
if ( text == null ) {
throw new IllegalIdentifierException( "Object name to parse must be specified, but found null" );
}
if ( isQuotedInEntirety( text ) ) {
return new NameParts( defaultCatalog, defaultSchema,
Identifier.toIdentifier( unquote( text ), true, true, true ) );
}
String catalogName = null;
String schemaName = null;
String name;
boolean catalogWasQuoted = false;
boolean schemaWasQuoted = false;
boolean nameWasQuoted;
final String[] tokens = StringHelper.split( ".", text );
if ( tokens.length == 0 || tokens.length == 1 ) {
// we have just a local name...View on GitHub (pinned to fad1729dce)