Caused by:org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[cn.ipanel.itd.asset.entity.User

问题描述:

Caused by:org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[cn.ipanel.itd.asset.entity.UserView2#1602]
\x05at org.hibernate.impl.SessionFactoryImpl$1.handleEntityNotFound(SessionFactoryImpl.java:377)
\x05at org.hibernate.proxy.AbstractLazyInitializer.checkTargetState(AbstractLazyInitializer.java:79)
\x05at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:68)
\x05at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111)
\x05at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150)
\x05at cn.ipanel.itd.asset.entity.UserView2$$EnhancerByCGLIB$$7314bb97.getToDay()
\x05at sun.reflect.GeneratedMethodAccessor321.invoke(Unknown Source)
\x05at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
\x05at java.lang.reflect.Method.invoke(Method.java:585)
\x05at org.directwebremoting.impl.PropertyDescriptorProperty.getValue(PropertyDescriptorProperty.java:62)
\x05...36 more

楼主用了opensessioninview机制吗,刷新出现这个错误,莫非你页面还有查询数据库的代码?!一般view,control,Po三层分离,用onpensessioninview不会出现这种问题_____________________________________________hibernate...