falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghav Kumar Gautam (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-1461) NPE in DateValidator.validate()
Date Tue, 15 Sep 2015 23:45:46 GMT
Raghav Kumar Gautam created FALCON-1461:
-------------------------------------------

             Summary: NPE in DateValidator.validate()
                 Key: FALCON-1461
                 URL: https://issues.apache.org/jira/browse/FALCON-1461
             Project: Falcon
          Issue Type: Bug
          Components: client
    Affects Versions: 0.8
            Reporter: Raghav Kumar Gautam
            Assignee: Raghav Kumar Gautam
             Fix For: 0.8


When I use rest call:
api/instance/triage/feed/A555dd292-5f43f281?start=abc&end=xyz&colo=*
Response is:
{code}
<?xml version="1.0" encoding="UTF-8"?><triage>
  <status>FAILED</status>
  <message>default/org.apache.falcon.FalconWebException::java.lang.IllegalArgumentException:
abc is not a valid UTC string
</message>
  <requestId>default/1511872682@qtp-1083962448-880 - 2ee2726c-83d2-443c-ac37-b49f668e550c
</requestId>
</triage>
{code}

But if I fire
api/instance/triage/feed/A555dd292-fb41610e?stort=abc&colo=*
the response has NPE without any hint as to what went wrong
{code}
<?xml version="1.0" encoding="UTF-8"?><triage>
  <status>FAILED</status>
 <message>default/org.apache.falcon.FalconWebException::java.lang.NullPointerException
</message>
  <requestId>default/882508806@qtp-1083962448-906 - 3e8f0264-4ef8-4ccf-b526-3256745e1a52
</requestId>
</triage>
{code}


The stacktrace in the logs is:
{code}
org.apache.falcon.FalconWebException: java.lang.NullPointerException
        at org.apache.falcon.FalconWebException.newTriageResultException(FalconWebException.java:56)
        at org.apache.falcon.resource.AbstractInstanceManager.triageInstance(AbstractInstanceManager.java:665)
        at org.apache.falcon.resource.InstanceManager.triageInstance(InstanceManager.java:239)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.java:49)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy$13.doExecute(InstanceManagerProxy.java:400)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy$13.doExecute(InstanceManagerProxy.java:1)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy$InstanceProxy.execute(InstanceManagerProxy.java:422)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy.triageInstance_aroundBody24(InstanceManagerProxy.java:402)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy$AjcClosure25.run(InstanceManagerProxy.java:1)
        at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
        at org.apache.falcon.aspect.AbstractFalconAspect.logAroundMonitored(AbstractFalconAspect.java:51)
        at org.apache.falcon.resource.proxy.InstanceManagerProxy.triageInstance(InstanceManagerProxy.java:392)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
        at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
        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.FalconAuthorizationFilter.doFilter(FalconAuthorizationFilter.java:106)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
        at org.apache.falcon.security.FalconAuthenticationFilter$2.doFilter(FalconAuthenticationFilter.java:184)
        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:595)
        at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:554)
        at org.apache.falcon.security.FalconAuthenticationFilter.doFilter(FalconAuthenticationFilter.java:193)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
        at org.apache.falcon.security.FalconAuditFilter.doFilter(FalconAuditFilter.java:64)
        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:767)
        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)
Caused by: java.lang.NullPointerException
        at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
        at java.util.regex.Matcher.reset(Matcher.java:309)
        at java.util.regex.Matcher.<init>(Matcher.java:229)
        at java.util.regex.Pattern.matcher(Pattern.java:1093)
        at org.apache.falcon.entity.v0.DateValidator.validate(DateValidator.java:43)
        at org.apache.falcon.entity.v0.SchemaHelper.parseDateUTC(SchemaHelper.java:51)
        at org.apache.falcon.resource.AbstractInstanceManager.triage(AbstractInstanceManager.java:679)
        at org.apache.falcon.resource.AbstractInstanceManager.triageInstance(AbstractInstanceManager.java:652)
        ... 59 more
{code}



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

Mime
View raw message