You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Valentin Valchev (Updated) (JIRA)" <ji...@apache.org> on 2012/03/28 09:20:33 UTC

[jira] [Updated] (FELIX-3405) NPE in Web Console

     [ https://issues.apache.org/jira/browse/FELIX-3405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev updated FELIX-3405:
------------------------------------

    Description: 
I've created a plugin but forgot to add the template. So normally it failed, but with NPE. This shouldn't happen at all:

{code}
fw>$start 18
 [ERROR]0 : Error occurred while trying to activate bundle!
java.lang.NullPointerException
        at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159)
        at javax.servlet.GenericServlet.log(GenericServlet.java:253)
        at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:864)
        at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:832)
        at com.prosyst.mbs.impl.services.tee.webconsole.TeePlugin.<init>(Unknown Source)
        at com.prosyst.mbs.impl.services.tee.webconsole.Activator.registerPlugin(Unknown Source)
        at com.prosyst.mbs.impl.services.tee.webconsole.Activator.start(Unknown Source)
        at com.prosyst.mbs.impl.framework.BundleImpl.startIt(BundleImpl.java:4304)
        at com.prosyst.mbs.impl.framework.BundleImpl.simpleStart(BundleImpl.java:1744)
        at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1642)
        at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1515)
        at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1350)
        at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1060)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1295)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1277)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.executeCommand(DefaultFrameworkPlugable.java:499)
        at com.prosyst.util.PluggableCommandsProxy.executeCommand(PluggableCommandsProxy.java:103)
        at com.prosyst.util.impl.parser.ParserServiceImpl.parseCommand(ParserServiceImpl.java:323)
        at com.prosyst.util.impl.console.ConsoleAc
{code}

  was:
I've created a plugin but forgot to add the template. So normally it failed, but with NPE. This shouldn't happen at all:

{noformat}
fw>$start 18
 [ERROR]0 : Error occurred while trying to activate bundle!
java.lang.NullPointerException
        at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159)
        at javax.servlet.GenericServlet.log(GenericServlet.java:253)
        at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:864)
        at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:832)
        at com.prosyst.mbs.impl.services.tee.webconsole.TeePlugin.<init>(Unknown Source)
        at com.prosyst.mbs.impl.services.tee.webconsole.Activator.registerPlugin(Unknown Source)
        at com.prosyst.mbs.impl.services.tee.webconsole.Activator.start(Unknown Source)
        at com.prosyst.mbs.impl.framework.BundleImpl.startIt(BundleImpl.java:4304)
        at com.prosyst.mbs.impl.framework.BundleImpl.simpleStart(BundleImpl.java:1744)
        at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1642)
        at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1515)
        at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1350)
        at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1060)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1295)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1277)
        at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.executeCommand(DefaultFrameworkPlugable.java:499)
        at com.prosyst.util.PluggableCommandsProxy.executeCommand(PluggableCommandsProxy.java:103)
        at com.prosyst.util.impl.parser.ParserServiceImpl.parseCommand(ParserServiceImpl.java:323)
        at com.prosyst.util.impl.console.ConsoleAc
{noformat}

    
> NPE in Web Console
> ------------------
>
>                 Key: FELIX-3405
>                 URL: https://issues.apache.org/jira/browse/FELIX-3405
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>            Reporter: Valentin Valchev
>            Assignee: Valentin Valchev
>
> I've created a plugin but forgot to add the template. So normally it failed, but with NPE. This shouldn't happen at all:
> {code}
> fw>$start 18
>  [ERROR]0 : Error occurred while trying to activate bundle!
> java.lang.NullPointerException
>         at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:159)
>         at javax.servlet.GenericServlet.log(GenericServlet.java:253)
>         at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:864)
>         at org.apache.felix.webconsole.AbstractWebConsolePlugin.readTemplateFile(AbstractWebConsolePlugin.java:832)
>         at com.prosyst.mbs.impl.services.tee.webconsole.TeePlugin.<init>(Unknown Source)
>         at com.prosyst.mbs.impl.services.tee.webconsole.Activator.registerPlugin(Unknown Source)
>         at com.prosyst.mbs.impl.services.tee.webconsole.Activator.start(Unknown Source)
>         at com.prosyst.mbs.impl.framework.BundleImpl.startIt(BundleImpl.java:4304)
>         at com.prosyst.mbs.impl.framework.BundleImpl.simpleStart(BundleImpl.java:1744)
>         at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1642)
>         at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:1515)
>         at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1350)
>         at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:1060)
>         at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1295)
>         at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.start(DefaultFrameworkPlugable.java:1277)
>         at com.prosyst.util.impl.parser.DefaultFrameworkPlugable.executeCommand(DefaultFrameworkPlugable.java:499)
>         at com.prosyst.util.PluggableCommandsProxy.executeCommand(PluggableCommandsProxy.java:103)
>         at com.prosyst.util.impl.parser.ParserServiceImpl.parseCommand(ParserServiceImpl.java:323)
>         at com.prosyst.util.impl.console.ConsoleAc
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira