This content has been marked as final.
Show 1 reply
-
1. Re: Seam Security 3.1 Final - Null pointer exception at AS7 startup
smurfs.smurfsturf.googlemail.com Dec 22, 2011 6:08 AM (in response to smurfs.smurfsturf.googlemail.com)Stepped back, had a cup of coffee, and figured it out.
I use interfaces and polymorphism quite a bit and had added security annotations to my interface method definitions (out of laziness I guess?). Moved the annotations to the implementing method/class and this now satisfies the annotation checks made at start-up in the SecurityExtension.class method:
protected synchronized void registerSecuredMethod(Method method, Class<\?> targetClass) { ... //lines 301-302 (Class<?> cls = targetClass; while (!cls.equals(Object.class)) { \\<- Throws NullPointerException as class expected, not interface ... } ... }
Obvious really, in hindsight...