Defer EntityManager flushing and clearing in JpaPagingItemReader [BATCH-1110] · Issue #2465 · spring-projects/spring-batch · GitHub
java.lang.IllegalStateException: Session/EntityManager is closed · Issue #1073 · hibernate/hibernate-reactive · GitHub
Hibernate error "Session/EntityManager is closed" when a query is reused · Issue #28829 · spring-projects/spring-framework · GitHub
![spring - Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException - Stack Overflow spring - Could not open JPA EntityManager for transaction; nested exception is java.lang.IllegalStateException - Stack Overflow](https://i.stack.imgur.com/2vces.png)