Re: Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Donald I Macdonald
Sgrìobh Rémy Maucherat na leanas 10/10/2024 aig 1:07f: The crawler valve seems to be defined on the Engine, but more importantly it seems you have no default host ? So the request is not being mapped and it would return 404 (but the valve would need some extra null checks). Rémy Ahhh of cour

Re: Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Rémy Maucherat
gt; complaining that the Host used in the getClientIdentifier method within > the CrawlerSessionManagerValve is null. Full stack trace is: > > 10-Oct-2024 10:47:35.297 SEVERE [http-nio-8080-exec-5] > org.apache.coyote.http11.Http11Processor.service Error processing request > j

Null host causing NullPointerException in CrawlerSessionManagerValve

2024-10-10 Thread Donald I Macdonald
the CrawlerSessionManagerValve is null. Full stack trace is: 10-Oct-2024 10:47:35.297 SEVERE [http-nio-8080-exec-5] org.apache.coyote.http11.Http11Processor.service Error processing request     java.lang.NullPointerException: Cannot invoke "org.apache.catalina.Host.getName()" because "host

Re: CrawlerSessionManagerValve

2020-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 2/28/20 13:25, Chris Cheshire wrote: > On Fri, Feb 28, 2020 at 12:51 PM Christopher Schultz > wrote: >> >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >> >> Chris and Mark, >> >> On 2/28/20 11:51, Mark Thomas wrote: >>> On 28/02/2020

Re: CrawlerSessionManagerValve

2020-02-28 Thread Chris Cheshire
On Fri, Feb 28, 2020 at 12:51 PM Christopher Schultz wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chris and Mark, > > On 2/28/20 11:51, Mark Thomas wrote: > > On 28/02/2020 14:51, Chris Cheshire wrote: > >> (9.0.31) > >> > >> What is the reason why the pattern isn't compiled wi

Re: CrawlerSessionManagerValve

2020-02-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris and Mark, On 2/28/20 11:51, Mark Thomas wrote: > On 28/02/2020 14:51, Chris Cheshire wrote: >> (9.0.31) >> >> What is the reason why the pattern isn't compiled with the case >> insensitive flag? Is it due to performance? > > I wrote that Valve

Re: CrawlerSessionManagerValve

2020-02-28 Thread Mark Thomas
On 28/02/2020 14:51, Chris Cheshire wrote: > (9.0.31) > > What is the reason why the pattern isn't compiled with the case > insensitive flag? Is it due to performance? I wrote that Valve. At least the first iteration anyway. Others improved it along the way. I honestly can't remember why I opted

CrawlerSessionManagerValve

2020-02-28 Thread Chris Cheshire
(9.0.31) What is the reason why the pattern isn't compiled with the case insensitive flag? Is it due to performance? Chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...

Re: CrawlerSessionManagerValve only working with default host

2018-04-12 Thread Felix Schumacher
I can see what session is being used. For the default host site, they reuse the same session. For the non-default host sites, they create new sessions. It is a limitation of the CrawlerSessionManagerValve. It only supports one session per client IP as it maps client IP to session ID internally

RE: CrawlerSessionManagerValve only working with default host

2018-04-12 Thread Matt Cosentino
Ahh, I can see that from the source now, thanks. - Matt -Original Message- From: Mark Thomas Sent: Thursday, April 12, 2018 2:27 AM To: Tomcat Users List Subject: Re: CrawlerSessionManagerValve only working with default host On 12/04/18 00:10, Matt Cosentino wrote: > I first noti

Re: CrawlerSessionManagerValve only working with default host

2018-04-12 Thread Mark Thomas
s being used. For the default host site, they reuse the same session. For > the non-default host sites, they create new sessions. It is a limitation of the CrawlerSessionManagerValve. It only supports one session per client IP as it maps client IP to session ID internally. Moving the Valve to

RE: CrawlerSessionManagerValve only working with default host

2018-04-11 Thread Matt Cosentino
er_Valve - Matt -Original Message- From: Christopher Schultz Sent: Wednesday, April 11, 2018 1:46 PM To: users@tomcat.apache.org Subject: Re: CrawlerSessionManagerValve only working with default host Matt, On 4/11/18 2:03 PM, Matt Cosentino wrote: > I have CrawlerSessionManagerVal

Re: CrawlerSessionManagerValve only working with default host

2018-04-11 Thread Christopher Schultz
Matt, On 4/11/18 2:03 PM, Matt Cosentino wrote: > I have CrawlerSessionManagerValve set up at the Engine level, but it only > seems to be working for the default host and not any other host. Is this > expected behavior? Should I put it at the host level for each host? > > Here i

CrawlerSessionManagerValve only working with default host

2018-04-11 Thread Matt Cosentino
I have CrawlerSessionManagerValve set up at the Engine level, but it only seems to be working for the default host and not any other host. Is this expected behavior? Should I put it at the host level for each host? Here is an example of how I have it set up

Re: CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-28 Thread Martin Kouba
2011/6/28 Mark Thomas > > On 27/06/2011 21:42, Martin Kouba wrote: > > You may inspire yourself with code from my blog post - > > http://www.symbiont-it.cz/crawlersessionmanagervalve-a-tomcat6, lines 86 > > to 134 (text is unfortunately in czech :-). > > No problem,

Re: CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Mark Thomas
On 27/06/2011 21:42, Martin Kouba wrote: > You may inspire yourself with code from my blog post - > http://www.symbiont-it.cz/crawlersessionmanagervalve-a-tomcat6, lines 86 > to 134 (text is unfortunately in czech :-). No problem, I can figure it out. I actually went a differe

Re: CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Konstantin Kolinko
2011/6/27 Martin Kouba : > Recently I've been using adapted code of CrawlerSessionManagerValve from > Tomcat 7 on Tomcat 6 (JBossWeb 2.1.4 respectively). It works well. However I > observed a lot of HTTP sessions that were created even if > CrawlerSessionManagerValve logg

Re: CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Martin Kouba
You may inspire yourself with code from my blog post - http://www.symbiont-it.cz/crawlersessionmanagervalve-a-tomcat6, lines 86 to 134 (text is unfortunately in czech :-). Cheers, Martin Dne 27.6.2011 15:29, Mark Thomas napsal(a): On 27/06/2011 14:19, Martin Kouba wrote: Recently I've

Re: CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Mark Thomas
On 27/06/2011 14:19, Martin Kouba wrote: > Recently I've been using adapted code of CrawlerSessionManagerValve from > Tomcat 7 on Tomcat 6 (JBossWeb 2.1.4 respectively). It works well. > However I observed a lot of HTTP sessions that were created even if > CrawlerSessionMa

CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Martin Kouba
Recently I've been using adapted code of CrawlerSessionManagerValve from Tomcat 7 on Tomcat 6 (JBossWeb 2.1.4 respectively). It works well. However I observed a lot of HTTP sessions that were created even if CrawlerSessionManagerValve logged sucessfull bot detection. Finally I found

CrawlerSessionManagerValve - problem with removing sessionInfo

2011-06-27 Thread Martin Kouba
Recently I've been using adapted code of CrawlerSessionManagerValve from Tomcat 7 on Tomcat 6 (JBossWeb 2.1.4 respectively). It works well. However I observed a lot of HTTP sessions that were created even if CrawlerSessionManagerValve logged sucessfull bot detection. Finally I found

Re: CrawlerSessionManagerValve question

2011-05-24 Thread André Warnier
Mark Thomas wrote: On 24/05/2011 12:50, Martin Kouba wrote: What is the reason NOT to assume that request with more than one User-Agent header originates from a bot? See lines 133, 134 in Tomcat 7.0.14. Simply that none of the samples I looked at had multiple UA headers and a suggestion from a

Re: CrawlerSessionManagerValve question

2011-05-24 Thread Mark Thomas
On 24/05/2011 12:50, Martin Kouba wrote: > What is the reason NOT to assume that request with more than one > User-Agent header originates from a bot? > See lines 133, 134 in Tomcat 7.0.14. Simply that none of the samples I looked at had multiple UA headers and a suggestion from another committer

CrawlerSessionManagerValve question

2011-05-24 Thread Martin Kouba
What is the reason NOT to assume that request with more than one User-Agent header originates from a bot? See lines 133, 134 in Tomcat 7.0.14. Thanks Martin - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For addi