List of usage examples for org.springframework.http.converter HttpMessageNotWritableException printStackTrace
public void printStackTrace()
From source file:com.dbsvg.controllers.JsonView.java
public ModelAndView Render(Object model, HttpServletResponse response) { MediaType jsonMimeType = MediaType.APPLICATION_JSON; try {//from ww w . j a v a 2 s . c o m jsonConverter.write(model, jsonMimeType, new ServletServerHttpResponse(response)); } catch (HttpMessageNotWritableException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return null; }