Hi,
I am getting this exception while deploying my web application. It is occuring for the attributes which I have set for the session. Here is the method which sets the session attribues :----
The attributes for which I am getting this exception are OffshoreResourc eList,ClientRes ourceList,WorkP ackageDetailsLi st. All these are Vectors.While throwing exception, this warning is comin:---
How I can remove this exception.
Thanks and regards,
madhoriya
I am getting this exception while deploying my web application. It is occuring for the attributes which I have set for the session. Here is the method which sets the session attribues :----
Code:
protected void showIndexPage(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
PrintWriter out = response.getWriter();
HttpSession session = request.getSession(true);
response.setContentType("text/html;charset=UTF-8");
System.out.println("Inside showIndexPage() method");
DAOFactory mysqlFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL);
System.out.println("below DAOFactory object------------->>");
OffshoreResourceDAO offshoreResourceDAO = mysqlFactory.getOffshoreResourceDAO();
Vector offshoreResourceVOList = offshoreResourceDAO.getResource();
ClientResourceDAO clientResourceDAO = mysqlFactory.getClientResourceDAO();
Vector clientResourceVOList = clientResourceDAO.getClientResource();
WorkPackageDetailsDAO workPackageDetailsDAO = mysqlFactory.getWorkPackageDetailsDAO();
Vector workPackageDetailsList = workPackageDetailsDAO.getWorkPackageDetails();
System.out.println("WorkPackageDetails are:"+workPackageDetailsList);
Vector weekList = weekFinder();
System.out.println("Week List is:"+weekList);
session.setAttribute("OffshoreResourceList",offshoreResourceVOList);
session.setAttribute("ClientResourceList", clientResourceVOList);
session.setAttribute("WorkPackageDetailsList", workPackageDetailsList);
session.setAttribute("WeekList", weekList);
request.getRequestDispatcher("index.jsp").forward(request,response);
out.close();
}
Code:
WARNING: Cannot serialize session attribute OffshoreResourceList for session 5F8A4B888C40A6D0C72FB2B67A60A641
Thanks and regards,
madhoriya
Comment