Problem with: 'Could not write JSON: failed to lazily initialize a collection of role' #741
-
I explored the API using Postman and JWT, as explained here. When trying to get all users or user with id "1", I got this lazy initialization error. I also tested user password changing, which returned the same lazy initialization error, but in practice the operation of changing the password worked (I was able to login with the new password, using the application's web interface). I looked over the code ("UserController.java") and all the methods mapped to the URLs I tested with Postman involve initializing users. In the case of password changing (handled by a method that returns a user), the user is created after password is changed, and that is why the changing operation succeeds, although Java exceptions are still thrown. The full response is this one:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for bringing this up, I've reproduced the error. I've created a bug issue for this: #742 |
Beta Was this translation helpful? Give feedback.
Thanks for bringing this up, I've reproduced the error. I've created a bug issue for this: #742