Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-142

NPE at org.apache.felix.webconsole.internal.servlet.OsgiManager.service - karaf started in server mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • 2.1.0
    • None
    • None

    Description

      The following error is generated when we try to reach the web console of karaf

      16:58:47,964 | WARN  | 7@qtp-28812593-0 | jetty                            | service.jetty.internal.JCLLogger  115 | 55 - org.ops4j.pax.web.pax-web-jetty - 0.7.2 | /syste
      m/console/
      java.lang.NullPointerException
              at java.lang.String.concat(String.java:1996)[:1.6.0_20]
              at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:360)[58:org.apache.felix.webconsole:3.1.0]
              at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:340)[58:org.apache.felix.webconsole:3.1.0]
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)[55:org.ops4j.pax.web.pax-web-jetty:0.7.2]
              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)[55:org.ops4j.pax.web.pax-web-jetty:0.7.2]
              at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)[55:org.ops4j.pax.web.pax-web-jetty:0.7.2]
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.Server.handle(Server.java:326)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)[51:org.apache.servicemix.bundles.jetty-bundle:6.1.22.1]
      16:59:02,542 | WARN  | 7@qtp-28812593-0 | jetty                            | service.jetty.internal.JCLLogger  115 | 55 - org.ops4j.pax.web.pax-web-jetty - 0.7.2 | /syste
      m/console/
      

      How to reproduce that

      1) Start karaf in server mode --> bin/karaf server
      2) Open your browser --> http://localhost:8181/system/console
      3) Error appears in the web screen of the browser

      HTTP ERROR 500
      
      Problem accessing /system/console. Reason:
      
          INTERNAL_SERVER_ERROR
      
      Caused by:
      
      java.lang.NullPointerException
      	at java.lang.String.concat(String.java:1996)
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:360)
      	at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:340)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
      	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
      	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:326)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cmoulliard Moulliard Charles
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: