I am moving my server from Tomcat-6 to Tomcat-9 . My site is designed for the HTTP / 1.1 protocol. The server.xml file contains the org.apache.coyote.http11.Http11NioProtocol connector protocol. The server starts normally without generating any errors. However, when I try to access my site using localhost, I get the following error: -
INFO [https-nio-8445-exec-3] org.apache.tomcat.util.http.parser.Cookie.logInvalidHeader Cookie header received [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 21, 22, 23]; userId = 53136], which contains an invalid cookie. This cookie will be ignored. Note: Further occurrences of this error will be logged at the DEBUG level.
Can anyone tell me the reason for this error? What causes an invalid cookie? Can this error be avoided if I use a different connector?
java cookies tomcat web networking
Dhumil agarwal
source share