DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43480>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43480

           Summary: NullPointerException when processing empty cookie header
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Connector:HTTP/1.1 (deprecated)
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


We periodically receive the following in the Catalina log and I think this 
occurs when an empty cookie header is received at the server (e.g. "Cookie:"). 
I believe these empty cookie headers are coming from web browsers that have 
the "Google Web Accelerator" installed.

2007-09-26 09:07:36 Ajp13Processor[8009][4] process: finish
java.lang.NullPointerException
        at java.util.StringTokenizer.<init>(StringTokenizer.java:146)
        at org.apache.tomcat.util.http.Cookies.processCookieHeader
(Cookies.java:415)
        at org.apache.tomcat.util.http.Cookies.processCookies(Cookies.java:216)
        at org.apache.tomcat.util.http.Cookies.getCookieCount(Cookies.java:161)
        at org.apache.ajp.tomcat4.Ajp13Request.addCookies
(Ajp13Request.java:193)
        at org.apache.ajp.tomcat4.Ajp13Request.setAjpRequest
(Ajp13Request.java:155)
        at org.apache.ajp.tomcat4.Ajp13Processor.process
(Ajp13Processor.java:449)
        at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
        at java.lang.Thread.run(Thread.java:534)

Please note the following: I believe the empty cookie headers were causing our 
Domino web server to crash in the "jk2_requtil_getCookieByName()" function. To 
resolve this problem I amended the 'workers2.Properties' file to 
set 'stickySession=0'. This appears to have stopped the web server crashes but 
created the issue above. An example of headers that caused the server to crash 
previously is shown below:

GET /servlet/ep.ext?
extId=155777&byPostcode=y&byStreet=y&byHouseNumber=Y&byAddress=y&st=PRS 
HTTP/1.1
Accept-Language: en-gb,en-us;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
1.1.4322; .NET CLR 2.0.50727)
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-
shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, 
application/msword, */*
Referer: 
http://www.brent.gov.uk/registrar.nsf/24878f4b00d4f0f68025663c006c7944/79335ab1
0394dc1280256f79003d613d?OpenDocument
Host: www.brent.gov.uk
X-moz: prefetch
Cookie: 
X-Forwarded-For: 82.153.25.44
Accept-Encoding: gzip

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to