未能创建选择器/无法建立超时的环回连接/连接

时间:2022-02-12 18:55:08

I am running a Java socket.io server (com.corundumstudio.socketio implementation), it used to work OK, but now, just after I start() the server, I get this error message:

我正在运行一个Java套接字。io服务器(com.corundumstudio。socketio实现),它以前是可以工作的,但是现在,在我启动()服务器之后,我得到了这个错误消息:

Exception in thread "main" org.jboss.netty.channel.ChannelException: Failed to c
reate a selector.
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(A
bstractNioSelector.java:338)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.<init>(Abstrac
tNioSelector.java:96)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorker.<init>(AbstractN
ioWorker.java:51)
        at org.jboss.netty.channel.socket.nio.NioWorker.<init>(NioWorker.java:45
)
        at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWork
erPool.java:45)
        at org.jboss.netty.channel.socket.nio.NioWorkerPool.createWorker(NioWork
erPool.java:28)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.newWorker(Ab
stractNioWorkerPool.java:99)
        at org.jboss.netty.channel.socket.nio.AbstractNioWorkerPool.init(Abstrac
tNioWorkerPool.java:69)
        at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool
.java:39)
        at org.jboss.netty.channel.socket.nio.NioWorkerPool.<init>(NioWorkerPool
.java:33)
        at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<ini
t>(NioServerSocketChannelFactory.java:149)
        at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<ini
t>(NioServerSocketChannelFactory.java:131)
        at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.<ini
t>(NioServerSocketChannelFactory.java:115)
        at com.corundumstudio.socketio.SocketIOServer.start(SocketIOServer.java:
76)
        at biu_nlp_net.CommonSocketIOServer.start(CommonSocketIOServer.java:67)
        at biu_nlp_net.LexicalEntailmentServer.main(LexicalEntailmentServer.java
:188)
**Caused by: java.io.IOException: Unable to establish loopback connection**
        at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source)
        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 org.jboss.netty.channel.socket.nio.AbstractNioSelector.openSelector(A
bstractNioSelector.java:336)
        ... 15 more
**Caused by: java.net.ConnectException: Connection timed out: connect**
        at sun.nio.ch.Net.connect0(Native Method)
        at sun.nio.ch.Net.connect(Unknown Source)
        at sun.nio.ch.Net.connect(Unknown Source)
        at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
        at java.nio.channels.SocketChannel.open(Unknown Source)
        ... 25 more

I run this with Java 7 on Windows 2003.

我在Windows 2003上运行Java 7。

2 个解决方案

#1


0  

This could be because of a firewall problem... You will need to check in detail here.

这可能是因为防火墙问题……您需要在这里详细检查。

#2


0  

Problem solved after rebooting the Windows machine. Probably a tired server...

重新启动Windows机器后,问题得到了解决。可能累了服务器……

#1


0  

This could be because of a firewall problem... You will need to check in detail here.

这可能是因为防火墙问题……您需要在这里详细检查。

#2


0  

Problem solved after rebooting the Windows machine. Probably a tired server...

重新启动Windows机器后,问题得到了解决。可能累了服务器……