Subject: DO NOT REPLY [Bug 52735] Request.getRemoteAddr() throw NullPointerException
https://issues.apache.org/bugzilla/show_bug.cgi?id=52735

minde sun <minde.sun@xxxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |

--- Comment #6 from minde sun <minde.sun@xxxxxxxxx> 2012-02-22 19:25:12 UTC ---
Hi Konstantin,

---------------
According to your stack trace you use a Future. It is executed asynchronously
in a different thread.
---------------

The class DataCabinetServlet is just a sub-class of HttpServlet, its
definition list below
public class DataCabinetServlet extends HttpServlet{
....
}

We do not create a new thread to handle the incoming request!

Since we don't use 'single thread model', I believe this Future is created and
maintained by tomcat servlet container. Even this is an tomcat servlet bug, it
is not a reason to ignore the bug from class Http11AprProcessor. You/your team
need to change the following logic in method actionInternal for sure:
@Override
public void actionInternal(ActionCode actionCode, Object param) {

long socketRef = socket.getSocket().longValue();
.....

}

It is not good practice for above use, you need to do change the code to the
following:
long socketRef = socket.getSocket() == null? 0L:
socket.getSocket().longValue();

Please don't close this bug without carefully investigation!

Thanks,
Minde

--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxxxxx

(C)2011 mailinglist-archive.com