Skip to Content
author's profile photo Former Member
Former Member

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Mar 08, 2004 at 07:57 PM

    Hi Mert,

    depending on the version you used, you should issue an OSS message. I don't see either why it should not work.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.