[ 
https://issues.apache.org/activemq/browse/SMX4KNL-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45772#action_45772
 ] 

Jamie Goodyear commented on SMX4KNL-88:
---------------------------------------

Testing with the kernel the system will exit, however no other commands are 
executed after failed command.

Appears that the hanging issue may be to do with the OSGI framework on top of 
kernel not stopping. 

13:20:24,811 | INFO  | Thread-18        | GShell                           | 
he.geronimo.gshell.spring.GShell  151 | Exiting shell due to caught exception 
org.apache.geronimo.gshell.layout.NotFoundException: ecch
org.apache.geronimo.gshell.layout.NotFoundException: ecch
        at 
org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:171)
        at 
org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:156)
        at 
org.apache.geronimo.gshell.spring.SpringCommandRegistry.findNode(SpringCommandRegistry.java:197)
        at 
org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:218)
        at 
org.apache.geronimo.gshell.DefaultCommandExecutor$1.run(DefaultCommandExecutor.java:163)
        at 
org.apache.geronimo.gshell.spring.SpringCommandExecutor$1$1.run(SpringCommandExecutor.java:67)
13:20:24,816 | INFO  | Thread-21        | GShell                           | 
.geronimo.gshell.spring.GShell$2  163 | Caught exception while shutting down 
framework: org.osgi.framework.BundleException: Stopping a bundle that is 
starting or stopping is currently not supported.
org.osgi.framework.BundleException: Stopping a bundle that is starting or 
stopping is currently not supported.
        at org.apache.felix.framework.Felix._stopBundle(Felix.java:1982)
        at org.apache.felix.framework.Felix.stopBundle(Felix.java:1954)
        at org.apache.felix.framework.Felix.stop(Felix.java:910)
        at org.apache.geronimo.gshell.spring.GShell$2.run(GShell.java:161)

> Failed kernel commands in command chain will hang processing.
> -------------------------------------------------------------
>
>                 Key: SMX4KNL-88
>                 URL: https://issues.apache.org/activemq/browse/SMX4KNL-88
>             Project: ServiceMix Kernel
>          Issue Type: Bug
>         Environment: Unix
>            Reporter: Jamie Goodyear
>
> Failed kernel commands in command chain will hang processing.
> Ex 1: 
> [EMAIL PROTECTED]:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; echo hi2\; echo 
> hi3 \; exit
> The command chain to individually echo "hi1", "hi2" and hi3" will print to 
> the terminal screen:
> hi1
> hi2
> hi3
> Then smx will exit, returning the terminal prompt.
> Ex 2:
> [EMAIL PROTECTED]:/x1/fuse/esb/bin$ ./servicemix echo hi1 \; ecco hi2\; echo 
> hi3 \; exit
> Here the command chain was intended to individually echo "hi" but in this 
> case the second echo command has been mis-spelled. Instead of an error 
> message being displayed to the screen and continuing on to echo "hi3" however 
> smx stops processing commands (the user then has to ctrl+c the process to 
> regain the terminal session).
> Is this the behavior we want to maintain? 
> Could we set some property perhaps to allow the kernel to ignore failed 
> commands in a chain?
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to