org.hibernate.HibernateException

No CurrentSessionContext configured!


Solutions on the web424

Solution icon of spring
via Spring JIRA by Erwin Vervaet, 1 year ago
No CurrentSessionContext configured!

Solution icon of stackoverflow
No CurrentSessionContext configured!

Solution icon of stackoverflow
No CurrentSessionContext configured!

Solution icon of web
No CurrentSessionContext configured!

Solution icon of web
No CurrentSessionContext configured!

Solution icon of web
No CurrentSessionContext configured!

Solution icon of coderanch
via Coderanch by VenkataPrasad Regula, 8 months ago
No CurrentSessionContext configured!

Solution icon of spring
via Spring JIRA by Erwin Vervaet, 1 year ago
No CurrentSessionContext configured!

Solution icon of stackoverflow
No CurrentSessionContext configured!

Solution icon of stackoverflow
No CurrentSessionContext configured!

Stack trace

  • org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:540) at com.wideplay.warp.hibernate.HibernateLocalTxnInterceptor.invoke(UnknownSource) at com.google.inject.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:66) at com.google.inject.InterceptorStackCallback.intercept(InterceptorStackCallback.java:45) at com.jdkcn.guice.service.impl.EntryServiceHibernateImpl$$EnhancerByGuice$$ec2fe298.saveEntry(<generated>) at com.jdkcn.guice.service.EntryServiceHibernateTest.testSave(EntryServiceHibernateTest.java:60) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59) at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98) at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87) at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77) at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42) at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88) at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51) at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44) at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago