Null pointer when calling getRemoteAddr in exception handling

2012-08-20 Thread Peter Cipov
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); ..

Re: Null pointer when calling getRemoteAddr in exception handling

2012-08-20 Thread Konstantin Kolinko
2012/8/20 Peter Cipov pci...@kerio.com: 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(),