same here (me too). I don't get NPE in @PostConstruct, I get NPE in user bean 'after' @PostConstruct. FYI, my @PostConstruct does set some bean members/attributes to 'null'. I don't think it is a tomee/owb bug; i think this is app bug that requires developers to prevent/avoid NPE's a bit more...now. Jose's response gives me that assumption.
Honestly, I am willing (and I think it is best) to clean-up-and-prevent all NPE's in my app/scenario. I did some (initial) cleaning-up-and-preventing NPE in my CDI @SessionScoped user bean, and user can log just fine, but there is at least one more NPE that I need to clean up. You know i love tomee (and OWB 1.2.x), so I'm willing to 'migrate' my app to the new version of OWB (1.2.1) that is in latest tomee 1.6.0 snapshot. :) for now, i'll stop the noise and proceed (as mentioned above). :) On Wed, May 15, 2013 at 10:13 AM, Romain Manni-Bucau <[email protected]>wrote: > FYI: https://gist.github.com/rmannibucau/0dda8dfac67a5ef13118 i never get > NPE in @PostConstruct > > > > *Romain Manni-Bucau* > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > *Github: https://github.com/rmannibucau* > > > > 2013/5/15 Romain Manni-Bucau <[email protected]> > > > guys, please show us it, maybe that's a bug and if we don't find it > before > > OWB vote (today :s) it will be in for some time > > > > *Romain Manni-Bucau* > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > > *Blog: **http://rmannibucau.wordpress.com/*< > http://rmannibucau.wordpress.com/> > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > > *Github: https://github.com/rmannibucau* > > > > > > > > 2013/5/15 Howard W. Smith, Jr. <[email protected]> > > > > Interesting, so it seems as though you had to 'tighten up' your > >> @PostConstruct, too, like I did. > >> > >> The latest tomee 1.6.0 snapshot requires me to make sure all (CDI > >> @SessionScoped) 'user bean' attributes are 'not' null, when user login > to > >> new/latest tomee...after user logged out from previous tomee snapshot. > >> > >> Previous tomee snapshot versions...did 'not' force me to handle > >> NullPointerExceptions in my CDI @SessionScoped user bean. > >> > >> > >> > >> On Wed, May 15, 2013 at 9:49 AM, José Luis Cetina <[email protected] > >> >wrote: > >> > >> > Im testing in development, apparently i have an issue with CODI (i > cant > >> > confirm yet) but for rest i saw a strange behaviour in just 1 > >> postconstruct > >> > but i could fix changing some lines in mi code. I didnt up the last > >> tomee > >> > in production because i have to many users this entire week and i dont > >> want > >> > have any risk. I will still testing and in the next week i will use in > >> > production. > >> > If i see something strange i will let you know here. > >> > > >> > Debug your postconstruct and see if something get wrong. Because in > >> mine i > >> > didnt get any exception and i had there a nullpointer apparently. > >> > El 15/05/2013 08:33, "Howard W. Smith, Jr." <[email protected]> > >> > escribió: > >> > > >> > > Jose, what was/were your test results with latest tomee 1.6.0 > (since > >> you > >> > > deploy ears)? > >> > > > >> > > > >> > > > >> > > On Tue, May 14, 2013 at 1:07 PM, José Luis Cetina < > >> [email protected] > >> > > >wrote: > >> > > > >> > > > I will test today. I deploys ears > >> > > > El 14/05/2013 11:53, "Romain Manni-Bucau" <[email protected]> > >> > > > escribió: > >> > > > > >> > > > > it should only affect ears, a lot of users only deploy wars > >> ;)...but > >> > > > others > >> > > > > can test > >> > > > > > >> > > > > *Romain Manni-Bucau* > >> > > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > >> > > > > *Blog: **http://rmannibucau.wordpress.com/*< > >> > > > > http://rmannibucau.wordpress.com/> > >> > > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > >> > > > > *Github: https://github.com/rmannibucau* > >> > > > > > >> > > > > > >> > > > > > >> > > > > 2013/5/14 Howard W. Smith, Jr. <[email protected]> > >> > > > > > >> > > > > > when you talk like that, it sounds like 'all' tomee > >> community/users > >> > > > > should > >> > > > > > test. :) > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > On Tue, May 14, 2013 at 12:46 PM, Romain Manni-Bucau > >> > > > > > <[email protected]>wrote: > >> > > > > > > >> > > > > > > yes, > >> > > > > > > > >> > > > > > > i hacked on the issue too (there was some real issues) so > >> > crossing > >> > > > > > fingers > >> > > > > > > to not have broken something else but it should be better > >> > > > > > > > >> > > > > > > *Romain Manni-Bucau* > >> > > > > > > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>* > >> > > > > > > *Blog: **http://rmannibucau.wordpress.com/*< > >> > > > > > > http://rmannibucau.wordpress.com/> > >> > > > > > > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* > >> > > > > > > *Github: https://github.com/rmannibucau* > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > 2013/5/14 hwaastad <[email protected]> > >> > > > > > > > >> > > > > > > > Hi, > >> > > > > > > > I found out my problem. My EAR has skinny wars and by > >> accident > >> > > the > >> > > > > > > ear/lib > >> > > > > > > > contained a myface-api jar. > >> > > > > > > > Somehow this worked earlier.... > >> > > > > > > > > >> > > > > > > > Well, sorry for making such a fuzz due to my own mistakes > >> :-) > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > -- > >> > > > > > > > View this message in context: > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > http://openejb.979440.n4.nabble.com/Last-1-6-0-Snapshot-exception-tp4662940p4662945.html > >> > > > > > > > Sent from the OpenEJB User mailing list archive at > >> Nabble.com. > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > > > > >
