Hi all,
I'm trying to build my own security advice for manager calls. For this I'm
using something like this:
> SecurityContext context = SecurityContextHolder.getContext();
> log.debug("Checking to see if " +
context.getAuthentication().getPrincipal() + " has access to " +
method.getName() + " on " + target.toString());
The problem is that, strangely, sometimes the authentication is null causing
a nullpointerexception. Even stranger is that it works for some calls and
for some it doesn't, all while processing a single request.
Any idea where to go?
Regards
Chris
-----
Christian Decker
http://blog.snyke.net
--
View this message in context:
http://www.nabble.com/SecurityContext-empty-in-Advices-tp21370878s2369p21370878.html
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]