[jboss-user] [JBoss Seam] - Seam Logger return NullPointerException

terryb do-not-reply at jboss.com
Mon Sep 17 01:03:38 EDT 2007


When using seam logger in my class, it throws NullPointerException. But similar code works in Authenticator class that seam-gen creates.

import org.jboss.seam.annotations.Logger;
import org.jboss.seam.log.Log;
...

@Name("activityLogger")
public class ActivityLogger {

 @Logger
 Log seamLogger;

 ...


 public void log() {

 OrgUserActivityLogHome orgUserActivityLogHome = new OrgUserActivityLogHome();
 ...
 
 seamLogger.info("seam logger test #0", "ok");  <-- line throwing exception 

...	
 
 }
}





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084877#4084877

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084877



More information about the jboss-user mailing list