If you do not want to deploy your classes on server's classpath, you need
to run the gfsh>configure pdx --read-serialized=true command. This should
be done after starting the locator, but before starting the servers. Please
refer to this docs page
<http://geode.apache.org/docs/guide/12/developing/data_serialization/use_pdx_high_level_steps.html>
for
details.

On Thu, Oct 26, 2017 at 10:19 PM Galen O'Sullivan <[email protected]>
wrote:

> Hi Jackie,
>
> Most likely you don't have the JAR for your class installed on the server.
> Geode doesn't deserialize objects unless it needs to, but instead stores
> them in serialized form (the same form it reads from off the wire). The
> client (which does have the JAR installed) is able to serialize the object
> and read the object back from the same client, without it ever having been
> deserialized on the server. However, using GFSH queries requires the server
> to deserialize the object to see what it is.
>
> If you deploy the JAR on your server, it should solve your problems.
>
> For more information on deploying JARs, see:
>
> https://geode.apache.org/docs/guide/10/configuring/cluster_config/deploying_application_jars.html
>
> Best,
> Galen
>
>
> On Thu, Oct 26, 2017 at 7:41 AM, Jackie FamilyName <[email protected]>
> wrote:
>
>>
>>
>> Hi All,
>>
>> I am a newbie trying to use geode.
>>
>>
>>
>> So far it works well on the client side, I am able to save and retrieve
>> the object successfully from client side:
>>
>>
>>
>> [image: cid:[email protected]]
>>
>>
>>
>> However, from the server side, I am scratching my head, still cannot
>> figure out why it’s complaining about serialization exception:
>>
>> [image: cid:[email protected]]
>>
>>
>>
>>
>>
>> [image: cid:[email protected]]
>>
>>
>>
>> Could anybody please enlighten me here ?
>>
>> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
>> Windows 10
>>
>>
>>
>>
>>
>
>

Reply via email to