You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Sandeep Nemuri (JIRA)" <ji...@apache.org> on 2018/01/05 10:40:00 UTC

[jira] [Created] (RATIS-185) Unable to assign more than one digit in arithmetic example

Sandeep Nemuri created RATIS-185:
------------------------------------

             Summary: Unable to assign more than one digit in arithmetic example
                 Key: RATIS-185
                 URL: https://issues.apache.org/jira/browse/RATIS-185
             Project: Ratis
          Issue Type: Bug
            Reporter: Sandeep Nemuri
            Assignee: Sandeep Nemuri


Unable to assign more than one digit in arithmetic example.

{code:java}
bin> ./client.sh assign --name a --value 11
/Users/snemuri/git/incubator-ratis/ratis-examples/src/main/bin/../../../target/ratis-examples-0.1.1-alpha-SNAPSHOT.jar
Exception in thread "main" java.lang.IllegalArgumentException: Invalid expression 11 Try something like: 'a+b' or '2'
	at org.apache.ratis.examples.arithmetic.cli.Assign.createExpression(Assign.java:73)
	at org.apache.ratis.examples.arithmetic.cli.Assign.operation(Assign.java:53)
	at org.apache.ratis.examples.arithmetic.cli.Client.run(Client.java:50)
	at org.apache.ratis.examples.arithmetic.Runner.main(Runner.java:62)

{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)