Skip to content
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: Unable to add commands to a closed shell #40

Open
abeboparebop opened this issue May 8, 2015 · 2 comments

Comments

@abeboparebop
Copy link

I'm getting the RootTools shell and executing commands like so:

RootTools.getShell(true).add(cmd);

and sometimes (not always, and not reproduceably) it throws the error mentioned above.

In the same code, I'm performing various other root commands, using other RootTools functions (copyFile, remount), and also explicitly running some commands with Runtime.getRuntime().exec(), both before and after this call. But I'm only explicitly calling getShell once. How can I fix/work around this issue? I can check to see if the shell that getShell returns is closed, but I don't know how to get an open shell in that case.

@ryan1978
Copy link

ryan1978 commented Mar 7, 2016

I've got the exact same issue myself. Did you ever figure out was the cause was or how to get around it?

@abeboparebop
Copy link
Author

No, I'm sorry. We ultimately decided that we could deal with it, basically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants