geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Williams (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GEODE-3949) gfsh> put returns wrong error message when cannot convert JSON to Object
Date Fri, 03 Nov 2017 14:59:00 GMT

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

Wes Williams updated GEODE-3949:
--------------------------------
    Description: 
A bug was introduced since GemFire 8.2 that cause
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



  was:
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




> 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
>
>
> A bug was introduced since GemFire 8.2 that cause
> 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)

Mime
View raw message