users@glassfish.java.net

RE: What causes an exception loading sessions from persistent storage?

From: Wim Verreycken <wim_at_pizzastop.be>
Date: Tue, 26 Aug 2008 22:06:09 +0200

This is caused when your domain classes don't implement
Serializable. You also need a
private static final long serialVersionUID = [someuniquevalue];
in each of the classes you wish to be persistent.

Hope it helps,

Wim

-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: dinsdag 26 augustus 2008 21:53
To: users_at_glassfish.dev.java.net
Subject: What causes an exception loading sessions from persistent storage?

I have a deployed .EAR on GlassFish (Sun Java System Application Server
9.1_01). When I need to stop and start the application server, I run the
following commands in this order:

./asadmin stop-domain domain1

./asadmin start-domain domain1

When I tail -f the server.log, I receive the following entry in the log
file:

PWC2773: Exception loading sessions from persistent storage
java.lang.ClassCastException: cannot assign instance of java.lang.String to
field com.company.BasicBean.logger of type org.apache.log4j.Logger in
instance of com.company.CustomerSearchBean

I'ved googled the statement "PWC2773: Exception loading sessions from
persistent storage" in various forms, but I've not found anything related.

Oddly enough, this only happens when I start up GlassFish.

What causes an exception loading sessions from persistent storage?

Thanks,

--Todd
[Message sent by forum member 'jtp51' (jtp51)]

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net