Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-459

Lineage resource API fails with NPE for bad query params

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6
    • Component/s: None
    • Labels:

      Description

      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
      <title>Error 500 INTERNAL_SERVER_ERROR</title>
      </head>
      <body><h2>HTTP ERROR 500</h2>
      <p>Problem accessing /api/graphs/lineage/vertices/. Reason:
      <pre>    INTERNAL_SERVER_ERROR</pre></p><h3>Caused by:</h3><pre>java.lang.NullPointerException
              at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187)
              at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.getVertices(StandardTitanTx.java:982)
              at com.thinkaurelius.titan.graphdb.transaction.StandardTitanTx.containsType(StandardTitanTx.java:606)
              at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsTransaction.getVertices(TitanBlueprintsTransaction.java:101)
              at com.thinkaurelius.titan.graphdb.blueprints.TitanBlueprintsGraph.getVertices(TitanBlueprintsGraph.java:212)
              at org.apache.falcon.resource.metadata.LineageMetadataResource.getVertices(LineageMetadataResource.java:284)
              at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
              at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
              at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
              at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
              at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
              at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
              at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
              at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
              at org.apache.falcon.security.BasicAuthFilter$2.doFilter(BasicAuthFilter.java:183)
              at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:392)
              at org.apache.falcon.security.BasicAuthFilter.doFilter(BasicAuthFilter.java:221)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
              at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
              at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
              at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
              at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
              at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
              at org.mortbay.jetty.Server.handle(Server.java:326)
              at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
              at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
              at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
              at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
              at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
              at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      </pre>
      <hr /><i><small>Powered by Jetty://</small></i><br/>
      

        Attachments

        1. FALCON-459.v4.patch
          8 kB
          Sowmya Ramesh
        2. FALCON-459.v3.patch
          5 kB
          Sowmya Ramesh
        3. FALCON-459.v2.patch
          5 kB
          Sowmya Ramesh
        4. FALCON-459.patch
          2 kB
          Sowmya Ramesh

          Activity

            People

            • Assignee:
              sowmyaramesh Sowmya Ramesh
              Reporter:
              sowmyaramesh Sowmya Ramesh

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment