ReflectHelper.classForName() blocking in Hibernate
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 7
- Hibernate 5
Issue
- Code in
ReflectHelper.classForName()may generate exceptions when attempting to load HQL tokens which are not classes - Blocking to create stack traces for
ClassNotFoundExceptionmay impact performance in some cases:- In cases where entity manager factories or session factories are recreated frequently
- In cases where there are thousands of distinct HQL queries
Resolution
This issue is resolved as part of:
Root Cause
- This is a known defect (Content from hibernate.atlassian.net is not included.HHH-4959).
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.