Exception in thread "main" org.apache.mina.core.RuntimeIoException: Failed to initialize.
at org.apache.mina.core.polling.AbstractPollingConnectionlessIoAcceptor.<init>(AbstractPollingConnectionlessIoAcceptor.java:123)
at org.apache.mina.core.polling.AbstractPollingConnectionlessIoAcceptor.<init>(AbstractPollingConnectionlessIoAcceptor.java:101)
at org.apache.mina.transport.socket.nio.NioDatagramAcceptor.<init>(NioDatagramAcceptor.java:57)
at net.openmob.mobileimsdk.server.ServerLauncher.initAcceptor(ServerLauncher.java:91)
at net.openmob.mobileimsdk.server.ServerLauncher.startup(ServerLauncher.java:71)
at net.openmob.mobileimsdk.server.demo.ServerLauncherImpl.main(ServerLauncherImpl.java:56)
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.apache.mina.transport.socket.nio.NioDatagramAcceptor.init(NioDatagramAcceptor.java:69)
at org.apache.mina.core.polling.AbstractPollingConnectionlessIoAcceptor.<init>(AbstractPollingConnectionlessIoAcceptor.java:114)
... 5 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)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(Unknown Source)
... 16 more
at net.openmob.mobileimsdk.server.ServerLauncher.initAcceptor(ServerLauncher.java:91)
是这一句
NioDatagramAcceptor acceptor = new NioDatagramAcceptor();
Exception in thread "main" org.apache.mina.core.RuntimeIoException: Failed to initialize.
at org.apache.mina.core.polling.AbstractPollingConnectionlessIoAcceptor.<init>(AbstractPollingConnectionlessIoAcceptor.java:123)
at org.apache.mina.core.polling.AbstractPollingConnectionlessIoAcceptor.<init>(AbstractPollingConnectionlessIoAcceptor.java:101)
at org.apache.mina.transport.socket.nio.NioDatagramAcceptor.<init>(NioDatagramAcceptor.java:57)
at net.openmob.mobileimsdk.server.ServerLauncher.initAcceptor(ServerLauncher.java:91)
at net.openmob.mobileimsdk.server.ServerLauncher.startup(ServerLauncher.java:71)
at net.openmob.mobileimsdk.server.demo.ServerLauncherImpl.main(ServerLauncherImpl.java:56)