dimanche 1 mars 2015

Spring + hibrnate = getting error while creating session fectory

I am using hibernate with spring. I am getting following error while calling getCurrentSession method



protected Session getCurrentSession(){
return getSessionFactory().openSession();
}


Error:



java.lang.StackOverflowError
org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.<init> (JdbcCoordinatorImpl.java:97)
org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl.<init>(TransactionCoordinatorImpl.java:87)
org.hibernate.internal.SessionImpl.<init>(SessionImpl.java:254)
org.hibernate.internal.SessionFactoryImpl$SessionBuilderImpl.openSession(SessionFactoryImpl.java:1609)
org.hibernate.internal.SessionFactoryImpl.openSession(SessionFactoryImpl.java:973)


I have searched alot and check all answer given on stackoverflow but not able to solve problem :( can any one help me why I am facing such error.


Aucun commentaire:

Enregistrer un commentaire