AppEngine datastore: “Object with id … is managed by a different Object Manager”

后端 未结 3 1502
灰色年华
灰色年华 2020-12-10 13:50

I\'m using the Google AppEngine, with Java. When I use some datastore features, I\'m getting an error message:

Object with id \"edvaltt.Teacher@64064b\" i         


        
3条回答
  •  死守一世寂寞
    2020-12-10 14:00

    As illustrated in this ticket, shouldn't you close the pm (PersistenceManager)?

    } finally {
        tx.commit();
        pm.close();
    }
    

提交回复
热议问题