[
https://issues.apache.org/jira/browse/SLING-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15689557#comment-15689557
]
Felix Meschberger commented on SLING-6315:
------------------------------------------
bq. Is it still possible to have a race condition
Unless you implement a synchronous event listener, which I strongly discourage,
yes, there is a chance for a race condition. Is this a problem ? This should be
rare.
Even this situation that you are trying to fix/workaround should really be
extremely rare and only on a "flickering" system, which might even hint at a
problematic underlying provisioning function !
So maybe, it might even make sense to *not* do anything about this problem in
the event listener but rather seek to fix the "system flickering" in the
provisioning function ? As in "fix the root not the symptom"
> o.a.sling.scripting.core: IllegalStateException: The bundle is uninstalled
> --------------------------------------------------------------------------
>
> Key: SLING-6315
> URL: https://issues.apache.org/jira/browse/SLING-6315
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Reporter: Antonio Sanso
> Assignee: Antonio Sanso
> Priority: Minor
>
> {noformat}
> 18.11.2016 02:58:23.445 *ERROR* [FelixDispatchQueue]
> org.apache.sling.scripting.core FrameworkEvent ERROR
> (java.lang.IllegalStateException: The bundle is
> uninstalled.)java.lang.IllegalStateException: The bundle is uninstalled.
> at org.apache.felix.framework.Felix.getBundleEntry(Felix.java:1741)
> at org.apache.felix.framework.BundleImpl.getEntry(BundleImpl.java:291)
> at
> org.apache.sling.scripting.core.impl.ScriptEngineManagerFactory.bundleChanged(ScriptEngineManagerFactory.java:158)
> at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:916)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:835)
> at
> org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:1148)
> at
> org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:55)
> at
> org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:103)
> at java.lang.Thread.run(Thread.java:745)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)