logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Battenhouse" <anna.battenho...@cci-triad.com>
Subject Re: NotSerializableException for org.apache.log4j.Category
Date Wed, 23 Apr 2003 16:42:01 GMT
Siju -

The Logger is really meant to be stored in a static (hence automatically
transient) class member. If you must store it in an instance variable mark
it as transient and initialize it in its variable initialization expression.

- Anna

----- Original Message -----
From: "Siju Joseph" <sijukalathoor@yahoo.com>
To: <log4j-user@jakarta.apache.org>
Sent: Monday, April 21, 2003 12:18 PM
Subject: NotSerializableException for org.apache.log4j.Category


> Hi,
>
> I am using Log4j in my Session EJBs. I keep getting
> the NotSerializableException during the passivation of
> the EJBs. If any of you have faced a similar issue,
> please advise:
>
> java.io.NotSerializableException:
> org.apache.log4j.Category
>
> I have tried making it transiet variable and making it
> to null during passivation and initializing it during
> activation. Still, I was having the same issue.
>
> Thanks in advance,
> Siju
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Mime
View raw message