[Owasp-csrfguard] NullpointerException in org.owasp.csrfguard.CsrfGuardFilter.doFilter

Stephan, Frank Frank.Stephan at nrv-rechtsschutz.de
Fri Sep 23 06:13:50 EDT 2011


Hi,

I am using owasp-csrfguard 3.0.0.503. I configured web.xml and cpoied
the jar into the classpath.
The filter gets executed - as expected - but I get the following
exception 

java.lang.NullPointerException
	
org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:53)

It looks like the HttpRequest is not passed into the method.

When implementing my own filters, everything works fine.

The full stack trace is.

java.lang.NullPointerException
	at
org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:53)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:235)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:433)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:128)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2
93)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84
9)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:583)
	at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Unknown Source)


TIA
Frank


More information about the Owasp-csrfguard mailing list