Hi All, We're developing an application using OpenJpa 2.1, Spring-3.0.5 and GWT-2.2.0. This integration works for all other types in the entity, but fails for fields of type Date with the following exception: -- com.google.gwt.user.client.rpc.SerializationException: Type 'org.apache.openjpa.util.java$util$Date$proxy' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = Sat Dec 31 00:00:00 SGT 2011 -- I tried using DTO instead of using an entity directly, but when date property is copied from Entity object to DTO, the same proxy will be set. So it doesn't work either.
When searched, I found lot of references to detaching the entity to remove all proxies needed by Jpa. It works, but this needs to be explicitly called, while the same works without calling this, in our Swing app which gets the serialized objects through Spring Remoting. And also, as there're a lot of DAOs already written, this is going to be major change. So, is there a openjpa configuration setting to use, so that all proxies are removed on em.close() ? I really appreciate any help to solve this. Thanks, Prashant
