title: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException:
body: <p>I am new to Spring MVC framework. I am trying to retrieve User details using Hibernate to return object in my Spring project. I am getting the following error:</p>
  
  <blockquote>
    <p>WARN :
    org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
    - Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException:
    Could not write content: No serializer found for class
    org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no
    properties discovered to create BeanSerializer (to avoid exception,
    disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference
    chain:
    com.ppts.mschef.util.api.ApiResponse["object"]->com.ppts.mschef.model.Mischef["user"]->com.ppts.mschef.model.User_$$_jvstb3_6["handler"]);
    nested exception is
    com.fasterxml.jackson.databind.JsonMappingException: No serializer
    found for class
    org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no
    properties discovered to create BeanSerializer (to avoid exception,
    disable SerializationFeature.FAIL_ON_EMPTY_BEANS) ) (through reference
    chain:
    com.ppts.mschef.util.api.ApiResponse["object"]->com.ppts.mschef.model.Mischef["user"]->com.ppts.mschef.model.User_$$_jvstb3_6["handler"])</p>
  </blockquote>
  
  <p>Can anyone tell the solution for this error??</p>