Posted by: piman007 | 25-11-2011

ปัญหา AxisFault java.io.IOException: Unable to establish loopback connection

1. เช็ค Firewall ว่าได้ open port ของ App. Server ไว้หรือยัง

2. เข้าไปดูที่ \system32\CONFIG.NT ให้ใส่ค่าดังนี้

files=200

buffers=60

3. Restart windows

 

ตามเอกสารนี้

 

Personal firewalls

Personal firewalls can cause problems for the Windows NIO code, causing particular operations to fail. For example, the method call Selector.open() can throw a “java.io.IOException: Unable to establish loopback connection” with a cause of “java.net.ConnectException: Connection refused: connect”. The exception is caused by the operating system connecting on a port that is being blocked by the firewall. The JVM tries the connect operation again, asking the operating system to select a different port number. If it still cannot connect after several attempts, a ConnectException is thrown.

If you see this exception, you can set the system property java.nio.debug=pipe to see which port numbers are being blocked.

File handle exhaustion

On Windows 2000 and XP, the default value of the number of files that you can have simultaneously opened is too low and causes problems to applications that are I/O intensive. To fix this limitation, edit the file <windows>\system32\CONFIG.NT and set the following values:

files=200
buffers=60

where <windows> is the directory where Windows is installed.


ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s

หมวดหมู่

%d bloggers like this: