SJS Application Server / Oracle GlassFish Server Hangs During Instance Startup (Doc ID 1386506.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version: 2.1.1 to 9.0 - Release: 2.1 to 9.0
Information in this document applies to any platform.

Symptoms

Sun Java System Application Server / Oracle GlassFish Server hangs during startup.  Taking a Java thread dump shows threads with stacks similar to the following:

Thread t@112: (state = IN_NATIVE)
 - sun.nio.ch.DevPollArrayWrapper.poll0(long, int, long, int) @bci=0 (Interpreted frame)
 - sun.nio.ch.DevPollArrayWrapper.poll0(long, int, long, int) @bci=0 (Interpreted frame)
 - sun.nio.ch.DevPollArrayWrapper.poll(long) @bci=18, line=164 (Interpreted frame)
 - sun.nio.ch.DevPollSelectorImpl.doSelect(long) @bci=28, line=68 (Interpreted frame)
 - sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69 (Interpreted frame)
 - sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASSelector.select(long) @bci=5, line=120 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASInputStream.waitForSelect() @bci=43, line=119 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASInputStream.read(java.nio.ByteBuffer) @bci=5, line=99 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASInputStream.read(byte[], int, int) @bci=101, line=91 (Interpreted frame)

 - java.io.FilterInputStream.read(byte[], int, int) @bci=7, line=111 (Interpreted frame)
 - java.io.BufferedInputStream.fill() @bci=175, line=218 (Interpreted frame)
 - java.io.BufferedInputStream.read1(byte[], int, int) @bci=44, line=256 (Interpreted frame)
 - java.io.BufferedInputStream.read(byte[], int, int) @bci=49, line=313 (Compiled frame)
 - com.sun.messaging.jmq.io.ReadOnlyPacket.readFully(java.io.InputStream, byte[], int, int, boolean) @bci=37, line=243 (Interpreted frame)
 - com.sun.messaging.jmq.io.ReadOnlyPacket.readFixedHeader(java.io.InputStream) @bci=14, line=163 (Interpreted frame)
 - com.sun.messaging.jmq.io.ReadOnlyPacket.readPacket(java.io.InputStream) @bci=2, line=123 (Interpreted frame)
 - com.sun.messaging.jmq.io.ReadWritePacket.readPacket(java.io.InputStream) @bci=2, line=53 (Interpreted frame)
 - com.sun.messaging.jmq.jmsclient.ProtocolHandler.readPacket() @bci=15, line=1702 (Interpreted frame)
 - com.sun.messaging.jmq.jmsclient.ReadChannel.run() @bci=13, line=1121 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)

Thread t@110: (state = IN_NATIVE)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=-12891083 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=0 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept() @bci=130, line=145 (Interpreted frame)
 - sun.nio.ch.ServerSocketAdaptor.accept() @bci=39, line=84 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.acceptSocket() @bci=4, line=174 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.accept() @bci=21, line=154 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocketImpl.accept(java.net.SocketImpl) @bci=4, line=161 (Interpreted frame)
 - java.net.ServerSocket.implAccept(java.net.Socket) @bci=50, line=450 (Interpreted frame)
 - com.wily.introscope.agent.probe.net.ManagedServerSocket.accept() @bci=7, line=267 (Interpreted frame)
 - com.sun.messaging.jmq.jmsserver.net.tcp.TcpProtocol.accept() @bci=282, line=252 (Interpreted frame)
 - com.sun.messaging.jmq.jmsserver.service.imq.IMQService.run() @bci=127, line=654 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)

Thread t@103: (state = IN_NATIVE)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=0 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=0 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept() @bci=130, line=145 (Interpreted frame)
 - sun.nio.ch.ServerSocketAdaptor.accept() @bci=39, line=84 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.acceptSocket() @bci=4, line=174 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.accept() @bci=21, line=154 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocketImpl.accept(java.net.SocketImpl) @bci=4, line=161 (Interpreted frame)
 - java.net.ServerSocket.implAccept(java.net.Socket) @bci=50, line=450 (Interpreted frame)
 - java.net.ServerSocket.accept() @bci=48, line=421 (Interpreted frame)
 - sun.rmi.transport.tcp.TCPTransport.run() @bci=59, line=340 (Interpreted frame)
 - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame)

Thread t@93: (state = IN_NATIVE)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=-12891083 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept0(java.io.FileDescriptor, java.io.FileDescriptor, java.net.InetSocketAddress[]) @bci=0 (Interpreted frame)
 - sun.nio.ch.ServerSocketChannelImpl.accept() @bci=130, line=145 (Interpreted frame)
 - sun.nio.ch.ServerSocketAdaptor.accept() @bci=39, line=84 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.acceptSocket() @bci=4, line=174 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocket.accept() @bci=21, line=154 (Interpreted frame)
 - com.sun.enterprise.server.ss.provider.ASServerSocketImpl.accept(java.net.SocketImpl) @bci=4, line=161 (Interpreted frame)
 - java.net.ServerSocket.implAccept(java.net.Socket) @bci=50, line=450 (Interpreted frame)
 - com.sun.net.ssl.internal.ssl.SSLServerSocketImpl.accept() @bci=38, line=259 (Interpreted frame)
 - com.sun.corba.ee.impl.transport.SocketOrChannelAcceptorImpl.accept() @bci=15, line=235 (Interpreted frame)
 - com.sun.corba.ee.impl.transport.ListenerThreadImpl.doWork() @bci=83, line=72 (Interpreted frame)
 - com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run() @bci=139, line=479 (Interpreted frame)

Thread t@86: (state = IN_NATIVE)
 - sun.nio.ch.DevPollArrayWrapper.poll0(long, int, long, int) @bci=0 (Compiled frame; information may be imprecise)
 - sun.nio.ch.DevPollArrayWrapper.poll(long) @bci=18, line=164 (Compiled frame)
 - sun.nio.ch.DevPollSelectorImpl.doSelect(long) @bci=28, line=68 (Compiled frame)
 - sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=69 (Compiled frame)
 - sun.nio.ch.SelectorImpl.select(long) @bci=30, line=80 (Compiled frame)
 - com.sun.enterprise.server.ss.provider.ASSelector.select(long) @bci=5, line=120 (Compiled frame)
 - com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect() @bci=17, line=1197 (Compiled frame)
 - com.sun.enterprise.web.connector.grizzly.SelectorThread.startNonBlockingMode() @bci=8, line=1178 (Interpreted frame)
 - com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint() @bci=62, line=1097 (Interpreted frame)
 - com.sun.enterprise.web.connector.grizzly.SelectorThread.run() @bci=1, line=1068 (Interpreted frame)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms