You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/01/22 09:29:34 UTC

[jira] [Commented] (LENS-223) NPE while adding resources

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

Amareshwari Sriramadasu commented on LENS-223:
----------------------------------------------

Able to reproduce the NPE, by adding JDBCDriver as one more driver in tests.

> NPE while adding resources
> --------------------------
>
>                 Key: LENS-223
>                 URL: https://issues.apache.org/jira/browse/LENS-223
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 2.0
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>            Priority: Critical
>             Fix For: 2.0
>
>
> Hitting following NPE, because of changes in LENS-203, while adding resources and when there are multiple drivers :
> {noformat}
> 22 Jan 2015 11:21:06,346 [Grizzly-worker(3)] WARN  org.glassfish.jersey.server.ServerRuntime$Responder  - WebApplicationException cause:
> java.lang.NullPointerException
>   at org.apache.lens.driver.hive.HiveDriver.execute(HiveDriver.java:385)
>   at org.apache.lens.server.query.QueryExecutionServiceImpl.addResource(QueryExecutionServiceImpl.java:1821)
>   at org.apache.lens.server.session.HiveSessionService.addResourceToAllServices(HiveSessionService.java:82)
>   at org.apache.lens.server.session.SessionResource.addResource(SessionResource.java:156)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> {noformat}
> Got missed as we don't have any tests running with more than one driver. Hit it  when i was doing local test with multiple drivers. 



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