static and transient members dont get serialized.
so you have to install log4j on the serverside.
wenn the object is deserilized on the serverside the static Logger logger
get initialized.
"thomassaxtoft"
<t.saxtoft@sondags An: [EMAIL PROTECTED]
avisen.dk> Kopie:
Thema: Problem with Logger and
serialization
09.08.02 11:32
Bitte antworten an
"Log4J Users List"
Hi!
I have a class, UnitedPosting, which is serializable. It contains a logger:
static Logger logger = Logger.getLogger(UnitedPosting.class);
My problem is now that passing the object from the client to server does
not work. I thought that making the Logger static should keep the object
serializable. I have also tried transient instead of static with the same
result.
I get no kind of error messages from the server (Orion). It just returns
without doing anything after the call from the client, and the client
continues as if everything was perfect.
When I uncomment the logger field everything works fine, but I have no
logger.
I appreciate any kind of help.
Thomas
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]
>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>