During activation of a passivated bean I get the following exception. My code:
| @Logger | private Log log; | | @PostActivation | public void activate() { | log.info("activating bean"); | } | The exception: | Caused by: java.lang.NullPointerException | at org.jboss.seam.log.LogImpl.isInfoEnabled(LogImpl.java:45) | at org.jboss.seam.log.LogImpl.info(LogImpl.java:92) | at com.vicor.distributedcapture.session.PackageAction.activate(PackageAction.java:728) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:159) | at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:139) | Am I not allowed to have code like that or is this an issues with the seam logger? Thanks. Eric View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991119#3991119 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991119 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user