Thanks, Chuck.
We had considered concurrency as an issue. The string in question is entered
into a logging table - every request gets logged, and the log entry includes
a timestamp. So we know there was no other request in process concurrent.
Also, we're not using a Session object to store request-specific data - we
use hidden fields to identify users, and pass the hidden fields form page to
page. (We have our reasons for doing it this way!!)
>From the doPost(...) we simply pass the request object to a method that
does:

Enumeration e = request.getParameterNames();
while(e.hasMoreElements()){
        String name = (String)e.nextElement();
        strngBldr.append(request.getParameter(name));
}
log(strngBldr); //enters the string into the db along with a timestamp

So we're keeping things as simple as possible.

Also, examining this particular string we find that it contains parameter
name/values from a requqest that was logged hours before this one.
Your thoughts would be deeply appreciated.

Thanks!
Bob

-----Original Message-----
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 05, 2007 2:27 PM
To: Tomcat Users List
Subject: RE: Request parameters incorrect


> From: Bob Riaz [mailto:[EMAIL PROTECTED]
> Subject: Request parameters incorrect
>
> The parameters we find in this string come from 3
> different pages! We're baffled!!

This is pretty much always a problem with incorrect scoping or
synchronization in the webapp.  For example, code processing a Request
stores request-specific data into the Session or Servlet object, then
comes back later to find that a different concurrent request has
overwritten it.  Or, two request processing threads are accessing a
Session field via some method that isn't synchronized appropriately.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to