11:02 "http-bio-8080"-exec-6 62026 ERROR StatusDao:141 [handleException] - No row with the given identifier exists:[org.bjtu.wip.thirdparty.weibo4j.model.User#3478430760]org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[o

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 10:35:18
11:02

11:02 "http-bio-8080"-exec-6 62026 ERROR StatusDao:141 [handleException] - No row with the given identifier exists:[org.bjtu.wip.thirdparty.weibo4j.model.User#3478430760]org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[o
11:02 "http-bio-8080"-exec-6 62026 ERROR StatusDao:141 [handleException] - No row with the given identifier exists:[org.bjtu.wip.thirdparty.weibo4j.model.User#3478430760]
org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[org.bjtu.wip.thirdparty.weibo4j.model.User#3478430760]
这个是什么错误?应该怎么改正?

11:02 "http-bio-8080"-exec-6 62026 ERROR StatusDao:141 [handleException] - No row with the given identifier exists:[org.bjtu.wip.thirdparty.weibo4j.model.User#3478430760]org.hibernate.ObjectNotFoundException:No row with the given identifier exists:[o
这个和我遇到过的Hibernate错误差不多,原因是 你的数据库里面有脏数据,
即:外键关联的对应主键内容不存在,就像报的这个错误,查询出的User没有了引用,
你可以具体自己用一个打印,看看是哪个,下面的问题你自己应该能够解决了.