SCR logs "java.lang.IllegalStateException: Invalid BundleContext" when activating components --------------------------------------------------------------------------------------------
Key: FELIX-698 URL: https://issues.apache.org/jira/browse/FELIX-698 Project: Felix Issue Type: Bug Components: Declarative Services (SCR) Affects Versions: scr-1.0.4, scr-1.0.6 Reporter: Felix Meschberger Assignee: Felix Meschberger Fix For: scr-1.0.6 Reported by Jared Mac in [1]: The SCR Activator may log an "java.lang.IllegalStateException: Invalid BundleContext" error when trying to activate the components of bundles. This may be the case if the bundle whose components are to be activated has been stopped in the mean time. We cannot prevent this from happening, but we may do better logging here: We should catch the IllegalStateException and check whether the bundle is not activate any more. If so, we just log an informational message because the bundle's components will be loaded later when the bundle is started again. [1] http://markmail.org/message/herp3qd4ts4t73tc -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.