title: Geode: Serialization Exception & Could not create an instance of a class on server
body: <p>I have the client side working, looks like everything is alright. I can save the object and retrieve the object back from the client side.</p>
  
  <p>However, if i am trying to use gfsh or data browser to view the data, i got this exception on gfsh</p>
  
  <pre><code>Message : Could not create an instance of a class com.room.backend.soa.spring.cache.geode.test.domain.Book
  Result  : false
  </code></pre>
  
  <p>and on data browser</p>
  
  <pre><code>javalangException- Query could not be executed due to - orgapachegeodepdxPdxSerializationException- Could not create an instance of a class comroombackendsoaspringcachegeodetestdomainBook
  </code></pre>
  
  <p>My code is like this</p>
  
  <pre><code>    ClientCacheFactoryBean gemfireCache = new ClientCacheFactoryBean();
      gemfireCache.setClose(true);
      gemfireCache.setProperties(gemfireProperties);
      gemfireCache.setPdxSerializer(pdxSerializer);
  </code></pre>
  
  <p>pdxSerializer is</p>
  
  <pre><code>    ReflectionBasedAutoSerializer serializer =
              new ReflectionBasedAutoSerializer(
                      "com.room.backend.soa.spring.cache.geode.test.domain.*",
                      "com.room.backend.soa.spring.cache.geode.test.domain.Book",
                      "com.room.backend.soa.spring.cache.geode.test.domain.Book#identity=id.*",
                      "com.room.backend.soa.spring.cache.geode.test.domain.#identity=id.*"
  
                      );
  </code></pre>