Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-388

NPE while doing describe cube

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 2.1
    • None
    • None

    Description

      While doing describe cube i am getting NPE

      lens-shell>describe cube cube
      Command failed javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error
      

      Server log

      04 Mar 2015 19:29:07,266 [Grizzly-worker(2)] INFO  org.apache.lens.server.AuthenticationFilter  - Request from user: null, path=/metastore/cubes/cube
      04 Mar 2015 19:29:07,271 [Grizzly-worker(2)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder  - WebApplicationException cause:
      java.lang.NullPointerException
      	at org.apache.lens.server.metastore.JAXBUtils.xDimAttrFromHiveDimAttr(JAXBUtils.java:279)
      	at org.apache.lens.server.metastore.JAXBUtils.xCubeFromHiveCube(JAXBUtils.java:136)
      	at org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getCube(CubeMetastoreServiceImpl.java:217)
      	at org.apache.lens.server.metastore.MetastoreResource.getCube(MetastoreResource.java:393)
      	at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:622)
      	at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
      	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151)
      	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)
      	at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)
      	at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)
      	at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353)
      	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343)
      	at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
      	at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255)
      	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318)
      	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235)
      	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983)
      	at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330)
      	at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)
      	at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)
      	at java.lang.Thread.run(Thread.java:701)
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arshadmatin20 Arshad Matin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: