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

Addison updated GEODE-4367:
---------------------------
    Description: 
The server-side setting, pdx-serialize, can often cause confusion between the 
server and client. 

If pdx-serialize = false and there is no domain object on the server, the 
server returns a ClassNotFound Exception. I'm proposing the following changes 
to allow the client to possibly continue by returning a PdxInstance rather than 
a ClassNotFound exception.

*Currently*

pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
Object -> no domain object -> ClassNotFound

pdx-serialize = true -> PdxObject -> returns PdxInstance

*With Change*

pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
Object -> no domain object -> return PdxInstance

pdx-serialize = true -> PdxObject -> returns PdxInstance

 

 

  was:
The server-side setting, pdx-serialize, can often cause confusion between the 
server and client. 

If pdx-serialize = false and there is no domain object on the server, the 
server returns a ClassNotFound Exception. I'm proposing the following changes 
to allow the client to possibly continue by returning the PDXInstance rather 
than a ClassNotFound exception.

*Currently*

pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
Object -> no domain object -> ClassNotFound

pdx-serialize = true -> PdxObject -> returns PdxInstance

*With Change*

pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
Object -> no domain object -> return PdxInstance

pdx-serialize = true -> PdxObject -> returns PdxInstance

 

 


> Return PDXInstance when Domain Object can't be found
> ----------------------------------------------------
>
>                 Key: GEODE-4367
>                 URL: https://issues.apache.org/jira/browse/GEODE-4367
>             Project: Geode
>          Issue Type: Wish
>          Components: serialization
>            Reporter: Addison
>            Priority: Major
>
> The server-side setting, pdx-serialize, can often cause confusion between the 
> server and client. 
> If pdx-serialize = false and there is no domain object on the server, the 
> server returns a ClassNotFound Exception. I'm proposing the following changes 
> to allow the client to possibly continue by returning a PdxInstance rather 
> than a ClassNotFound exception.
> *Currently*
> pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
> Object -> no domain object -> ClassNotFound
> pdx-serialize = true -> PdxObject -> returns PdxInstance
> *With Change*
> pdx-serialize = false -> create PdxObject -> tries to deserialize to Domain 
> Object -> no domain object -> return PdxInstance
> pdx-serialize = true -> PdxObject -> returns PdxInstance
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to