You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Galen O'Sullivan (JIRA)" <ji...@apache.org> on 2018/05/08 02:38:00 UTC

[jira] [Resolved] (GEODE-4367) Return PDXInstance when Domain Object can't be found

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

Galen O'Sullivan resolved GEODE-4367.
-------------------------------------
    Resolution: Not A Problem

We discussed this on the dev list and didn't get widespread support. A major issue is that it would break the type signature of Cache methods.

> 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 --read-serialized, can often cause confusion between the server and client. 
> If read-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*
> read-serialized = false -> create PdxObject -> tries to deserialize to Domain Object -> no domain object -> ClassNotFound
> read-serialized = true -> PdxObject -> returns PdxInstance
> *With Change*
> read-serialized = false -> create PdxObject -> tries to deserialize to Domain Object -> no domain object -> return PdxInstance
> read-serialized = true -> PdxObject -> returns PdxInstance
>  
>  



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