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

[jira] [Updated] (RATIS-185) Unable to assign more than one digit in the CLI of arithmetic example

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

Tsz Wo Nicholas Sze updated RATIS-185:
--------------------------------------
    Summary: Unable to assign more than one digit in the CLI of arithmetic example  (was: Unable to assign more than one digit in arithmetic example)

> Unable to assign more than one digit in the CLI of 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)