java.lang.IllegalStateException: Either class [et....
# questions
s
java.lang.IllegalStateException: Either class [et.user.plugin.User] is not a domain class or GORM has not been initialized correctly or has already been shutdown. Ensure GORM is loaded and configured correctly before calling any methods on a GORM entity. Getting this error randomly in one of multiple instances of server. Server will be active and running, then later will give this error. grailsVersion=5.3.5 Anyone faced this issue ?
👍 1
p
This error indicates that GORM is either not initialized correctly or has been shut down when your application tries to access the domain class. This can happen for various reasons, particularly when doing something in an event-based system (Queue) or a job. It would be helpful to find out the exact piece of code where this might happen and the flow of code execution. The session might be already been closed by the time the GORM operation is executed,