tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando_Sala...@lotus.com
Subject Re: Cookie name is a reserved token
Date Tue, 07 Aug 2001 15:37:49 GMT

Does your cookie have a name that corresponds to a Java language token, or
is one of the following:

if (!isToken(name)
          || name.equalsIgnoreCase("Comment")      // rfc2019
          || name.equalsIgnoreCase("Discard")      // 2019++
          || name.equalsIgnoreCase("Domain")
          || name.equalsIgnoreCase("Expires")      // (old cookies)
          || name.equalsIgnoreCase("Max-Age")      // rfc2019
          || name.equalsIgnoreCase("Path")
          || name.equalsIgnoreCase("Secure")
          || name.equalsIgnoreCase("Version")

If so, you are supposed to be getting this exception -- the fix is to use a
different name.

- Fernando



|--------+-------------------------------->
|        |          "Gareth Coltman"      |
|        |          <gareth_coltman@majorb|
|        |          and.co.uk>            |
|        |                                |
|        |          08/07/2001 11:03 AM   |
|        |          Please respond to     |
|        |          tomcat-user           |
|        |                                |
|--------+-------------------------------->
  >-----------------------------------------------------------------------------------------------------------|
  |                                                                                      
                    |
  |      To:     <tomcat-user@jakarta.apache.org>                                  
                          |
  |      cc:     (bcc: Fernando Salazar/CAM/Lotus)                                       
                    |
  |      Subject:     Cookie name is a reserved token                                    
                    |
  >-----------------------------------------------------------------------------------------------------------|




I am  getting the following error trying to load test my app.

I am looked at the bug database:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=231

and it claims this bug is fixed in Tomcat 3.3

I am using tomcat 3.3/mod_jk with the pooled tcp connector,and I still get
it.

I have no idea why? Could be it be a threading issue? The server seems to
have enough free resources...

Please help!!!!




java.lang.IllegalArgumentException: Cookie name
Path is a reserved token
        at javax.servlet.http.Cookie.<init>(Cookie.java:185)
        at
org.apache.tomcat.util.RequestUtil.processCookies(RequestUtil.java:189)
        at
org.apache.tomcat.core.RequestImpl.getCookieCount(RequestImpl.java:494)
        at
org.apache.tomcat.session.StandardSessionInterceptor.requestMap(StandardSess

ionInterceptor.java:143)
        at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820

)
        at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:77

1)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection

(Ajp12ConnectionHandler.java:166)
        at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)

--
Mike Scott
Head of Technology Operations
rightmove.co.uk
Tel: 020 7821 9661  Mobile: 07941 576326  Email: Mike.Scott@rightmove.co.uk






Mime
View raw message