Today I ran into this problem. I think the eclipse tells me that he wants to solve something, but does not know what problem and how. And here it is:
SessionFactory factory; try { factory = new Configuration().configure().buildSessionFactory(); } catch (Throwable ex) { System.err.println("Failed to create sessionFactory object." + ex); throw new ExceptionInInitializerError(ex); }
Mubby it helps. In my case, it was exception handling.
source share