This content has been marked as final.
Show 3 replies
-
1. Re: Logger is Null
niox.nikospara.yahoo.com Nov 19, 2009 2:26 PM (in response to oyesiji77)Hi,
Are you sure it is the log that is null and not some other object in the same line?
Are you sure the component is always executed through Seam, so that DI takes place? (e.g. I can locate a session-scoped component and call its methods through a plain JSP... but then its dependencies would not be injected, probably resulting in NullPointerExceptions)
Is there a deterministic sequence that reproduces the error?
-
2. Re: Logger is Null
kblief.kblief.gmail.com Nov 19, 2009 9:46 PM (in response to oyesiji77)Yes, don't inject it. Create it yourself.
private static final Log log = Logging.getLog(Object.class);
-
3. Re: Logger is Null
oyesiji77 Nov 20, 2009 6:12 AM (in response to oyesiji77)
Kurt Bliefernich wrote on Nov 19, 2009 21:46:
Yes, don't inject it. Create it yourself.private static final Log log = Logging.getLog(Object.class);
Thanks it worked