try{
} catch (DataAccessException dae){
dae.printStackTrace();
response.setContentType("text/x-json;charset=UTF-8");
response.getWriter().write(dae.getMessage());
response.flushBuffer();
response.getWriter().close();
} catch (Exception e){
e.printStackTrace();
response.setContentType("text/x-json;charset=UTF-8");
response.getWriter().write(e.getMessage());
response.flushBuffer();
response.getWriter().close();
}