users@glassfish.java.net

RE: Question about "persistence" - Web Apps

From: Martin Gainty <mgainty_at_hotmail.com>
Date: Sun, 28 Jun 2009 14:09:59 -0400

the class edu.utah.acs.student.finaidawardletterejb.AwardLetter.selectedLender
needs to implement Serializable
You also need a private static final long serialVersionUID = [someuniquevalue];

Viel Gluck,
Martin
______________________________________________
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.






> Date: Sun, 28 Jun 2009 09:28:56 -0700
> From: glassfish_at_javadesktop.org
> To: users_at_glassfish.dev.java.net
> Subject: Question about "persistence" - Web Apps
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009