Re: NPE when calling BeanManagerImpl.isNormalScope(component.getScope())

2011-03-24 Thread Shawn Jiang
Thanks, David ! On Mon, Mar 21, 2011 at 1:24 PM, David Blevins david.blev...@gmail.comwrote: In OpenEJB we have OWB integrated 100% of the time. Primarily so that scenarios like this don't occur. I.e. my app worked fine and then I turned on CDI and all these unrelated things break. Shawn,

NPE when calling BeanManagerImpl.isNormalScope(component.getScope())

2011-03-20 Thread Shawn Jiang
Could anyone shed some light on following issue ? I got a NPE when calling BeanManagerImpl.isNormalScope(null) when constructing a MDB instance in a non-webbean ejb module. From the stacktrace, there's no chance the component.getScope() could return a non-null value. I'm wondering why there's

Re: NPE when calling BeanManagerImpl.isNormalScope(component.getScope())

2011-03-20 Thread Joseph Bergmark
I might be missing the point, but why are we calling OWB at all if this is a non-cdi ejb module (which I assume means no beans.xml)? Sincerely, Joe On Mon, Mar 21, 2011 at 12:05 AM, Shawn Jiang genspr...@gmail.com wrote: Could anyone shed some light on following issue ? I got a NPE when

Re: NPE when calling BeanManagerImpl.isNormalScope(component.getScope())

2011-03-20 Thread David Blevins
In OpenEJB we have OWB integrated 100% of the time. Primarily so that scenarios like this don't occur. I.e. my app worked fine and then I turned on CDI and all these unrelated things break. Shawn, I'm hammering on that code now on the OpenEJB end. I've checked in a temporary work around