Wes Williams created GEODE-3949:
-----------------------------------

             Summary: gfsh> put returns wrong error message when cannot convert 
JSON to Object
                 Key: GEODE-3949
                 URL: https://issues.apache.org/jira/browse/GEODE-3949
             Project: Geode
          Issue Type: Bug
          Components: core
            Reporter: Wes Williams
             Fix For: 1.4.0


Given a region "departments" that exists, an Department domain class and the 
domain jar deployed into the server:

gfsh>list regions;
List of regions
---------------
departments

a gfsh> put executing inside of a script yields the erroneous message about the 
region not existing:

2. Executing - put --key='20' --value=('deptno':'20','name':'RESEARCH') 
--value-class=io.pivotal.app.domain.Department --region=departments

Result      : false
Message     : Region <departments> not found in any of the members
Key Class   : java.lang.String
Key         : 20
Value Class : io.pivotal.app.domain.Department

deptno | name
------ | --------
20     | RESEARCH

Yet outside the script and entering it straight into gfsh. Note that the error 
message is different:

gfsh>put --key='20' --value=('deptno':'20','name':'RESEARCH') 
--value-class=io.pivotal.app.domain.Department --region=departments
Message : Couldn't convert JSON to Object of type class 
io.pivotal.app.domain.Department
Result  : false





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

Reply via email to