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.pr

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 14:01:34
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.pr

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.pr
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

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.pr
楼主用了opensessioninview机制吗,
刷新出现这个错误,莫非你页面还有查询数据库的代码?!
一般view,control,Po三层分离,用onpensessioninview不会出现这种问题
_____________________________________________
hibernate二级缓存没有用吗,你删除怎么删的是
先查询到某个po然后删的吧
Po po=dao.findby(id);
dao.delete(po);
或者用session直接删除po吧,那么应该不会有错,
然后你没有用spring的hibernateTempter话,应该用一个
Transcation ta=session.beginTranscation();
Po po=dao.findby(id);
dao.delete(po);
ta.commit();
事务把删除事务包装起来,再不行楼主
do?showlist中的代码贴出来或者发给我我可以帮你看看