resolve issue: java.lang.IllegalStateException: Shutdown in progress

This commit is contained in:
Jarred Li
2012-08-14 15:48:42 +08:00
parent 0f5a0fc85c
commit 7acc0db4de
3 changed files with 16 additions and 4 deletions

View File

@@ -88,8 +88,6 @@ public class Bootstrap {
for (Converter converter : converters.values()) {
shell.getSimpleParser().add(converter);
}
shell.start();
}
private void createApplicationContext() {
@@ -186,6 +184,7 @@ public class Bootstrap {
}
}
else {
shell.start();
shell.promptLoop();
exitShellRequest = shell.getExitShellRequest();
if (exitShellRequest == null) {