Hanging when calling NioServerSocketChannelFactory.releaseExternalResources()
aspen264
tomcondon at mac.com
Mon Oct 26 15:23:25 EDT 2009
I am sure that I am not in a netty thread when I do this. I see this happen
running JUnits tests. After running the tests several times successfully,
one test in particular will start to hang. It seems that a netty server
thread does not terminate. Here is the top part of the stacktrace from a
thread dump. Any Ideas?:
main at 1, prio=5, in group 'main', status: 'waiting'
java.lang.Thread.State: WAITING
at sun.misc.Unsafe.park(Unsafe.java:-1)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
at
java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1245)
at
org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:87)
at
org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.releaseExternalResources(NioServerSocketChannelFactory.java:146)
at
com.company.util.net.transport.ServerNetworkControllerImpl.performPostShutdownCleanup(ServerNetworkControllerImpl.java:81)
at
com.company.util.net.transport.BaseNetworkController.shutdown(BaseNetworkController.java:69)
--
View this message in context: http://n2.nabble.com/Hanging-when-calling-NioServerSocketChannelFactory-releaseExternalResources-tp3894369p3894369.html
Sent from the Netty User Group mailing list archive at Nabble.com.
More information about the netty-users
mailing list