UserAcctBean user = (UserAcctBean) session.getAttribute("currentuser"); String loginID = user.getLoginID();
Just a wild guess, but maybe currentuser attribute is not set yet,because the session has just been created. So you are getting a null pointer exception when you call user.getLoginID. You could try putting a try-catch block for NullPointer around that call, and see if this is the reason.
The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny GillTweets
Joined: Jul 15, 2003
Thank you so much!
So simple...I remember that thought crossing my mind when I was first typing that line, but I totally forgot that later on. Details, details... :roll:
No worries mate. As they say, two pairs of eyes are always better than one when hunting for bugs. I was wondering though, whether it is a part of the specification that if an exception is thrown in one of these methods, the container must catch it and just continue.