Bamboo does not start due to java.util.EmptyStackException

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Bamboo does not start due to java.util.EmptyStackException error.

Diagnosis

The message below can be found in the atlassian-bamboo.log file:

java.util.EmptyStackException
	at java.util.Stack.peek(Stack.java:102)
	at com.atlassian.bamboo.setup.DefaultSetupPersister.getCurrentStep(DefaultSetupPersister.java:122)
	at com.atlassian.bamboo.ww2.actions.setup.SelectSetupStepAction.execute(SelectSetupStepAction.java:22)
	at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)
	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)
	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)
	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)
	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)
	at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
	at ognl.SimpleNode.getValue(SimpleNode.java:258)


Cause

The most common cause of this error is the <bamboo-home>/bamboo.cfg.xml file does not have the correct permissions.

Solution

Check if the file <bamboo-home>/bamboo.cfg.xml has the correct privileges and permissions. The user that's being used to start Bamboo should be the owner of the file and must have full permission on it.



Last modified on Sep 3, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.