[
https://issues.apache.org/jira/browse/FELIX-3703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474073#comment-13474073
]
Tomas Pan commented on FELIX-3703:
----------------------------------
Hi Derek, perhaps I am doing something wrong during initialization, please find
attached test case. When I start runtime after command and shell, I don't see
the gogo shell and the "Gogo shell" thread is killed by this exception:
gogo: CommandNotFoundException: Command not found: gosh
org.apache.felix.gogo.runtime.CommandNotFoundException: Command not found: gosh
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)
at
org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
at
org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
at java.lang.Thread.run(Thread.java:662)
> Race condition in gogo runtime activator
> ----------------------------------------
>
> Key: FELIX-3703
> URL: https://issues.apache.org/jira/browse/FELIX-3703
> Project: Felix
> Issue Type: Bug
> Components: Gogo Runtime
> Affects Versions: gogo.runtime-0.10.0
> Environment: Embedded felix 4.0.3
> Reporter: Tomas Pan
> Attachments: my.patch, osgi-embedded.zip
>
>
> Starting gogo.command (0.12.0) before gogo.runtime(0.10.0) produces
> CommandNotFoundException: Command not found: gosh.
> This is because runtime's Activator first registers CommandProcessor before
> creating commandTracker.
> Creating CommandProcessor triggers event on .command which will start adding
> commands, but since commandTracker is not present, those commands will be
> ignored.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira