I cannot switch right now to MINA 2.0.0-RC1
Anyway, I am using jdk 1.5 and OS is WinXP and Unix.
----- Original Message -----
From: "Emmanuel Lecharny" <[email protected]>
To: <[email protected]>
Sent: Friday, August 06, 2010 2:03 AM
Subject: Re: Error in bind
On 8/6/10 12:40 AM, Sergiy Mamit'ko wrote:
Hello
I am using MINA 1.1.7 and discovered such strange error during bind
operation in SocketAcceptor.
Just bind server with invalid host (localhost111 for example).
Binding is failed and I'm receiving error like below
java.lang.Error: Untranslated exception
at sun.nio.ch.Net.translateToSocketException(Net.java:63)
at sun.nio.ch.Net.translateException(Net.java:79)
at sun.nio.ch.Net.translateException(Net.java:85)
at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:61)
at
org.apache.mina.transport.socket.nio.SocketAcceptor.registerNew(SocketAcceptor.java:363)
at
org.apache.mina.transport.socket.nio.SocketAcceptor.access$800(SocketAcceptor.java:55)
at
org.apache.mina.transport.socket.nio.SocketAcceptor$Worker.run(SocketAcceptor.java:222)
at
org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.SocketException: Unresolved address
at sun.nio.ch.Net.translateToSocketException(Net.java:55)
... 8 more
Caused by: java.nio.channels.UnresolvedAddressException
at sun.nio.ch.Net.checkAddress(Net.java:30)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:115)
at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
... 5 more
After that application hung up and could not be finished grasefully,
because socket is not closed and thread still alive and running.
What can you suggest in order to resolve that issue?
Switch to MINA 2.0.0-RC1...
Otherwise, what is your JVM version, and what's your OS ?
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com