[appengine-java] Export to Excel

2011-01-24 Thread Aswath Satrasala
Hello, My application design is GWT and Servlets. I have the following situation in order to generate a report. * Because of DeadlineExceeded exception in AppEngine server, I will not be able to make one RPC call to fetch and aggregate the data and return to the Client. * Hence, I make few RPC

[appengine-java] Re: Export to Excel

2011-01-24 Thread Didier Durand
Hi, You should read and follow the link here to go over the 30s limit and keep thing simple for you user: http://groups.google.com/group/google-appengine-java/browse_thread/thread/42f1db6e64a8e2e2/cb8652a43a259b7b?lnk=gstq=blobstore+blob+trick#cb8652a43a259b7b Another way to handle you case is

[appengine-java] Re: Changing logging .level does not affect logging

2011-01-24 Thread nacho
You have to 1) enable loging in your WEB-INF/appengine-web.xml system-properties property name=java.util.logging.config.file value=WEB-INF/logging.properties/ /system-properties 2) Set the logging level for your clasess in WEB-INF/logging.properties com.mypackage.level=INFO And I

[appengine-java] Re: Task Queue API Update

2011-01-24 Thread Simon Knott
As Fabrizio has mentioned, the API methods have changed. However, you're saying that you can get the code to compile and it's throwing errors at runtime, which suggests that something has gone wrong with your imports - are you including both the labs and the non-labs API imports in the same

[appengine-java] Regarding docs upload in using gadget!

2011-01-24 Thread Dilip kumar
Hi, I am new comer in google apps. In one my requirements I need to design a sites that use gadget to upload create new docs(.doc,xls, .ppt) doc template has one button 'new' (to create new doc) content field. home page has the following navigation Home by date by owner by label when we

[appengine-java] Re: Task Queue API Update

2011-01-24 Thread Didier Durand
Hi, Do you work on local dev server or on live infrastructure ? Local dev servers requires additional jars to be included regards didier On Jan 24, 12:02 pm, Simon Knott knott.si...@gmail.com wrote: As Fabrizio has mentioned, the API methods have changed.  However, you're saying that you

Re: [appengine-java] Can't fetch a dataset using primary key

2011-01-24 Thread Ikai Lan (Google)
Try: SELECT * from DB WHERE __key__ = KEY('1') You can find more documentation on this here: http://code.google.com/appengine/docs/python/datastore/gqlreference.html -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit:

Re: [appengine-java] Re: how to query TaskQueue for count of running/pending tasks?

2011-01-24 Thread Ikai Lan (Google)
This is the issue you want to star: http://code.google.com/p/googleappengine/issues/detail?id=1948 -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Sun,

Re: [appengine-java] Sample to read Log

2011-01-24 Thread Ikai Lan (Google)
I'm not aware of any log parsing libraries, though some users have reported luck using Splunk: http://www.splunk.com/ http://www.splunk.com/If you're going to write your own log parser, do yourself a favor and don't do it in Java. -- Ikai Lan Developer Programs Engineer, Google App Engine

Re: [appengine-java] Can't fetch a dataset using primary key

2011-01-24 Thread Marc Herber
Thanks for your help. Unfortunatelly this syntax isn't working at all :( I tried to run this statement within the datastore viewer but I get an error GQL Query. Apart from that the link you posted is for python, but I would need it for java. Can you/anybody help me with that too? Thanks in

Re: [appengine-java] Can't fetch a dataset using primary key

2011-01-24 Thread Marc Herber
Meanwhile I tried this *java* code: PersistenceManagerFactory pmf = JDOHelper.getPersistenceManagerFactory( transactions-optional ); PersistenceManager pm = pmf.getPersistenceManager(); Antwort objectById = pm.getObjectById( Antwort.class, parameters.getLong( Constants.ID ) ); And this is my

Re: [appengine-java] Can't fetch a dataset using primary key

2011-01-24 Thread Stephen Johnson
Try changing Ikai's code to include the entity name like: SELECT * from DB WHERE __key__ = KEY('DB','1') if your key is a number then SELECT * from DB WHERE __key__ = KEY('DB',1) Documentation: an entity key literal, with either a string-encoded

Re: [appengine-java] Can't fetch a dataset using primary key

2011-01-24 Thread Stephen Johnson
Hi Marc, As the error message says, you should use a singleton to share your persistence manager. Your code must be allocating it more than once. Here ya go: import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; import javax.jdo.PersistenceManager; final public class PMF {

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-24 Thread Vik
anyone please some update on this? I am unable to find it by googling either... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Sat, Jan 22, 2011 at 1:59 PM, Vik vik@gmail.com wrote: any help on this please as it is blocking us to effectively log the queries

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-24 Thread A. Stevko
Sorry Vik, There is no single string created for prepared queries - the JDO2 standard dhttp://db.apache.org/jdo/api23/apidocs/index.htmloes not allow for retrieving query information. http://db.apache.org/jdo/api23/apidocs/javax/jdo/Query.html Now if you were working with the low level database