I ran into this same error. I discovered the cause in my case. My experience may help someone else.
I was calling
ServiceRegistryBuilder.destroy() in my
sessionFactoryCreatedmethod rather than my
Basically, I destroyed my service registry then tried to get a new session, and this makes Hibernate produce the misleading error message.
Therefore, I suggest if people get this error, check they are not closing their session or registry and then trying to get it again.