On Thu, Oct 20, 2011 at 9:45 AM, Rob Walker <[email protected]> wrote:
> Warning - despite working on OSGi and Felix for years, I may be about to
> sound like total noob!
>
> Updating to latest Felix and bundles, we hit an odd startup freeze that we
> never had before. Still digging for the cause.
>
> I'm about to start digging in Start Levels code - but maybe someone knows
> the answer to 1 question that's coming to mind.
>
> We seem to be getting a scenario where our HTTP Service (which is at a start
> level of 1) is getting blocked by bundles at a higher start level. It's
> still trying to register it's service but I can also see bundles with higher
> start levels already running.
>
> I did a double take when I saw this in the stack traces. I thought a
> framework would only move to the next start level once all bundles in the
> current start level had actually completed their startup. But maybe that's a
> misconception on my part ? Perhaps the API contract is only that start has
> been invoked on all bundles in a start level before it advances

Yes, that is the case -- hence, if the http bundle does try to
register its service in another thread after it has been started it
might be possible that it is getting blocked because in order to
publish a service we do need to get some locks. Can you share the
stacktrace?

regards,

Karl

> -- Rob
>
>
> Ascert - Taking systems to the Edge
> [email protected]
> +44 (0)20 7488 3470
> www.ascert.com
>
>



-- 
Karl Pauls
[email protected]
http://twitter.com/karlpauls
http://www.linkedin.com/in/karlpauls
https://profiles.google.com/karlpauls

Reply via email to