-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ravi,

On 6/4/15 10:44 PM, Ravi Kiran wrote:
> All the parameters are lost when this issue occurs.
> 
> Code in the filter:
> 
> Map<String, String[]> paramMap = httpRequest.getParameterMap(); 
> StringBuilder sb = new StringBuilder(); if(paramMap != null) { 
> sb.append(System.lineSeparator()); sb.append("Request URI:
> ").append(httpRequest.getRequestURI()); Enumeration<String>
> headerNames = httpRequest.getHeaderNames(); 
> while(headerNames.hasMoreElements()){ String header =
> headerNames.nextElement(); sb.append("Request Header Name:
> ").append(header); sb.append(", Request Header Value:
> ").append(httpRequest.getHeader(header)); 
> sb.append(System.lineSeparator()); } 
> sb.append(System.lineSeparator()); for(Map.Entry<String, String[]>
> paramEntry : paramMap.entrySet()) { sb.append("Param Name:
> ").append(paramEntry.getKey()); sb.append(", Param Values:
> ").append(paramEntry.getValue() != null ? 
> Arrays.asList(paramEntry.getValue()) : null); 
> sb.append(System.lineSeparator()); } } LOG.debug("Dumping request
> parameters: {}", sb.toString());

That looks fairly straightforward to me.

Is the servlet expecting to consume the request entity directly (e.g.
a multi-part request, etc.)?

Also, you didn't say whether all of the parameters have been "lost" or
only some.

To markt's point: are you storing any request-related objects
anywhere, such as a filter's or servlet's members, or in the user's
HttpSession, or even in the request attributes, etc.?

- -chris

> On Thu, Jun 4, 2015 at 9:54 AM, Christopher Schultz < 
> ch...@christopherschultz.net> wrote:
> 
> Ravi,
> 
> On 6/4/15 11:40 AM, Ravi Kiran wrote:
>>>> Hi,
>>>> 
>>>> I am writing to get some pointers on a strange issue which
>>>> are facing in tomcat in one of our client environments.
>>>> 
>>>> Setup: 4 Webservers connecting to 2 tomcat using mod_jk
>>>> (load balanced)
>>>> 
>>>> Issue: Request parameters GET/POST are coming as null to the 
>>>> application intermittently i.e, filter in web app dumps the
>>>> request parameters and finds everything empty. TCP dumps are
>>>> inspected and packets are reaching tomcat even during the
>>>> failure cases. Parameters are available in tcpdump but lost
>>>> in between before it reaches application. This happens only
>>>> on one specific client environment which makes it even
>>>> difficult to isolate the problem.
>>>> 
>>>> Tomcat Version: 7.0.54
>>>> 
>>>> Please suggest some pointers to debug and resolve this issue.
>>>> I can provide more info if needed.
> 
> Can we see the code for your Filter?
> 
> Do all of the parameters appear to disappear, or only some of
> them?
> 
> -chris
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVdcqXAAoJEBzwKT+lPKRYlBYQAJpZsYAwNFXCM31kZMEUrHr/
yR4QOLJGuEv4FPgteR0YCEJMjmCBQ3Yj8Uq2U0AsYlDAivFuuBcIDWP8DnFWb0xi
TfrcanIwNKfzjblVEuh+HB8/Cf5IjAkBsWNLSa5ntxODooiqkOOikCNPP4l3IPNs
dBGS+XKrlhjDkVUwI2+KmcEkSLHoU0hcGLNYd/K+K1pxGUxYDPUwB2KgV+6iVgQP
X0GaB8BUTChp4GFZAQEkIXz1hz1QYAR2syqTIcYmB/SjrtsSAf5dIKqZhnsaXRKA
Ywl6CVAjvEizvExHOmv6jHIV0EOEqzmWZfWUGTE3qtbpxxSi1O3zXlC6S6p8Odwp
PrTo6KvZG39HWH7R1AZKxfdeDD5IYfXtU21TX2RzLcuUQRI3xLhrrrAGYrb7KPuj
0fLZB4uHQ9f3rQP2Lofl+KN+sja3xLbTbaBpU7+urXfnnXoV1Yfnic4ju3k+xxzN
mgJQOBLFWSR4ZwjkuzDMsuWpokBb0DcA7odJcZCDQibfM3zyR9fZMUCtjayL5UzZ
/d3JiYVe9ZCtq0VlsbqxDo6r9OHuntgSIOE7GQ5ebz8F/E+uP6lZR2Fvw3z5Hg1C
oqPcil3eMNIgV3m+9k7DZP5FFyYHae06Yk1IV6ISwJ+20bmvs37FzCAwW85DJffG
Z7Qf6IjgNfP1SvQRl0KU
=IS6i
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to