You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by as...@apache.org on 2016/11/02 10:54:55 UTC
svn commit: r1767631 -
/sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java
Author: asanso
Date: Wed Nov 2 10:54:55 2016
New Revision: 1767631
URL: http://svn.apache.org/viewvc?rev=1767631&view=rev
Log:
SLING-6222 - [Startup ERROR] org.apache.sling.commons.mime FrameworkEvent ERROR (The bundle is uninstalled.)
Modified:
sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java
Modified: sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java?rev=1767631&r1=1767630&r2=1767631&view=diff
==============================================================================
--- sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java (original)
+++ sling/trunk/bundles/commons/mime/src/main/java/org/apache/sling/commons/mime/internal/MimeTypeServiceImpl.java Wed Nov 2 10:54:55 2016
@@ -256,10 +256,14 @@ public class MimeTypeServiceImpl impleme
@Override
public void bundleChanged(BundleEvent event) {
if (event.getType() == BundleEvent.RESOLVED) {
- this.registerMimeType(event.getBundle().getEntry(MIME_TYPES));
+ try {
+ this.registerMimeType(event.getBundle().getEntry(MIME_TYPES));
+ } catch (IllegalStateException ie) {
+ log(LogService.LOG_INFO, "bundleChanged: an issue while registering the mime type occurred", null);
+ }
}
}
-
+
// ---------- plugin support -----------------------------------------------
Map<String, String> getMimeMap() {