how to serialize session attribute?
807607Nov 8 2006 — edited Nov 8 2006iam doing on web application project.when i run,iam getting below error. Iam using tomcat5.5.
when iam debugging project,it is throwing exception at:
session.setAttribute("operator",operator);
plz..help regarding how to serialize that session attribute?
thankingu...vinod.
and the error trace is:
java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1255)
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1233)
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
servlets.PreRegGatewayServlet.processRequest(PreRegGatewayServlet.java:82)
servlets.PreRegGatewayServlet.doPost(PreRegGatewayServlet.java:507)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)