[ 
https://issues.apache.org/jira/browse/STORM-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chuck Burgess reassigned STORM-1127:
------------------------------------

    Assignee:     (was: Chuck Burgess)

> How to Specify a Boolean value in a constructorArgs list
> --------------------------------------------------------
>
>                 Key: STORM-1127
>                 URL: https://issues.apache.org/jira/browse/STORM-1127
>             Project: Apache Storm
>          Issue Type: Question
>          Components: Flux
>    Affects Versions: 0.10.0
>            Reporter: Chuck Burgess
>            Priority: Minor
>
> Can the constructorArgs implementation handle receiving a boolean argument in 
> the args list?  If so, I cannot figure out how to write that in the YAML.
> Both
> {noformat}
> constructorArgs
> - true
> {noformat}
> and 
> {noformat}
> constructorArgs
> - "true"
> {noformat}
> fail the same way:
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>       at org.apache.storm.flux.FluxBuilder.buildObject(FluxBuilder.java:291)
>       at 
> org.apache.storm.flux.FluxBuilder.buildComponents(FluxBuilder.java:339)
>       at org.apache.storm.flux.FluxBuilder.buildTopology(FluxBuilder.java:75)
>       at org.apache.storm.flux.Flux.runCli(Flux.java:153)
>       at org.apache.storm.flux.Flux.main(Flux.java:98)
> {noformat}



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

Reply via email to