I must admit that I've not personally researched it. I think that it has been discussed on the appengine user group however. You may also want to search this group. The problem, as I understand it, is that enhancement adds fields to the runtime type. But, GWT-RPC works off of the static (pre-enhancement) view of the type which is why you get the errors. I'm not sure what the best work around is. I do know Ray Cromwell has done some looking into it.
On Tue, May 12, 2009 at 1:34 PM, Pavel Byles <pavelby...@gmail.com> wrote: > Miguel, > YES! > that's it. As soon as I comment out the @PersistenceCapable it works! > > Now I know there are issues w/ GWT and enhanced classes, but exactly how am > I supposed to persist data w/o having that annotation? > > 2009/5/12 Miguel Méndez <mmen...@google.com> > >> What if you try to have it not be persistable (comment out the persistence >> annotations, rebuild, and return a dummy one that was not instantiated by >> the ORM code)? I wonder if this is the ORM and GWT-RPC incompatibility. >> >> >> On Tue, May 12, 2009 at 1:00 PM, Pavel Byles <pavelby...@gmail.com>wrote: >> >>> I suspect it has something to do with the object I am returning. >>> >>> When I use the same service to return a String or a simple class that >>> contains a String everything works fine. >>> >>> But when I try to return instances of Country then I get the error. >>> >>> Any ideas why this happens? >>> Here is the Country class: >>> >>> import java.io.Serializable; >>> >>> import javax.jdo.annotations.IdentityType; >>> import javax.jdo.annotations.PersistenceCapable; >>> import javax.jdo.annotations.Persistent; >>> import javax.jdo.annotations.PrimaryKey; >>> >>> @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = >>> "true") >>> public class Country implements Serializable { >>> private static final long serialVersionUID = -1L; >>> >>> @PrimaryKey >>> @Persistent >>> private String name; >>> >>> @Persistent >>> private float latitude; >>> >>> @Persistent >>> private float longitude; >>> >>> public Country () { >>> >>> } >>> >>> public Country (String name, float latitude, float longitude) { >>> this.name = name; >>> this.latitude = latitude; >>> this.longitude = longitude; >>> } >>> >>> public String getName() { >>> return name; >>> } >>> >>> public void setName(String name) { >>> this.name = name; >>> } >>> >>> public float getLatitude() { >>> return latitude; >>> } >>> >>> public float getLongitude() { >>> return longitude; >>> } >>> >>> public void setLatitude(float latitude) { >>> this.latitude = latitude; >>> } >>> >>> public void setLongtiude(float longitude) { >>> this.longitude = longitude; >>> } >>> } >>> >>> >>> >>> >>> >> >> >> -- >> Miguel >> >> >> >> > > > -- > -Pav > > > > > -- Miguel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---