Hi all, Thanks for you feedback, I found the solution: 1) Indeed an upgrade was required to 1.4.3 app engine 2) Next to that I have this : <inherits name="com.googlecode.objectify.Objectify" /> to gwt.xml found here: http://www.fishbonecloud.com/2010/11/use-objectify-to-store-data-in-google.html
BR On 3 mei, 22:50, Felipe Teixeira <[email protected]> wrote: > 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 <[email protected]> > > > > > > > > > > > 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.getAsyncDatastor > > eService(Lcom/ > > google/appengine/api/datastore/DatastoreServiceConfig;)Lcom/google/ > > appengine/api/datastore/AsyncDatastoreService; from class > > com.googlecode.objectify.ObjectifyFactory > > at > > > com.googlecode.objectify.ObjectifyFactory.getRawAsyncDatastoreService(Objec > > tifyFactory.java: > > 159) > > at > > > com.googlecode.objectify.ObjectifyFactory.getAsyncDatastoreService(Objectif > > yFactory.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/th... > > > 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 > > [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. > > -- > *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 [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.
