hibernate/hibernate-orm · error · JndiException
Error creating intermediate context [${intermediateContextNa
Error message
Error creating intermediate context [${intermediateContextName}] What it means
Error "Error creating intermediate context [${intermediateContextName}]" thrown in hibernate/hibernate-orm.
Source
Thrown at hibernate-core/src/main/java/org/hibernate/engine/jndi/internal/JndiServiceImpl.java:198
intermediateContext = (Context) intermediateContextBase.lookup( intermediateContextName );
}
catch ( NameNotFoundException handledBelow ) {
// ok as we will create it below if not found
}
catch ( NamingException e ) {
throw new JndiException( "Unanticipated error doing intermediate lookup", e );
}
if ( intermediateContext != null ) {
CORE_LOGGER.tracef( "Found intermediate context: %s", intermediateContextName );
}
else {
CORE_LOGGER.tracef( "Creating subcontext: %s", intermediateContextName );
try {
intermediateContext = intermediateContextBase.createSubcontext( intermediateContextName );
}
catch ( NamingException e ) {
throw new JndiException( "Error creating intermediate context [" + intermediateContextName + "]", e );
}
}
intermediateContextBase = intermediateContext;
name = name.getSuffix( 1 );
}
CORE_LOGGER.tracef( "Binding: %s", name );
try {
intermediateContextBase.rebind( name, value );
}
catch ( NamingException e ) {
throw new JndiException( "Error performing intermediate bind [" + name + "]", e );
}
}
CORE_LOGGER.tracef( "Bound name: %s", name );
}
@Override
public void unbind(String jndiName) {View on GitHub (pinned to fad1729dce)
Solutions
- Create the intermediate JNDI context with proper permissions or pre-create it in the naming server
- Verify the parent context exists and allows subcontext creation
When it happens
Trigger: Thrown at hibernate-core/src/main/java/org/hibernate/engine/jndi/internal/JndiServiceImpl.java:198 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of hibernate/hibernate-orm@fad1729dce (2026-08-22).
Data as JSON: /api/errors/d02337b2840a4b7c.
Report an issue: GitHub.