org.hibernate.HibernateException: No CurrentSessionContext configured!

spring.io | 5 months ago
  1. 0

    Hibernate 3.2 Persistent Lifecycle annotations not work - Spring Forum

    spring.io | 5 months ago
    org.hibernate.HibernateException: No CurrentSessionContext configured!
  2. 0

    working with a map of hibernate session factories in a spring transaction system

    Stack Overflow | 5 years ago | scphantm
    org.hibernate.HibernateException: No CurrentSessionContext configured!
  3. 0

    How to pass (properly) a Java Object from a Servlet to a JSP page

    Stack Overflow | 6 years ago | Vincent
    org.hibernate.HibernateException: No CurrentSessionContext configured!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    hibernate JNDI error

    Stack Overflow | 6 years ago | zeusakm
    org.hibernate.HibernateException: No CurrentSessionContext configured!
  6. 0

    hibernate no currentSessionContext configured - log4j at fault?

    Stack Overflow | 3 years ago | Michael DiLeo
    org.hibernate.HibernateException: No CurrentSessionContext configured!

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.HibernateException

      No CurrentSessionContext configured!

      at org.hibernate.impl.SessionFactoryImpl.getCurrentSession()
    2. Hibernate
      SessionFactoryImpl.getCurrentSession
      1. org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:693)
      1 frame
    3. com.myapp.dao
      SmsDaoImpl.saveSms
      1. com.myapp.dao.hibernate.UserDaoImpl.getUserByLoginAndPasswd(UserDaoImpl.java:78)
      2. com.myapp.dao.hibernate.SmsDaoImpl.saveSms(SmsDaoImpl.java:82)
      2 frames
    4. com.myapp.service
      SmsService$$FastClassByCGLIB$$e3d31140.invoke
      1. com.myapp.service.SmsService.saveSms(SmsService.java:20)
      2. com.myapp.service.SmsService$$FastClassByCGLIB$$e3d31140.invoke(<generated>)
      2 frames
    5. IDEA
      MethodProxy.invoke
      1. net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191)
      1 frame
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:688)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      2 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      1 frame
    8. Spring AOP
      Cglib2AopProxy$DynamicAdvisedInterceptor.intercept
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
      2 frames
    9. com.myapp.service
      SmsServiceTest.testSaveSms
      1. com.myapp.service.SmsService$$EnhancerByCGLIB$$56318952.saveSms(<generated>)
      2. com.myapp.service.SmsServiceTest.testSaveSms(SmsServiceTest.java:49)
      2 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. JUnit
      InvokeMethod.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      4 frames
    12. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
      2. org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
      3. org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
      4. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
      4 frames
    13. JUnit
      ParentRunner$2.evaluate
      1. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
      2. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      3. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      4. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      5. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      6. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      6 frames
    14. Spring TestContext
      RunAfterTestClassCallbacks.evaluate
      1. org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
      2. org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
      2 frames
    15. JUnit
      ParentRunner.run
      1. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      1 frame
    16. Spring TestContext
      SpringJUnit4ClassRunner.run
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
      1 frame
    17. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
      1 frame
    18. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames