Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Exception with JSON serialization in ResponseBodyAdviceChain when debug logging is on [SPR-12616] #17217
During serialization bean with lazy initialization hibernate collection I use https://github.com/FasterXML/jackson-datatype-hibernate (Hibernate4Module).
It works OK, but when I set debug logging level I have org.hibernate.LazyInitializationException' exception. Cannot evaluate ...
logger.debug("Invoking ResponseBodyAdvice chain for body=" + body);
Here it trying to make toString entity with lazy initialization.