Glassfish instance does not startup due to StackOverFlowError Exception (Doc ID 1174393.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 2.1 to 2.1 [Release 2.1]
Information in this document applies to any platform.
***Checked for relevance on 22-Feb-2013***

Symptoms

Glassfish instance does not start up. There is a WARNING logged to server.log. The WARNING is:
"Local broker: Exception in thread "main" java.lang.StackOverflowError".

There will be a series of such WARNING logged to the server.log in sequence below:

1. Java StackOverflowError exceptions
2. Java Message Queue (JMS) server exceptions
3. Java Connection refused exceptions
4. Message Queue (MQ) Broker aborted exceptions

Sample of the server.log entries:

1. Java StackOverflowError exceptions

[#|2010-08-12T14:30:57.247+0800|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|
_ThreadID=14;_ThreadName=Thread-12;_RequestID=76e9039b-92d3-4e4c-9570-faf06270b2c9;|
Local broker: Exception in thread "main" java.lang.StackOverflowError|#]

Local broker: at java.lang.ClassLoader.defineClass1(Native Method)
Local broker: at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
Local broker: at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
Local broker: at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
Local broker: at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
..
Local broker: at java.lang.Class.forName(Class.java:169)


2. Java Message Queue (JMS) server exceptions

Local broker: at com.sun.messaging.jmq.jmsserver.management.agent.Agent.initJesmf(Agent.java:514)
Local broker: at com.sun.messaging.jmq.jmsserver.management.agent.Agent.init(Agent.java:504)
Local broker: at com.sun.messaging.jmq.jmsserver.management.agent.Agent.<init>(Agent.java:179)
Local broker: at com.sun.messaging.jmq.jmsserver.Broker._start(Broker.java:1053)
Local broker: at com.sun.messaging.jmq.jmsserver.Broker.start(Broker.java:410)
Local broker: at com.sun.messaging.jmq.jmsserver.Broker.main(Broker.java:1962)


3. Java Connection refused exceptions

[localhost:37676]. - cause: java.net.ConnectException: Connection refused
Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused
Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused
Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused
Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused
Error occurred on connection creation [localhost:37676]. - cause: java.net.ConnectException: Connection refused


4. Message Queue (MQ) Broker aborted exceptions.

MQJMSRA_LB4001: start:Ping broker failed 60008 millis after broker start performed. Failing ra.start()
MQJMSRA_LB4001: start:Aborting:Check Broker Log File at:/opt/sunone/128643-20/nodeagents/macross4duke/instance3/imq/instances/myclusterinstance3/log/lo
MQJMSRA_LB4001: start:Aborting:Check Broker Password File at:/var/tmp/asmq268621862638301134.tmp
MQJMSRA_RA4001: start:Aborting:Exception starting LOCAL broker=MQJMSRA_LB4001: start:Aborted:Unable to ping Broker within 60000 millis (startTimeOut)
java.lang.RuntimeException: MQJMSRA_LB4001: start:Aborted:Unable to ping Broker within 60000 millis (startTimeOut)
at com.sun.messaging.jms.ra.LocalBrokerRunner.start(LocalBrokerRunner.java:365)
at com.sun.messaging.jms.ra.LifecycleManagedBroker.start(LifecycleManagedBroker.java:308)
at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:314)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:180)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.startResourceAdapter(ActiveInboundResourceAdapter.java:174)
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:132)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:235)
at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:107)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:300)
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:445)
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:230)
at com.sun.enterprise.jms.JmsProviderLifecycle.onStartup(JmsProviderLifecycle.java:451)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
at com.sun.enterprise.server.PEMain.run(PEMain.java:398)
at com.sun.enterprise.server.PEMain.main(PEMain.java:325)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:415)



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