Skip to Content
Former Member
Mar 05, 2004 at 10:32 AM

request.getRemoteAddr() throws exception on AIX


Hi all,

I developped a little jsp on j2ee engine to retrieve the ip address of remote caller. It is very simple. It is working on Windows but not on AIX. Here is the code:



<title>IP displaying test</title>


<body bgcolor='#ffffff'>

<h1>IP displaying test</h1>


out.println( "IP Address : " + request.getRemoteAddr() );

out.println( "Remote host : " + request.getRemoteHost() );




When I execute it on windows the result is :

IP displaying test

IP Address : Remote host :

But on AIX 5.1, I had this exception:

Internal Server Error 500!

java.lang.ArrayIndexOutOfBoundsException: 9

at Code))

at Code))

at jsp_testip1078481612092._jspService(


at javax.servlet.http.HttpServlet.service(

at Code))

at Code))

at Code))

at Code))



at com.inqmy.core.service.context.container.session.ApplicationSessionMessageListener.process( Code))

at Code))

at Code))

at Method)

at Code))

Do you have any idea?