You'll probably have better luck on the Objectify mailing list (I do not
consistently read this list, and many other Objectify contributors don't at
all).

You need to include a *lot* more information about your error, such as a
stack trace.

Jeff

On Fri, Jun 24, 2011 at 4:29 AM, yaa <[email protected]> wrote:

> any idea how to solve it?
> I'm using eclipse/gae/gwt/objectify all latest versions as of June 2011
>
> This is the class I'm using:
>
>
> package com.kupati1.server;
>
>
> import com.google.gwt.user.server.rpc.RemoteServiceServlet;
> import com.googlecode.objectify.Objectify;
> import com.googlecode.objectify.ObjectifyService;
> import com.kupati1.client.PersistentService;
> import com.kupati1.client.entities.Animal;
>
>
> @SuppressWarnings("serial")
> public class PersistentServiceImpl extends RemoteServiceServlet implements
> PersistentService {
>
>    //Method must be present in Service Interface and Async Interface
>    public void persistAnimal(String color, String species) {
>
>        //The Objectify service for the entity must be registered before any
>        //operations can be executed
>        ObjectifyService.register(Animal.class);
>        Objectify ofy = ObjectifyService.begin();
>
>        Animal animal = new Animal();
>        //Use setters to populate the object
>        //the Id will be auto generated and does not need to be set
>        animal.setColor(color);
>        animal.setSpecies(species);
>
>        ofy.put(animal);
>
>    }
>
> }
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to