New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: stack is empty #2914

Closed
vinillum opened this Issue Nov 2, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@vinillum

vinillum commented Nov 2, 2017

Issue type: Bug report

My Rundeck detail

  • Rundeck version: 2.10.0, 2.9.4
  • install type: rpm
  • OS Name/version: Red Hat Enterprise Linux 6.7
  • DB Type/version: mysql 14.14

Expected Behavior

Job succeeds

Actual Behavior

Job fails with the following:

11:44:03 | localhost | 29. Checking server state | Exception while executing step [29]: [java.lang.IllegalStateException: stack is empty]
-- | -- | -- | --
11:44:03 |   |   | java.lang.RuntimeException: java.lang.IllegalStateException: stack is empty
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.engine.StepCallable.apply(StepCallable.java:87)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.engine.StepOperation.apply(StepOperation.java:73)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.engine.StepOperation.apply(StepOperation.java:31)
11:44:03 |   |   | at com.dtolabs.rundeck.core.rules.WorkflowEngineOperationsProcessor.lambda$processRunnableOperations$27(WorkflowEngineOperationsProcessor.java:197)
11:44:03 |   |   | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
11:44:03 |   |   | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
11:44:03 |   |   | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
11:44:03 |   |   | at java.lang.Thread.run(Thread.java:745)
11:44:03 |   |   | Caused by: java.lang.IllegalStateException: stack is empty
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.ContextStack.pop(ContextStack.java:69)
11:44:03 |   |   | at com.dtolabs.rundeck.core.logging.OverridableStreamingLogWriter.removeOverride(OverridableStreamingLogWriter.java:99)
11:44:03 |   |   | at com.dtolabs.rundeck.core.logging.LoggingManagerImpl$MyPluginLoggingManager.end(LoggingManagerImpl.java:154)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.ExecutionServiceImpl.executeStep(ExecutionServiceImpl.java:100)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor.executeWFItem(BaseWorkflowExecutor.java:291)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.BaseWorkflowExecutor.executeWorkflowStep(BaseWorkflowExecutor.java:687)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.engine.StepCallable.apply(StepCallable.java:71)
11:44:03 |   |   | ... 7 more
11:44:03 |   |   | Exception while executing step [29]: 	[java.lang.RuntimeException: java.lang.IllegalStateException: stack is empty]
11:44:03 |   |   | Exception in thread "Thread-27790" java.lang.IllegalStateException: stack is empty
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.workflow.ContextStack.pop(ContextStack.java:69)
11:44:03 |   |   | at com.dtolabs.rundeck.core.logging.OverridableStreamingLogWriter.removeOverride(OverridableStreamingLogWriter.java:99)
11:44:03 |   |   | at com.dtolabs.rundeck.core.logging.LoggingManagerImpl$MyPluginLoggingManager.end(LoggingManagerImpl.java:154)
11:44:03 |   |   | at com.dtolabs.rundeck.core.logging.LoggingManagerImpl$MyPluginLoggingManager.runWith(LoggingManagerImpl.java:134)
11:44:03 |   |   | at com.dtolabs.rundeck.core.execution.WorkflowExecutionServiceThread.run(WorkflowExecutionServiceThread.java:67)
11:44:03 |   |   | Execution failed: 2610262 in project xxxx: null

How to reproduce Behavior

I have not found a way to reproduce this error, it seems to happen randomly, however this issue only started since we upgraded from 2.9.2 to 2.10.0 (same issue spotted even in 2.9.4 after we downgraded to it).

@vinillum

This comment has been minimized.

Show comment
Hide comment
@vinillum

vinillum Nov 2, 2017

Worth mentioning that even on the same job, with the same parameters, it fails with this error on different steps each time.

vinillum commented Nov 2, 2017

Worth mentioning that even on the same job, with the same parameters, it fails with this error on different steps each time.

@puremourning

This comment has been minimized.

Show comment
Hide comment
@puremourning

puremourning Nov 10, 2017

I have seen this regularly on 2.9.4 also. Along with random NullPointerExceptions (with no stack trace) and the other IllegalStateExceptions. I'm hoping that they are all fixed by #2887

puremourning commented Nov 10, 2017

I have seen this regularly on 2.9.4 also. Along with random NullPointerExceptions (with no stack trace) and the other IllegalStateExceptions. I'm hoping that they are all fixed by #2887

@pbenas

This comment has been minimized.

Show comment
Hide comment
@pbenas

pbenas Nov 13, 2017

I have just seen the same stacktrace in my Rundeck 2.10.0.

pbenas commented Nov 13, 2017

I have just seen the same stacktrace in my Rundeck 2.10.0.

@gschueler

This comment has been minimized.

Show comment
Hide comment
@gschueler

gschueler Nov 13, 2017

Member

I believe this is the same as #2887 , if you want to try the 2.10.1-SNAPSHOT, it is available here https://bintray.com/rundeck/

Member

gschueler commented Nov 13, 2017

I believe this is the same as #2887 , if you want to try the 2.10.1-SNAPSHOT, it is available here https://bintray.com/rundeck/

@gschueler gschueler added this to the 2.10.x milestone Nov 15, 2017

@gschueler gschueler closed this Nov 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment