[ 
https://issues.apache.org/jira/browse/SLING-6222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15625609#comment-15625609
 ] 

Felix Meschberger commented on SLING-6222:
------------------------------------------

Looks like a concurrency situation with bundles oscillating between being 
resolved and soon uninstalled ...

* I suggest to only catch the registerMimeType line inside the if statement.
* I suggest to not call the message "uninstalled". Just indicate an error 
registering the mime type.
* Maybe add the bundle identification to the log message



> [Startup ERROR] org.apache.sling.commons.mime FrameworkEvent ERROR (The 
> bundle is uninstalled.)
> -----------------------------------------------------------------------------------------------
>
>                 Key: SLING-6222
>                 URL: https://issues.apache.org/jira/browse/SLING-6222
>             Project: Sling
>          Issue Type: Bug
>          Components: Commons
>            Reporter: Antonio Sanso
>            Assignee: Antonio Sanso
>            Priority: Minor
>
> During startup, the following ERROR randomly appears in the logs:
> {code}
> 25.10.2016 07:57:53.712 *ERROR* [FelixDispatchQueue] 
> org.apache.sling.commons.mime 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.commons.mime.internal.MimeTypeServiceImpl.bundleChanged(MimeTypeServiceImpl.java:249)
>       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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to