Fixes for the common issues: writes failing on PostgreSQL/MySQL, the SLF4J no-provider warning, the dialect deprecation, pool exhaustion, and the version-column migration.
Writes fail on PostgreSQL/MySQL: "Cannot commit when autoCommit is enabled"
org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled
A defect in 4.0.0–4.1.0: the JEHibernate-owned HikariCP pool did not disable autocommit, so Hibernate's commit was rejected by PostgreSQL and MySQL/MariaDB (H2 tolerated it). Every write failed on those databases with the owned pool. Fixed in 4.2.0 — upgrade. If you supply your own DataSource, make sure it is configured with autoCommit=false.
"No SLF4J providers were found" in a plugin
SLF4J(W): No SLF4J providers were found.
SLF4J(W): Defaulting to no-operation (NOP) logger implementation
Cause. Your plugin shades and relocatesorg.slf4j (for example to …remapped.org.slf4j) while bundling the slf4j API without a provider. slf4j then finds no provider under the relocated name and drops all logs. This is a shading issue, not a JEHibernate bug — slf4j-api reaches the jar transitively through the reflection scanner, so the library cannot fix a relocation that strips the provider.Fix (pick one):
Best on Paper — don't relocate org.slf4j. The server already provides slf4j-api and a Log4j2-backed provider; an un-relocated facade binds to the console. Remove the relocation rule, or exclude org.slf4j:slf4j-api from the shaded jar.
If you must relocate everything, add a provider (org.slf4j:slf4j-jdk-platform-logging or slf4j-simple) so its META-INF/services entry is relocated with it.
To silence only (you lose JEHibernate's logs), bundle slf4j-nop.
"H2Dialect does not need to be specified explicitly" (HHH90000025)
Fixed in 4.0.3 — JEHibernate no longer sets hibernate.dialect; Hibernate auto-detects it. If you still see it, something in your own config sets hibernate.dialect (or a {prefix}.dialect property); remove it and let the connection decide.
Connection pool exhausted
On 3.x this came from the old pool. 4.x uses HikariCP, owned and bounded. If you still saturate it:
Raise the ceiling: connectionPool(minIdle, maxSize) or PoolConfig.
Make sure long operations run off a small pool, and that you are not holding connections across async boundaries.
Watch it live: jeHibernate.getPoolHealth() exposes active, idle, threadsAwaiting.
If you upgraded a plugin from 3.x and still see the old message, confirm the runtime classpath actually resolves 4.x (a shaded build and a separate runtime download can disagree on the version).
Schema validation fails on the version column
Hibernate 7.2+ makes @VersionNOT NULL, and ddl-auto=update cannot add it to a populated table. Add the column with a migration instead:
Upgrading from 4.0.1/4.0.2 (nullable column):
See Migrations for the full path.
Entities or repositories not found
If scanning finds nothing, check that scanPackages(...) covers the packages holding your @Entity classes and AbstractCrudRepository subclasses. In non-shaded or test layouts, JEHibernate scans both the classloader package and its own code-source, so split output roots are handled — but the package names still have to match.
Still stuck?
Open an issue on GitHub with your JEHibernate version, database, and the full stack trace. The CHANGELOG also documents every behavioural change per release.
The internal connection pool has reached its maximum size
Schema-validation / add column version ... not null
ALTER TABLE your_table ADD COLUMN version INTEGER NOT NULL DEFAULT 0;
UPDATE your_table SET version = 0 WHERE version IS NULL;
ALTER TABLE your_table ALTER COLUMN version SET NOT NULL; -- MySQL/MariaDB: MODIFY ... NOT NULL DEFAULT 0