Solved

java.nio problem

Posted on 2004-04-18
1
466 Views
Last Modified: 2012-06-27
I use java.nio library and recently after I enabled tcp/ip filtering on win2k3 server
I get following error:

java.io.IOException: Unable to establish loopback connection
        at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.nio.ch.PipeImpl.<init>(Unknown Source)
        at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source)
        at java.nio.channels.Pipe.open(Unknown Source)
        at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source)
        at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source)
        at java.nio.channels.Selector.open(Unknown Source)
        at NioSocket.<clinit>(NioSocket.java:130)
        at QuoteServerApp.main(QuoteServerApp.java:241)
Caused by: java.net.ConnectException: Connection refused: connect
        at sun.nio.ch.Net.connect(Native Method)
        at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
        at java.nio.channels.SocketChannel.open(Unknown Source)
        ... 10 more

Unfortunately I can't disable tcp/ip filtering due to company firewall requirements
Maybe somebody knows how to resolve the problem ?
0
Comment
Question by:amakalski
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 10855548
Appears to be a bug, here are a couple of other reports:
http://forum.java.sun.com/thread.jsp?forum=4&thread=459338&start=15&range=15&hilite=false&q=
http://forum.java.sun.com/thread.jsp?forum=4&thread=452211

Perhaps try out 1.5 and see if it has any more luck.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
splitOdd10 challenge 5 75
Core Java. What output will be and why ? 6 65
Groovy:unable to resolve class error 2 68
custom annotations 9 30
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now