Re: Error matching patterns problem
"Max Cooper" <[email protected]> Tue, 25 Feb 2003 03:29:29 -0800
| Newsgroups | gmane.comp.java.securityfilter.user |
|---|---|
| Message-ID | <017301c2dcc1$2cc063c0$6401a8c0@ozzy> |
Uh, yes, it, um, throws a NPE if it encounters a null url from the container (no, it doesn't check). It does seem like that might be the problem here, I am just surprised it gets a null as a request URL. Should a null match everything or nothing? -Max ----- Original Message ----- From: "Torgeir Veimo" <[email protected]> To: "securityfilter" <securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org> Sent: Tuesday, February 25, 2003 2:09 AM Subject: Re: [securityfilter-user] Error matching patterns problem > On Tue, 2003-02-25 at 06:10, Max Cooper wrote: > > Alexander, > > > > It seems to occur in the Perl5Matcher.matches() method from the Jakarta-ORO > > regular expression library when it tries to match the form-login-page or > > form-error-page patterns. Your login and error page patterns look fine to > > me, so I am not sure what is going wrong. > > > > I'm trying securityfilter 1.0 with tomcat 4.0.4 (under netbeans 3.4.1), > > > with Struts 1.1b3 > > > > > > I get this error when starting the webapp: > > > > > > ===================================================== > > > > > > javax.servlet.ServletException: Error matching patterns > > > at > > > .... > > > > > > root cause > > > > > > java.lang.NullPointerException > > > at > > org.securityfilter.filter.URLPatternMatcher.match(URLPatternMatcher.java:89) > > > at > > Does the match algorithm check to see if the input it gets from the > servlet container is non-null? > > -- > Torgeir Veimo <[email protected]> > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > securityfilter-user mailing list > securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/securityfilter-user > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf