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

Exception while describing cube

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 2.0
    • None
    • None

    Description

      lens-shell>describe cube --cube cube
      Command failed javax.ws.rs.InternalServerErrorException: HTTP 500 No enum const class org.apache.lens.api.metastore.XColumnType.ARRAY<STRING>

      Exception

      08 Feb 2015 18:42:54,735 [Grizzly-worker(7)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder  - WebApplicationException cause:
      java.lang.IllegalArgumentException: No enum const class org.apache.lens.api.metastore.XColumnType.ARRAY<STRING>
              at java.lang.Enum.valueOf(Enum.java:214)
              at org.apache.lens.api.metastore.XColumnType.valueOf(XColumnType.java:45)
              at org.apache.lens.server.metastore.JAXBUtils.xExprColumnFromHiveExprColumn(JAXBUtils.java:255)
              at org.apache.lens.server.metastore.JAXBUtils.xCubeFromHiveCube(JAXBUtils.java:131)
              at org.apache.lens.server.metastore.CubeMetastoreServiceImpl.getCube(CubeMetastoreServiceImpl.java:215)
              at org.apache.lens.server.metastore.MetastoreResource.getCube(MetastoreResource.java:398)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              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

        1. LENS-287.2.patch
          16 kB
          Amareshwari Sriramadasu

        Issue Links

          Activity

            People

              amareshwari Amareshwari Sriramadasu
              arshadmatin20 Arshad Matin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: