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
Error "Object name to parse must be specified, but found null" thrown in hibernate/hibernate-orm.
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)
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.
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.