|
Home > Archive > WebSphere HTTP Server > November 2004 > Servlet does not receive all post data
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Servlet does not receive all post data
|
|
| popele 2004-08-10, 6:01 pm |
| Hello
I have the following problem I have a jsp page that submits data to a
servlet. I am using POST to send the data to the servlet. From time to
time the post parameters received in the servlet are null. There are
only 2 text fields on the jsp and when i try to read the values i get a
null value (request.getParameter("control") returns null).
I am using WAS 5.1 or 5.1.1 and the behavior can be replicated only when
multiple users are connected to the application.
Do you have any idea how can I solve this problem?
Thanks Popele
--
posted via MFF : http://www.MainFrameForum.com - USENET Gateway
| |
| hoop33 2004-08-19, 7:53 am |
| I have no solution, but I am tracking this problem as well. It seems that sometimes the request isn't being read--perhaps some race condition? Anyway, when we get this error, we grab the request's input stream, read it all in, and log it, like this:
BufferedReader br = new BufferedReader(new
InputStreamReader(req.getInputStream()));
String line = null;
StringBuffer sb = new StringBuffer();
while ((line = br.readLine()) != null) {
sb.append(line);
}
// log sb
We see in the logs that all the parameters are there, that request.getParameter("foo") SHOULD have returned data, not null.
| |
| jfarney 2004-11-22, 5:53 pm |
| Have you had any luck with this - we are having the same problem. We are
randomly seeing the case where the
ServletRequest seems to be empty - no params can be extracted. Perform a
browser back, hit it again and it
works fine. It's virtually impossible to re-produce this error in a
consistent manner - yet we keep getting reports
from different environments. Any input on this problem would be greatly
appreciated.
"popele" <member@mainframeforum.com> wrote in message
news:cfb3dh$2agm$1@news.boulder.ibm.com...
> Hello
>
> I have the following problem I have a jsp page that submits data to a
> servlet. I am using POST to send the data to the servlet. From time to
> time the post parameters received in the servlet are null. There are
> only 2 text fields on the jsp and when i try to read the values i get a
> null value (request.getParameter("control") returns null).
>
> I am using WAS 5.1 or 5.1.1 and the behavior can be replicated only when
> multiple users are connected to the application.
>
> Do you have any idea how can I solve this problem?
>
> Thanks Popele
>
>
>
> --
> posted via MFF : http://www.MainFrameForum.com - USENET Gateway
|
|
|
|
|