`
asdf93945
  • 浏览: 3217 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

并发访问量大时抛出的异常,是 hibernate 问题 , 还是 xfire 是问题?

阅读更多
使用 hibernate + xfire 做 web service 时, 本地测试,或客户集成测试都没有问题, 当并发访问量大时,会出现奇怪的异常(普通的测试没有问题),如:

Fault: java.lang.NullPointerException
No row with the given identifier exists: [degui.chen.tag.Tag#246]
a different object with the same identifier value was already associated with the session: [degui.chen.tag.Tag#187]


分享到:
评论
1 楼 gty509 2009-04-28  
你的问题是把一个实体加载了两次。比如User。如果有get(User.class,1)后,你又有get(User.class,1)就会报错。因为id相同。检查你的dao层。

相关推荐

Global site tag (gtag.js) - Google Analytics