java.lang.IllegalAccessException: Class ....utils.ReflectUtils can not access a member of class weblogic.servlet.internal.session.SessionData with modifiers "public"
(ReflectUtils is our own reflection helper class that simply finds the right method and invokes it via reflection - it's well-used elsewhere without problems).
I've not had a problem with reflection like this before - why would I not be able to invoke a public method? I modified ReflectUtils to explicitly set the method accessibility as follows, but still no joy:
boolean access = method.isAccessible();
Object ret = method.invoke(obj, methodArgs);
I can only assume that Weblogic has placed some kind of security manager in the way - but then I'd expect a security exception not an illegal access.
The customer is running 8.1SP2 with Sun JDK 1.4.1_05 in a clustered environment. The execution thread is running in an HttpSessionBindingListener.valueUnbound(HttpSessionBindingEvent) event handler, invoked as a result of weblogic invalidateAll:-