felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Baum (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3703) Race condition in gogo runtime activator
Date Thu, 11 Oct 2012 13:17:02 GMT

    [ https://issues.apache.org/jira/browse/FELIX-3703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474127#comment-13474127

Derek Baum commented on FELIX-3703:

Hi Thomas,

Thanks for the stack trace and test case.

Coincidently, I recently filed FELIX-3706 which fixes this problem.
(I didn't realise it was the same problem until I saw the stack trace).

Your test case works if you use gogo-shell-0.11.0-SNAPSHOT, using the subversion HEAD containing
the fix for FELIX-3706.
> 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
> 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

View raw message