Cumulus4j has a ConnectionFactory implementation that is prone to breaking, due to hanging on to PMs after they are closed. A simple example is by using detachOnClose and when a user txn closes the low-level PM is closed. But when the user PM/EM is closed after that it tries to load more fields from the low-level datastore and gets the low-level PM that is now closed. Bang
Fixed in SVN trunk