Christopher,

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());

Regards,
Ravi

On Thu, Jun 4, 2015 at 9:54 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJVcIKvAAoJEBzwKT+lPKRY6ioQALCHKEO/7Yj9RCkKXSPoBAOW
> ayw8a0Pj802SwxTR1lBhvPf71ZiGqwmGv46a2ZxFDI+N6C0KB+6afI17XeoyjRKV
> ieuBypeBpsYijVkwCHFICiwlF8U6fe2ar9KG+Vhffffjz/8DNweVXHtwRHDIK3G+
> EQ22qGuyH5ydcw+e3M63hHGwHsLf3YK3akJR5soOAboHTbYADU374vqRmSWlRb70
> Lcxq+691cvAbJH6yKen5oo9O+F2aMhMti/rvXrhSRQT2cfWQNKjLWIg7d3CPORsp
> 6FGpQieCJ/csO/2pBz4RKXopfGcybc5EGjh9uNgqQwmMtBoPHgTy1JWcumX80K3s
> tYKYPcexR0qPpIEB76owAvbYUIgdlswhljYT8Wz7Fr7KZbxhFzoAhGSxitJHPgTC
> kUmCrFW9ote9Xxn8tRHnVMvT45YVcA6i8vVLczKH/wzyAR/PVpgqI5Xrn+gMHDXH
> Ld4XZYpc1xtT5bo1/QdRNoL9rl3TpJvbqCkfPfqNPCEv3vddzjmnmalJnvLbD/7C
> Fvy639CaFqxl/0KNBcVsJdMg3JLnoaExa2UY5lpZA6L6rsqkYaQEBmfT97PKwaVp
> Z7ftmW9bwTJ6BZArR3z4qEihWwm7AxNIk6sRO+Ef3tH0dIfqixClR+ccNZqNqvBP
> fxboiBuGytLH5beNzUqi
> =z+IM
> -----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