Not the case for the OP but, if you're encountering this error with JPA queries, you can add a JOIN FETCH on columns annotated as lazy. This will allow Spring to fetch them eagerly.