![]() |
#2
林月儿2015-09-04 22:07
|
第一次查询所有数据没问题,连着第二次按照id查询就报错.
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
File: org/springframework/orm/hibernate3/SpringSessionContext.java
Line number: 63
Stacktraces
org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:622)
com.ffs.dao.impl.BaseDaoImpl.getSession(BaseDaoImpl.java:34)
com.ffs.dao.impl.BaseDaoImpl.findById(BaseDaoImpl.java:66)
com.ffs.service.impl.CategoryServiceImpl.findAllbyid(CategoryServiceImpl.java:33)
com.ffs.action.CategoryAction.findbyid(CategoryAction.java:57)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:453)
com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:292)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:255)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)