次のコード行には例外があります。
def order = new PostOrder(pOrder: "post", posts: status, children: lookupPerson().children)
lookupPerson().children は、異なる ID を持つ 2 つの Child インスタンスのセットを提供します
完全な例外は次のとおりです。
org.hibernate.HibernateException: Found shared references to a collection: com.fyp.timeline.PostOrder.children
at com.fyp.timeline.ProfileController$$ENwi3LDE.updateStatus(ProfileController.groovy:134)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
私は本当にこれにこだわっています。主な理由は、以前は機能していて、ランダムに停止したためです。MySql と新しいデータベースに新しいユーザーを追加しましたが、これには影響しません。