Node failed to start due to a java.lang.StackOverflowError exception.

Node failed to start due to a java.lang.StackOverflowError exception.

book

Article ID: KB0093428

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
TIBCO BPM Enterprise (formerly TIBCO ActiveMatrix BPM) -
TIBCO ActiveMatrix BusinessWorks Service Engine -

Description

Description:
Starting a node failed and the node Startup Mode went into a 'Disabled' state. The following error is printed in the node-stdout.log file which is present in the <CONFIG-HOME>\tibcohost\<Instance-Name>\data_3.2.x\host\logs folder.
==
 TIBCO-AMX-INFRA-001057: OSGi Launcher Error: The OSGi Launcher could not start an OSGi runtime.: java.lang.StackOverflowError
at com.tibco.neo.machine.osgi.internal.OSGiFramework.<init>(OSGiFramework.java:319)
  at com.tibco.neo.machine.osgi.OSGiLauncher.start(OSGiLauncher.java:1088)
  at com.tibco.amf.hpa.tibcohost.node.launch.Main.launchMain(Main.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at com.tibco.neo.machine.launch.FlatLauncher.setupAndStartExecution(FlatLauncher.java:225)
  at com.tibco.neo.machine.launch.BaseLauncher.runUpgradable(BaseLauncher.java:147)
  at com.tibco.neo.machine.launch.BaseLauncher.run(BaseLauncher.java:45)
  at com.tibco.neo.machine.launch.Main.main(Main.java:84)
 Caused by: java.lang.StackOverflowError
==

Issue/Introduction

Node failed to start due to a java.lang.StackOverflowError exception.

Resolution

This error indicates that the default JVM stack size is not sufficient. You may increase the stack size used by the node through the following steps.


1). Open the node TRA file (under <CONFIG-HOME>\tibcohost\<Instance-Name>\data_3.2.x\nodes\<node-name>\bin folder) and increase the value of -Xss in the java.properties parameter. Double the value if it exists; if not, start with the parameter -Xss256K.


Example: java.extended.properties=-Xmx512m -Xms128m -XX\:MaxPermSize\=192m -Xss256K -XX\:+HeapDumpOnOutOfMemoryError -Damx.securitymanager.enabled\=false


2). Invoke the Tibco host command line to revert the node start mode back to Automatic.


Go to <config_home>/tibcohost/<hostname>/host/bin and run the command- 

tibcohost setNodeStartMode -nodeName DevNode -startMode auto

3). Start the node with the -clean option.

tibcohost startNodes -nodeName DevNode -clean