tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastiaan van Erk <>
Subject getRemotePort() returns -1 sometimes
Date Wed, 02 Apr 2008 19:21:49 GMT

I have a tomcat servlet set up in Tomcat 6.0.16 behind Apache 2.2.4 with 
mod_proxy and a ProxyPass with ajp:// to a servlet. Now it sometimes 
happens to me that a call of request.getRemotePort() in the doPost() 
method of the servlet returns -1. When this happens it keeps happening 
until I restart tomcat, after which getRemotePort() seems to work again.

Does anybody know what can cause this?


View raw message