-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
|> From: MassimoH [mailto:[EMAIL PROTECTED]
|> Subject: NotSerializableException: StandardSessionFacade
|>
|> I've inherited an legacy Java application and I'm getting
|> this error on startup.
|>
|> - IOException while loading persisted sessions:
|> java.io.WriteAbortedException: writing aborted;
|> java.io.NotSerializableException:
|
| It seems odd to get a WriteAbortedException during startup, since the
| session is being read back in.  Regardless, something stored in the
| session is not serializable, so it cannot be restored - which is also
| odd, since it must have been serializable in order to have been written
| out.

Actually, this is possible. You can have an object implement
Serializable and get it to properly serialize. But, if you don't have a
no-arg constructor for that class, you're out of luck when you try to
read it back in. I used to have a similar problem (slightly different
exception maybe) with an old webspp. So,it /is/ possible to have a
serializable yet non-deserializable object.

| Clearing out Tomcat's work directory to get rid of the persisted
| sessions should let you get through startup.

This shouldn't be a fatal error. All Tomcat versions I have used will
simply give-up restoring sessions and continue starting up.

The OP didn't post the entire stack trace, so it's tough to tell what's
really going on. Massimo, can you re-post the stack trace in its entirety?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgIig4ACgkQ9CaO5/Lv0PAS7ACgjd689XbjvcG7bUwN1CK1NPko
0OgAoLFUhfkeY0bvE74YvAZbbZYAs9Qk
=GWJW
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to