[ https://issues.apache.org/jira/browse/STORM-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14981373#comment-14981373 ]
ASF GitHub Bot commented on STORM-1127: --------------------------------------- GitHub user ashnazg opened a pull request: https://github.com/apache/storm/pull/832 STORM-1127: allow for boolean arguments You can merge this pull request into a Git repository by running: $ git pull https://github.com/ashnazg/storm boolArgs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/storm/pull/832.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #832 ---- commit a03b419dc30ae12ac9dd8a3e814c017ebc3ddbac Author: Chuck Burgess <cburg...@progressrail.com> Date: 2015-10-29T21:44:28Z allow for boolean arguments; ---- > 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)