Uploaded image for project: 'Chukwa'
  1. Chukwa
  2. CHUKWA-591

ChukwaHBaseStore - java.lang.NullPointerException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.5.0
    • Component/s: None
    • Labels:
      None

      Description

      Get the below error when trying to see SystemMetrics in HICC.(As soon as I click on "SystemMetrics" under Table on HICC)
      I'm using the sigar.SystemMetrics and I also see data in hbase.(0.90.3)

      2011-06-21 05:02:10,702 ERROR btpool0-5 ChukwaHBaseStore -
      java.lang.NullPointerException
      at
      org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNamesHelper(ChukwaHBaseStore.java:125)
      at
      org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNames(ChukwaHBaseStore.java:160)
      at
      org.apache.hadoop.chukwa.hicc.rest.MetricsController.getColumnNames(MetricsController.java:158)
      at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at
      com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:15
      6)
      at
      com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
      at
      com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:166)
      at
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
      at
      com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:74)
      at
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
      at
      com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:66)
      at
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:658)
      at
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:616)
      at
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:607)
      at
      com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
      at
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
      at
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at
      org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
      at
      org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
      at
      org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      at
      org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
      at
      org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
      at
      org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
      at
      org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
      at
      org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      at
      org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      at org.mortbay.jetty.Server.handle(Server.java:324)
      at
      org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
      at
      org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
      at
      org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
      at
      org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

        Activity

        Hide
        eyang Eric Yang added a comment -

        Check for null pointer exception when reading for columns, and there is no result in the selected range.

        Show
        eyang Eric Yang added a comment - Check for null pointer exception when reading for columns, and there is no result in the selected range.
        Hide
        eyang Eric Yang added a comment -

        I just committed this.

        Show
        eyang Eric Yang added a comment - I just committed this.

          People

          • Assignee:
            eyang Eric Yang
            Reporter:
            abhijitdhar Abhijit Dhar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development