When you call Session.getTenantIdentifier() on a Session without active transaction, HibernateException is thrown with message "getTenantIdentifier is not valid without active transaction".
It causes problems when transaction is finished, and it is needed to perform session validation in multi-tenant environment.
As an attachment, I am providing a patch.
Hibernate ORM 4.1.7, MySQL 5.5