Attempting to execute an operation on a closed EntityManagerFactory. By Oll July 28, 2017 Just a simple JPA call .. entityManager.find(Product.class, product.getId()); .. ended with a IllegalStateException. I used Glassfish / Payara as application server. Just restarting the server / domain fixed my issue. Read more