[ 
https://issues.apache.org/jira/browse/LENS-1326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15502709#comment-15502709
 ] 

Puneet Gupta commented on LENS-1326:
------------------------------------

Error in server logs 
{noformat}
17 Sep 2016 10:58:38 [f453b79e-986f-4978-92e2-3f2da7b87212] 
[grizzly-http-server-17] WARN  org.apache.lens.server.BaseLensService - Session 
6c216556-a948-429b-8b3a-400efe26b1e
b not found
org.apache.hive.service.cli.HiveSQLException: Invalid SessionHandle: 
SessionHandle [6c216556-a948-429b-8b3a-400efe26b1eb]
        at 
org.apache.hive.service.cli.session.SessionManager.getSession(SessionManager.java:389)
 ~[hive-service-2.1.3-inm.jar:2.1.3-inm]
        at 
org.apache.lens.server.BaseLensService.getSession(BaseLensService.java:366) 
[classes/:na]
        at 
org.apache.lens.server.BaseLensService.getSessionInfo(BaseLensService.java:571) 
[classes/:na]
        at 
org.apache.lens.server.session.SessionResource.getSession(SessionResource.java:272)
 [classes/:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_72]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_72]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_72]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_72]
        at 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
 [jersey-server-2.22.1.jar
:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205)
 [jersey-ser
ver-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) 
[jersey-server-2.22.1.jar:na]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) 
[jersey-common-2.22.1.jar:na]
        at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) 
[jersey-common-2.22.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:315) 
[jersey-common-2.22.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:297) 
[jersey-common-2.22.1.jar:na]
        at org.glassfish.jersey.internal.Errors.process(Errors.java:267) 
[jersey-common-2.22.1.jar:na]
        at 
org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
 [jersey-common-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) 
[jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
 [jersey-server-2.22.1.jar:na]
        at 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384)
 [jersey-container-grizzly2-http-2.22.1.jar:na]
        at 
org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) 
[grizzly-http-server-2.3.23.jar:2.3.23]
        at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:591)
 [grizzly-framework-2.3.23.jar:2.3.23]
        at 
org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:571)
 [grizzly-framework-2.3.23.jar:2.3.23]
        at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72]
{noformat}

> session/sessions API returning no data on GUI/api though there are active 
> sessions
> ----------------------------------------------------------------------------------
>
>                 Key: LENS-1326
>                 URL: https://issues.apache.org/jira/browse/LENS-1326
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Puneet Gupta
>            Assignee: Lavkesh Lahngir
>
> The lens GUI and API is showing no sessions via sessions REST end point.
> Server metrics are showing active sessions  though. 
> {noformat}
> "org.apache.lens.server.api.session.SessionService.active-sessions" : {
>      "value" : 5324
>    },
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to