GAE Exception: ObjectManager has been closed

本文探讨了使用Google App Engine for Java和JDO时遇到的ObjectManagerhasbeenclosed异常问题。该问题可能发生在获取对象列表并调用size()方法之后关闭持久化管理器的情况下。通过提供一个具体的示例代码片段来说明问题,并指出移除size()调用可以避免此异常。
摘要由CSDN通过智能技术生成

具体不解释:http://code.google.com/p/datanucleus-appengine/issues/detail?id=24

 

Root cause:
org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

Are you using Google App Engine for java and JDO?


If you ask for a list of something you might have to call the method size(). (studip i know)

The code below would throw org.datanucleus.exceptions.NucleusUserException: "Object Manager has been closed" if we removed the call to size().

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值