[
https://issues.apache.org/jira/browse/SLING-8268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16763448#comment-16763448
]
Sven Metzler edited comment on SLING-8268 at 2/8/19 10:01 AM:
--------------------------------------------------------------
How to fix it :
make the class MimeTypeWebConsolePlugin public instead of package-private.
Actual:
{code:java}
class MimeTypeWebConsolePlugin extends HttpServlet {
{code}
Fixed:
{code:java}
public class MimeTypeWebConsolePlugin extends HttpServlet {
{code}
in the project:
[https://github.com/apache/sling-org-apache-sling-commons-mime]
was (Author: svenmet):
I will fix this bug with a pull request
> MimeTypeWebConsolePlugin is not public
> --------------------------------------
>
> Key: SLING-8268
> URL: https://issues.apache.org/jira/browse/SLING-8268
> Project: Sling
> Issue Type: Bug
> Environment: mac os high sierra 10.13.5, karaf 4.2.2,
> mvn:org.apache.sling/org.apache.sling.commons.mime/2.2.0
> Reporter: Sven Metzler
> Priority: Minor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> By testing sling into a karaf container I see the following error:
> {code:java}
> 2019-01-31T08:46:17,277 | ERROR | features-2-thread-1 | mime
> | 236 - org.apache.sling.commons.mime - 2.2.0 | bundle
> org.apache.sling.commons.mime:2.2.0
> (236)[org.apache.sling.commons.mime.internal.MimeTypeWebConsolePlugin(246)] :
> Constructor with 0 arguments not found. Component will fail.
> {code}
> The error occurs because the class is package-private.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)