Google App Engine - org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

后端 未结 3 1014
故里飘歌
故里飘歌 2021-01-18 09:58

Why does the code below result in org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed? The exception appears to be thrown at query.getResultList(

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 10:35

    Adding @Transactional to the method prevents the object manager from closing. However, I'm not sure why it closes without this.

提交回复
热议问题