Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cookie problem

6 views
Skip to first unread message

Haitham Mahmoud

unread,
Jul 23, 2002, 4:41:09 PM7/23/02
to
Hi All,
does any one know the cause of this problem?

---| Page Request |---
GET /menuMain/main.jsp HTTP/1.0
Host: host
Connection: CLOSE
Accept: */*
Cookie: JSESSIONID=To1020mC17822254849486285At;Path=/menuMain
User-agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Referer: http://host/menuNews/index.html
Content-Type: text/html

------------------


---| Response |---
HTTP/1.1 500
Date: Tue, 23 Jul 2002 20:33:32 GMT
Server: Apache/1.3.12 (Win32) tomcat/1.0
Content-Language: en
Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java
1.4.0_01; Windows NT 4.0 x86; java.vendor=Sun Microsystems Inc.)
Connection: close
Content-Type: text/html

------------------


---| Response Body |---
<h1>Error: 500</h1>
<h2>Location: /menuMain/main.jsp</h2><b>Internal Servlet Error:</b><br>
<pre>
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:187)
at
org.apache.tomcat.core.RequestImpl.getCookies(RequestImpl.java:379)
at
org.apache.tomcat.request.SessionInterceptor.requestMap(SessionInterceptor.java:101)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:594)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:552)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:536)
</pre>


------------------

Kishan

unread,
Aug 19, 2002, 12:15:40 PM8/19/02
to
Hi,
I am having the same problem :
I am trying to stress test our webapplication. I am using
tomcat4.0.4 and accessing it directly at 8080 port (not apache).

Request sent:
GET /UsageReports/process HTTP/1.0
Response received :
HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 19 Aug 2002 16:04:48 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
Set-Cookie: JSESSIONID=B7B081E621832A705C04F51BA566D11E;Path=/UsageReports

In the second request I am setting JSESSIONID back, because I want to
maintain session between these two requests :

GET /UsageReports/process HTTP/1.1
Cookie: JSESSIONID=B7B081E621832A705C04F51BA566D11E;$Path=/UsageReports

Response received:
HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 19 Aug 2002 16:04:49 GMT
Server: Apache Tomcat/4.0.3 (HTTP/1.1 Connector)
Connection: close
Set-Cookie: JSESSIONID=97FDEE4006B9B0F7EEDFEF95D69D9D93;Path=/UsageReports


It is creating a different Session. It did not receive the Cookie
information sent back.

Please let me anyone knows the answer for this. There have been
postings since 1998 on this problem. Somebody should know the solution
:P

-Kishan-


Haitham Mahmoud <hait...@hotmail.com> wrote in message news:<3D3DBF65...@hotmail.com>...

G.G. Campbell

unread,
Aug 19, 2002, 5:56:36 PM8/19/02
to
do you have a syncronization problem?
0 new messages