When something is wrong with the way the session is used (in a non thread-safe way I think), the following exception is thrown:
{code:none}java.lang.IllegalStateException: Illegal pop() with non-matching JdbcValuesSourceProcessingState{code}
This is puzzling for users, can we change it to something more user friendly?
The error is thrown by [LocalContexts#deregister|https://github.com/hibernate/hibernate-orm/blob/bdbff50dc2dc05bbb66f47edb1cf29dd6f20d33b/hibernate-core/src/main/java/org/hibernate/sql/results/spi/LoadContexts.java#L46]
It might also be helpful to have an error code for this message. It makes it easier to search it (it can happen quite easily with Hibernate Reactive). |
|