You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Ajay Yadava (JIRA)" <ji...@apache.org> on 2015/09/18 17:25:04 UTC

[jira] [Commented] (FALCON-1465) Cluster submission fails with java.lang.IllegalArgumentException in distributed mode

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

Ajay Yadava commented on FALCON-1465:
-------------------------------------

As part of FALCON-1027 we are now passing doAs query parameter as well, however, this queryParam is optional and can be null, so we need to add an extra check in HTTPChannel.java. Sadly I missed catching that in the code review :(  Will upload a patch shortly.

> Cluster submission fails with java.lang.IllegalArgumentException in distributed mode
> ------------------------------------------------------------------------------------
>
>                 Key: FALCON-1465
>                 URL: https://issues.apache.org/jira/browse/FALCON-1465
>             Project: Falcon
>          Issue Type: Bug
>          Components: prism
>    Affects Versions: 0.8
>         Environment: QA
>            Reporter: Pragya Mittal
>            Assignee: Ajay Yadava
>
> While submitting cluster in distributed mode user name is evaluated to null resulting in java.lang.IllegalArgumentException is thrown. Below is the stack trace :
> {code}
> 2015-09-18 07:24:57,029 INFO  - [2114764908@qtp-341853399-6 - 2601b654-8924-4305-80cb-d623287eeadf:] ~ Audit: pragya@10.14.119.81 performed http://192.168.138.236:16000/api/entities/list/cluster?numResults=2147483647&user.name=pragya (192.168.138.236) at 2015-09-18T07:24Z (AUDIT:48)
> 2015-09-18 07:24:58,995 INFO  - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Logging in pragya (CurrentUser:65)
> 2015-09-18 07:24:58,995 INFO  - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Request from authenticated user: pragya, URL=/api/entities/submit/cluster?user.name=pragya, doAs user: null (FalconAuthenticationFilter:185)
> 2015-09-18 07:24:59,021 INFO  - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Parsed Entity: FeedSLATest-corp-2dea3d9a (EntityParser:94)
> 2015-09-18 07:24:59,023 DEBUG - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Executing http://192.168.138.236:15000/secure/sync/submit/cluster?colo=ua1& (HTTPChannel:91)
> 2015-09-18 07:24:59,073 INFO  - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Configuring client with /mnt/falcon/prism/conf/prism.keystore (SecureHTTPChannel:56)
> 2015-09-18 07:24:59,140 ERROR - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Request failed (HTTPChannel:123)
> java.lang.IllegalArgumentException: One or more of query value parameters are null
>         at com.sun.jersey.api.uri.UriBuilderImpl.queryParam(UriBuilderImpl.java:433)
>         at com.sun.jersey.api.client.WebResource.queryParam(WebResource.java:436)
>         at org.apache.falcon.resource.channel.HTTPChannel.invoke(HTTPChannel.java:102)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:139)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:577)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:141)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.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.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:119)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 2015-09-18 07:24:59,196 DEBUG - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Executing http://10.14.119.81:15000/secure/sync/submit/cluster?colo=ua2& (HTTPChannel:91)
> 2015-09-18 07:24:59,197 INFO  - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Configuring client with /mnt/falcon/prism/conf/prism.keystore (SecureHTTPChannel:56)
> 2015-09-18 07:24:59,246 ERROR - [245109421@qtp-341853399-7 - f273a408-0f16-4951-b2c0-620db2e83d3e:pragya:POST//entities/submit/cluster] ~ Request failed (HTTPChannel:123)
> java.lang.IllegalArgumentException: One or more of query value parameters are null
>         at com.sun.jersey.api.uri.UriBuilderImpl.queryParam(UriBuilderImpl.java:433)
>         at com.sun.jersey.api.client.WebResource.queryParam(WebResource.java:436)
>         at org.apache.falcon.resource.channel.HTTPChannel.invoke(HTTPChannel.java:102)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$1.doExecute(SchedulableEntityManagerProxy.java:139)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:577)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:141)
>         at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.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.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:119)
>         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)
> {code}



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