Re: [appengine-java] Re: Objectify: IllegalAccessError

2011-05-06 Thread Jeff Schnitzer
Specific GAE SDK version requirements are documented in the Objectify
release notes for each version.

Code moves fast in appengine-land!

Jeff

On Tue, May 3, 2011 at 3:19 PM, GeneralSlaine  wrote:
> Jeff,
> I'm using 1.3.8 I think reading from this Jar file: appengine-api-1.0-
> sdk-1.3.8.jar.
> However, this version dates from october 2010, not that old!
> So I have to upgrade?
>
> BR
>
>
> On 3 mei, 04:04, Jeff Schnitzer  wrote:
>> Are you running with a very old GAE SDK... something before 1.4.0,
>> perhaps?  Make sure you are using the latest.
>>
>> Jeff
>>
>>
>>
>>
>>
>>
>>
>> On Mon, May 2, 2011 at 3:16 PM, GeneralSlaine  
>> wrote:
>> > 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 
>> > 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 
>> > athttp://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 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.
>
>

-- 
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.



[appengine-java] Re: Objectify: IllegalAccessError

2011-05-04 Thread GeneralSlaine
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 :  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
 wrote:
> Hi, Brother,
>
> Your solution ;
>
> Objectify ofy = ObjectifyService.begin();
>  ObjectifyService.register(AutorizacaoDAO.class);
>     com.googlecode.objectify.Query q =
> ofy.query(AutorizacaoDAO.class).filter("email",
>         email).filter("senhaautorizada", senha);
>
> 2011/5/2 GeneralSlaine 
>
>
>
>
>
>
>
>
>
> > 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
> > 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.



[appengine-java] Re: Objectify: IllegalAccessError

2011-05-03 Thread GeneralSlaine
Jeff,
I'm using 1.3.8 I think reading from this Jar file: appengine-api-1.0-
sdk-1.3.8.jar.
However, this version dates from october 2010, not that old!
So I have to upgrade?

BR


On 3 mei, 04:04, Jeff Schnitzer  wrote:
> Are you running with a very old GAE SDK... something before 1.4.0,
> perhaps?  Make sure you are using the latest.
>
> Jeff
>
>
>
>
>
>
>
> On Mon, May 2, 2011 at 3:16 PM, GeneralSlaine  
> wrote:
> > 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 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 
> > athttp://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 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.