[EMAIL PROTECTED] wrote:
[11/7/05 15:24:43:513 EST] 5a6d5a6d WebGroup E SRVE0026E:
[Servlet Error]-[Filter [Acegi Filter Chain Proxy]: filter is
unavailable.]: java.lang.NullPointerException
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at
java.lang.NullPointerException.<init>(NullPointerException.java:63)
at
java.lang.InheritableThreadLocal.set(InheritableThreadLocal.java:95)
at
net.sf.acegisecurity.context.SecurityContextHolder.setContext(SecurityContextHolder.java:58)
at
net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:207)
Very odd. If you look at the code for SecurityContextHolder:
private static InheritableThreadLocal contextHolder = new
InheritableThreadLocal();
public static void setContext(SecurityContext context) {
Assert.notNull(context,
"Only non-null SecurityContext instances are permitted");
contextHolder.set(context); // this line fails (line 58)
}
Can anyone see any issue with this? The main difference between 0.8.3
and 0.9.0 is the use of a InheritableThreadLocal instead of a
ThreadLocal. If you revert to the latter, does it work? What version of
WebSphere are you running? Does it work if you deploy the same WAR to
say Tomcat?
Cheers
Ben
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Home: http://acegisecurity.sourceforge.net
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer