Valentin Valchev created FELIX-5031:
---------------------------------------

             Summary: NPE in Web Console configuration plugin when metatype 
service is missing
                 Key: FELIX-5031
                 URL: https://issues.apache.org/jira/browse/FELIX-5031
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-4.2.10
            Reporter: Valentin Valchev
            Assignee: Valentin Valchev
            Priority: Critical


The following exception occurs when metatype service is missing:
{code}
java.lang.NullPointerException
        at 
org.apache.felix.webconsole.internal.configuration.ConfigAdminSupport.getConfigurationPropertyValueOrDefault(ConfigAdminSupport.java:703)
        at 
org.apache.felix.webconsole.internal.configuration.ConfigAdminSupport.getConfigurationFactoryNameHint(ConfigAdminSupport.java:641)
        at 
org.apache.felix.webconsole.internal.configuration.ConfigAdminSupport.listConfigurations(ConfigAdminSupport.java:608)
        at 
org.apache.felix.webconsole.internal.configuration.ConfigManager.renderContent(ConfigManager.java:395)
        at 
org.apache.felix.webconsole.AbstractWebConsolePlugin.doGet(AbstractWebConsolePlugin.java:194)
        at 
org.apache.felix.webconsole.internal.configuration.ConfigManager.doGet(ConfigManager.java:330)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:567)
        at 
org.apache.felix.webconsole.internal.servlet.OsgiManager$3.run(OsgiManager.java:465)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:461)

{code}

As result all configurations are missing and the plugin becomes completely 
unusable.



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

Reply via email to