You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Raju Bairishetti (JIRA)" <ji...@apache.org> on 2017/05/21 11:54:04 UTC

[jira] [Updated] (LENS-823) Fetching already fetched inmemory result set should not give 500

     [ https://issues.apache.org/jira/browse/LENS-823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raju Bairishetti updated LENS-823:
----------------------------------
    Fix Version/s:     (was: 2.7)

> Fetching already fetched inmemory result set should not give 500
> ----------------------------------------------------------------
>
>                 Key: LENS-823
>                 URL: https://issues.apache.org/jira/browse/LENS-823
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: server
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Deepak Barr
>            Priority: Minor
>
> It fails with following exception right now :
> {noformat}
> 15 Oct 2015 04:22:35 [90ca229a-7526-4a55-8f2b-fff2805fc45c] [Grizzly-worker(43)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder - WebApplicationException cause:
> org.apache.lens.server.api.error.LensException: INTERNAL_SERVER_ERROR
>         at org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:323) ~[lens-driver-jdbc-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
>         at org.apache.lens.server.api.driver.InMemoryResultSet.toQueryResult(InMemoryResultSet.java:80) ~[lens-server-api-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
>         at org.apache.lens.server.api.driver.InMemoryResultSet.toQueryResult(InMemoryResultSet.java:33) ~[lens-server-api-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
>         at org.apache.lens.server.query.QueryExecutionServiceImpl.fetchResultSet(QueryExecutionServiceImpl.java:2016) ~[classes/:na]
>         at org.apache.lens.server.query.QueryServiceResource.getResultSet(QueryServiceResource.java:723) ~[classes/:na]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_67]
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_67]
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_67]
>         at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_67]
>         at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:151) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:353) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:343) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:255) ~[jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) [jersey-common-2.3.1.jar:na]
>         at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) [jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983) [jersey-server-2.3.1.jar:na]
>         at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:330) [jersey-container-grizzly2-http-2.3.1.jar:na]
>         at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:212) [grizzly-http-server-2.3.6.jar:2.3.6]
>         at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) [grizzly-framework-2.3.6.jar:2.3.6]
>         at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) [grizzly-framework-2.3.6.jar:2.3.6]
>         at java.lang.Thread.run(Thread.java:745) [na:1.7.0_67]
> Caused by: java.sql.SQLException: You can't operate on a closed ResultSet!!!
>         at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118) ~[mchange-commons-java-0.2.9.jar:0.2.9]
>         at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:77) ~[mchange-commons-java-0.2.9.jar:0.2.9]
>         at com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:690) ~[c3p0-0.9.5.jar:0.9.5]
>         at org.apache.lens.driver.jdbc.JDBCResultSet.hasNext(JDBCResultSet.java:317) ~[lens-driver-jdbc-2.4.1-inm-breakfix2.jar:2.4.1-inm-breakfix2]
>         ... 30 common frames omitted
> Caused by: java.lang.NullPointerException: null
>         at com.mchange.v2.c3p0.impl.NewProxyResultSet.next(NewProxyResultSet.java:684) ~[c3p0-0.9.5.jar:0.9.5]
>         ... 31 common frames omitted
> {noformat}
> Instead it should give 410 and say "Already fetched".



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)