Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3405

NPE in Web Console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-3.1.8
    • webconsole-4.0.0
    • Web Console
    • None

    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:

      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
      

      Attachments

        Activity

          People

            v_valchev Valentin Valchev
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: