You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Chuck Burgess (JIRA)" <ji...@apache.org> on 2015/10/23 17:38:27 UTC
[jira] [Created] (STORM-1127) How to Specify a Boolean value in a
constructorArgs list
Chuck Burgess created STORM-1127:
------------------------------------
Summary: 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)