Recently, after updating to tomcat 7.0.14 (from 6.0.29), I started seeing these pop up in catalina.out from time to time. I honestly have no idea if it's related to the tomcat version or some legitimately wacked out Set-Cookie header coming in. I didn't see it prior to the 7.0.14 upgrade, but that could just be a timing coincidence. Either way I'd like to understand the cause. Has anybody else seen this type of exception popping up lately?
20-May-2011 15:17:42 org.apache.catalina.connector.CoyoteAdapter service SEVERE: An exception or error occurred in the container during the request processing java.lang.IllegalArgumentException: Control character in cookie value or attribute. at org.apache.tomcat.util.http.CookieSupport.isHttpSeparator(CookieSupport.java:192) at org.apache.tomcat.util.http.Cookies.processCookieHeader(Cookies.java:258) at org.apache.tomcat.util.http.Cookies.processCookies(Cookies.java:157) at org.apache.tomcat.util.http.Cookies.getCookieCount(Cookies.java:98) at org.apache.catalina.connector.CoyoteAdapter.parseSessionCookiesId(CoyoteAdapter.java:901) at org.apache.catalina.connector.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:664) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:394) at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:396) at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:356) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1534) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) I suppose I could start logging headers, but that would get out of hand pretty quickly...considering I only see this happen about once in 100 million requests. Anyway, figured I'd raise the flag here first... Dan