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

Amareshwari Sriramadasu commented on LENS-768:
----------------------------------------------

I also tried to reproduce through a unit test, but could not succeed. But this 
is the scenario, we saw in production: HIveDriver rejects the query as storage 
is not supported. JDBC driver timesout on estimate, which resulted in NPE.

> NPE in estimate API if drivers timeout
> --------------------------------------
>
>                 Key: LENS-768
>                 URL: https://issues.apache.org/jira/browse/LENS-768
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: server
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Deepak Barr
>             Fix For: 2.4
>
>
> Here is the trace :
> Caused by: java.lang.NullPointerException: cost
> at 
> org.apache.lens.server.api.query.cost.QueryCostTOBuilder.<init>(QueryCostTOBuilder.java:31)
> at 
> org.apache.lens.server.query.QueryServiceResource.query(QueryServiceResource.java:223)
> at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> 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)
> ... 20 more



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

Reply via email to