Hi, Brother,

Your solution ;

Objectify ofy = ObjectifyService.begin();
 ObjectifyService.register(AutorizacaoDAO.class);
    com.googlecode.objectify.Query<AutorizacaoDAO> q =
ofy.query(AutorizacaoDAO.class).filter("email",
        email).filter("senhaautorizada", senha);

2011/5/2 GeneralSlaine <lennart.ben...@gmail.com>

> Hi all,
>
> I'm a first time user of objectify and  I'm implementing the
> intorduction (with slightly modified classes). When calling
> ObjectifyService.begin() I already run into trouble: an
> IllegalAccessError is thrown:
>
>        //Some objectify Test code
>        ObjectifyService.register(Website.class);
>
>        Objectify ofy = ObjectifyService.begin();
>
>
> Exception:
>
> java.lang.IllegalAccessError: tried to access method
>
> com.google.appengine.api.datastore.DatastoreServiceFactory.getAsyncDatastoreService(Lcom/
> google/appengine/api/datastore/DatastoreServiceConfig;)Lcom/google/
> appengine/api/datastore/AsyncDatastoreService; from class
> com.googlecode.objectify.ObjectifyFactory
>        at
>
> com.googlecode.objectify.ObjectifyFactory.getRawAsyncDatastoreService(ObjectifyFactory.java:
> 159)
>        at
>
> com.googlecode.objectify.ObjectifyFactory.getAsyncDatastoreService(ObjectifyFactory.java:
> 138)
>        at
> com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:
> 185)
>        at
> com.googlecode.objectify.ObjectifyFactory.begin(ObjectifyFactory.java:
> 176)
>        at
> com.googlecode.objectify.ObjectifyService.begin(ObjectifyService.java:
> 29)
>        at com.fourture.catalog.server.UserServlet.doGet(UserServlet.java:
> 23)\
> ....
>
>
> Any idea ?
>
> BTW: I'm implementing Objectify in the context of the following
> discussion on avoiding Data Transfer Objects:
>
> http://groups.google.com/group/google-appengine-java/browse_thread/thread/9daa7a6d104554a5/aefa84dbd316b650#aefa84dbd316b650
>
>
> BR
>
> --
> 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
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>


-- 
*Felipe Teixeira*
*Desenvolvedor Java
*
IPNET - Soluções  em Informática
Tel.: 55 21 3553 2717 / 21-7805-6867
Rua Visconde de Inhaúma, 134, Sala 615
Centro - RJ - CEP: 20091-007
*http://www.ipnetsolucoes.com.br *

-- 
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 google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to