You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jürgen Lind <Ju...@partner.bmw.de> on 2002/04/15 16:10:58 UTC
Resource access fails after serialization
Hi,
I encountered a resource access problem when I tried to make our application
cluster-safe, i.e. I added serialization markers to all classes of which
objects are stored in the session. To test out the proper serialization and
de-serialization, I added some code to my mock test-cases that writes
the required data to a file and imediatly restores it from that file again.
For some purpose, I also have to serialize the current action. Now, after
I have restored the serialized information from disk, the getResourceAsStream
method of my action class throws a NPE.
Apparently, the servlet information is not serialized and can thus not be
restored. Is this a known issue and are there solutions for the problem?
I. e. wow can I access resources after a serialization of the Action?
I have already search the mailing list and the web, but I could not find
anythink on the topic.
Thanks in advance,
Jürgen
--
Dr. Jürgen Lind
iteratec GmbH Fon: +49 (0)89 614551-44
Inselkammerstrasse 4 Fax: +49 (0)89 614551-10
82008 Unterhaching Web: www.iteratec.de
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>