Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to serialize session attribute?

807607Nov 8 2006 — edited Nov 8 2006
iam 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)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2006
Added on Nov 8 2006
17 comments
5,028 views