[appengine-java] Can't request public Google Doc anymore

2011-08-04 Thread GeneralSlaine
Hi all,
I used code below to retrieve a web published Google Doc (example url
below). This worked fine until recently all of a sudden result does
not retreive actual document anymore. Instead I get a Document not
found with a 400 HTTP code I think.
When fetching exactly the same url in my browser, all works fine.
Any idea anyone?
Code:
URL url = new URL(requestUrl.toString());
BufferedReader in = new BufferedReader(new
InputStreamReader(
url.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
str = str +  inputLine + \n;
}
in.close();
return str;
Example URL:
https://docs.google.com/document/pub?id=1W4qqZGD_VXwabyCxkof7XyssMlbr...

-- 
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 : 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
felipe.teixe...@ipnetsolucoes.com.br wrote:
 Hi, Brother,

 Your solution ;

 Objectify ofy = ObjectifyService.begin();
  ObjectifyService.register(AutorizacaoDAO.class);
     com.googlecode.objectify.QueryAutorizacaoDAO 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.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 j...@infohazard.org 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 lennart.ben...@gmail.com 
 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.



[appengine-java] Objectify: IllegalAccessError

2011-05-02 Thread 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.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.



[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-26 Thread GeneralSlaine
Thanks all for the feedback. I guess I will start with having a good
look at Objectify.

Other question:is there any open source project that you guys know of
which fully generates a gui dynamically in GWT based on introspection
of the objects? Based on this info a basic GUI with List, Detail,
Create, Modify functionality could be generated (not code generated to
be clear, dynamic generated GUI).

Of course this approach will not do for all requirements but it could
be usefull for some administrations screens.

BR

On 26 jan, 08:36, Didier Durand durand.did...@gmail.com wrote:
 Hi Jonas,

 Yes, moving to Objectify is definitely a good move: especially since
 the GAE google team pushes toward 3rd party package rather than
 datanucleus impl of JDO/JPA currently used by GAE.

 But, it doesn't sometimes prevent the need of DTO: if, for example (my
 own cas), you want all your back-end objects implemented with
 Objectify to inherit from an hierarchy of core objects delivering
 services to application objects via inheritance, you willat some point
 use DTOs because the high-level of the hierarchy have to be transcoded
 to js via GWT compiler and the may use JRE classes and methods not
 supported by GWT compiler.

 So, using Objectify is right but may not prove sufficient in all
 cases.

 regards
 didier

 On Jan 26, 8:18 am, Jonas Gehring gehr...@egotec.com wrote:







  hi,

  take a look at the persistance framework 
  Objectifyhttp://code.google.com/p/objectify-appengine/

  Objectify entities can be used in GWT without the need for Data
  Transfer Objects.

  On 25 Jan., 21:52, GeneralSlaine lennart.ben...@gmail.com wrote:

   Hi all,
   I've been having some issues with getting my persistant object to GWT
   web front-end for example when implementing a web page to modify this
   object. Ideally I would like to be able to reuse the same class both
   for back-end as for front-end.
   So far, I have not managed.
   Instead I have a backbone class: Product and a front-end class
   FProduct. Communication between front-end and backbone is always via
   FProduct. So, when moving an object from backbone to web fornt, I have
   some sort of helper class to create an FProduct out of the real
   Product object.

   Major disavantage is of course the back and forward copying and all
   the code associated with this.

   Do you guys have better approaches? I'd love to hear your ideas/ best
   practises.

   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] Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread GeneralSlaine
Hi all,
I've been having some issues with getting my persistant object to GWT
web front-end for example when implementing a web page to modify this
object. Ideally I would like to be able to reuse the same class both
for back-end as for front-end.
So far, I have not managed.
Instead I have a backbone class: Product and a front-end class
FProduct. Communication between front-end and backbone is always via
FProduct. So, when moving an object from backbone to web fornt, I have
some sort of helper class to create an FProduct out of the real
Product object.

Major disavantage is of course the back and forward copying and all
the code associated with this.

Do you guys have better approaches? I'd love to hear your ideas/ best
practises.

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: App Engine Really Slow after certain time of no requests

2010-11-13 Thread GeneralSlaine
Thanks, this is exactly the info I looking for.

On 13 nov, 15:28, zhiw...@gmail.com zhiw...@gmail.com wrote:
 http://code.google.com/intl/en/appengine/kb/java.html#What_Is_A_Loadi...

 On Nov 12, 1:48 am,GeneralSlainelennart.ben...@gmail.com wrote:







  Hi all,

  I have had a number of performance issues on initial loading of my app
  engine application. Part of it is already solved by using Caching.
  However, my application is still very slow when first loading a
  servlet after a certain amount of time of inactivity (I think about 1
  minute).

  After this period of inactivity it takes from 3 to 6 seconds to load.
  Next requests take typically 400 MS.

  The initial load time is not acceptable for the actual application.
  Anyone any experience with this? How can I avoid this?

  I already considered implementing following solutions to keep
  application / servlet in memory
  1/ call application every minute from external application
  2/ setup a cron job performing a request every minute to actual
  servlet

  I think both are a solution but honestly not my preferred solution as
  I expect performance from this platform.

  BRL

-- 
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-j...@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] App Engine Really Slow after certain time of no requests

2010-11-11 Thread GeneralSlaine
Hi all,

I have had a number of performance issues on initial loading of my app
engine application. Part of it is already solved by using Caching.
However, my application is still very slow when first loading a
servlet after a certain amount of time of inactivity (I think about 1
minute).

After this period of inactivity it takes from 3 to 6 seconds to load.
Next requests take typically 400 MS.

The initial load time is not acceptable for the actual application.
Anyone any experience with this? How can I avoid this?

I already considered implementing following solutions to keep
application / servlet in memory
1/ call application every minute from external application
2/ setup a cron job performing a request every minute to actual
servlet

I think both are a solution but honestly not my preferred solution as
I expect performance from this platform.

BRL

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