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

NPE while adding resources

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0
    • 2.0
    • server
    • None

    Description

      Hitting following NPE, because of changes in LENS-203, while adding resources and when there are multiple drivers :

      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)
      

      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.

      Attachments

        1. LENS-223.3.patch
          28 kB
          Amareshwari Sriramadasu

        Activity

          People

            amareshwari Amareshwari Sriramadasu
            amareshwari Amareshwari Sriramadasu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: