Hello,
I have encountered ambiguous feature/bug of request
...servlet code ...
throw new LoginException(String.format("Login failed for user %s from IP
%s (%s)",
principalName,
request.getRemoteAddr(),
type
), ex);
..................
throws java.lang.NullPointerException
at
org.apache.coyote.http11.Http11AprProcessor.actionInternal(Http11AprProcessor.java:272)
at
org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:834)
at org.apache.coyote.Request.action(Request.java:346)
at
org.apache.catalina.connector.Request.getRemoteAddr(Request.java:1280)
at
org.apache.catalina.connector.RequestFacade.getRemoteAddr(RequestFacade.java:517)
but this equivalent code works as it should
...servlet code ...
String remoteAddr = request.getRemoteAddr();
throw new LoginException(String.format("Login failed for user %s from IP
%s (%s)",
principalName,
remoteAddr,
type
), ex);
..................
Is this correct behavior ?
--
Peter Cipov
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org