users@glassfish.java.net

Question about "persistence" - Web Apps

From: <glassfish_at_javadesktop.org>
Date: Sun, 28 Jun 2009 09:28:56 PDT

We have an application that consists of a remote stateless session bean (EJB) and several JSF (Visual Web App) pages. There is also a managed session backing bean. The application is running on Glassfish V2.

We are seeing this error in our logs:

[#|2009-06-25T14:08:15.448-0600|SEVERE|sun-appserver9.1|org.apache.catalina.session.ManagerBase|_ThreadID=22;_ThreadName=pool-1-thread-20;_RequestID
=3f8f4d90-f1fc-4716-9633-85d966f219e3;|PWC2773: Exception loading sessions from persistent storage
java.lang.ClassCastException: cannot assign instance of java.lang.String to field edu.utah.acs.student.finaidawardletterejb.AwardLetter.selectedLend
er of type edu.utah.acs.student.finaidawardletterejb.Lender in instance of edu.utah.acs.student.finaidawardletterejb.AwardLetter
at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2004)

The "AwardLetter" is an object held in the managed session backing bean.

I just don't understand why this object would be persisted. Can someone explain what is going on or point me to a link that describes the behavior?

Thanks,

Bryan
[Message sent by forum member 'bryanut' (bryanut)]

http://forums.java.net/jive/thread.jspa?messageID=353318