エラー:
Error 500: null
Servlet:
URI:
Exception Message: failed to lazily initialize a collection of role: Student.lockers, no session or session was closed
Caused by: Error executing tag <g:render>: Error executing tag <g:link>: failed to lazily initialize a collection of role: com.itzik.User.carts, no session or session was closed at grails-app/views/shared/_navigation.gsp:18 at grails-app/views/layouts/home.gsp:26
だから私には学生がいます(たくさんのロッカーがあります)。これで、学生がセキュリティサービスにログインすると、セッションへの参加が処理されます。次に、メインコントローラーがアクティブなロッカーを持っているかどうかを確認します。そうでない場合は、それらのために作成します。今、何らかの理由で、それは学生–>ロッカーの関係を窒息させています。