svadu> Thanks but no. That seems to be only when you are accessing injected components
in constructors. Which would make sense since those objects cant be injected before
instantiation of the class.
Like .. here is a simple example that doesnt work -
@Name("joeBean")
| @Stateless
| public class JoeBeanImpl implements JoeBean {
|
| @Logger
| Log log;
|
| public void test() {
| log.info("Test this shiznit");
| }
| }
produces stack trace -
(like 17 is the log.debug)
| Caused by: java.lang.NullPointerException
| at session.JoeBeanImpl.test(JoeBeanImpl.java:17)
| 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| at
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:101)
| at
org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerIntercep
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123529#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...