[appengine-java] Question about Terms Of Service.

2010-02-10 Thread Thanasis
Hello, Scenario: I create a REST API and publish it on application-1.appspot.com. Then, I create a web/client application (for real people) which uses the API above and publish it on application-2.appspot.com Is this scenario compatible with term 4.4 of the AppEngine TOS (http://

[appengine-java] Running a cron job within a time span of work days

2010-02-10 Thread Imran M Yousuf
Hi, I want to configure a cron job for running every 2 minutes from (e.g.) 1000 to 1600 hours. Firstly, can I use something as follows? Secondly, how can I specify how long the cron job will run? cron url/update/url descriptionRepopulate data every 2 minutes from 10:00 AM/description

[appengine-java] Re: Estimated expiration average of an entity in memcache

2010-02-10 Thread a.maza
thanks for your detailed answer. however, I think I won't be able to track the miss rate, since I am not keeping information which key/value pair's I am putting in memcache (since this would require to keep the list of keys again in memcache). Instead, I would like to fetch the data using the

Re: [appengine-java] Re: UserService.createLoginURL() to a chrome extension

2010-02-10 Thread Shai Levy
Thanks for the reply! I actually already considered what he suggested but had two reason's not to do so: 1. Security - to me it feels like having a html located on a server which hold's trigger commands to an extension is a risky option and might lead to code injection vulnerabilities (of course

Re: [appengine-java] Re: Persistence with JPA + GAE

2010-02-10 Thread Diego Osse Fernandes
Hi Johan, try this code try{ cn2.getTransaction().begin(); cn2.persist(e); cn2.getTransaction().commit(); response.getWriter().write(ok); } catch(Exception e){ cn2.getTransaction().rollback();

[appengine-java] Re: getNextID

2010-02-10 Thread datanucleus
JDO Sequences work, we just haven't publicized them. Max, you mean value-strategy of SEQUENCE ? I was referring to pm.getSequence(), which maps across to your implementation of StoreManager.getNucleusSequence(). i.e a stand- alone way of having sequences available to the user -- You received

Re: [appengine-java] Re: Getting Started : Eclipse, GWT, App Engine - Unable to resolve

2010-02-10 Thread John Patterson
If you do not have the source then you need to create it yourself... or use a library that has already done that like Objectify. Look into super source for how you use your own source code. On 10 Feb 2010, at 16:38, watch wrote: If this is true, and I have no reason to doubt you then none

Re: [appengine-java] Re: getNextID

2010-02-10 Thread aswath satrasala
Hello Max, thanks. I think sequential ids will be a must in my case. It does not have to be for a PK, but for non-pk is also fine. I am creating a small multi-tenancy Accounting/HR application and when I create employees, I am thinking of giving an employeeID for the employee. In addition, I want

Re: [appengine-java] queue.xml question

2010-02-10 Thread seleronm
Hi, Maybe the following thread may help http://groups.google.co.uk/group/google-appengine/browse_thread/thread/3d64511a517cffc1/64fe290597597511 Hope this helps, The bucket size and rate seem to have no effect when running my application in eclipse. The tasks added to my queue are processed

Re: [appengine-java] DataStore Error 1000000 characters, but I'm not persisting

2010-02-10 Thread Don Schwarz
How much data are you storing in your session? Currently, the serialized representation of a sessions contents must be the 1MB entity limit. On Tue, Feb 9, 2010 at 12:46 PM, Jake jbrooko...@cast.org wrote: Hello, I'm getting the following error: java.lang.IllegalArgumentException: string

[appengine-java] Re: Close PersistenceManager every time?

2010-02-10 Thread hsjawanda
Nobody knows the answer to this? On Feb 7, 2:34 pm, hsjawanda hsjawa...@gmail.com wrote: Should the PersistenceManager be closed after every query? I have a utility class that handles querying the datastore. This class then returns results which are used by JSP pages to show output. AFAIK,

Re: [appengine-java] Re: getNextID

2010-02-10 Thread Max Ross (Google)
Both value-strategy of SEQUENCE and the standalone sequences work. See http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/org/datanucleus/test/SequenceExamplesJDO.java and

[appengine-java] Re: javax.annotation.Resource Spring 3.0.0.Release declarative DI on Google App Engine

2010-02-10 Thread Larry Cable
Not sure if this helps or not but you cannot use the Spring context:annotation-config / markup in your GAE Spring applications ... This will of course work locally but because the CommonAnnotationBeanPostProcessor attempts to load javax.annotation.Resource (and fails) then no annotation

[appengine-java] Re: Spring 3.0 + Tiles 2.1.4 + GAE

2010-02-10 Thread David F.
Hi, I was experiencing the same trouble and your advice solved it. Thank you for that. But it's not the last problem integrating Spring + Tiles on GAE. My stacktrace now shows : org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in

[appengine-java] How to use junit test in the newest SDK1.3.1

2010-02-10 Thread 时空之蕊
I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the JUnit document: import java.io.File; import com.google.appengine.tools.development.ApiProxyLocalImpl; import com.google.apphosting.api.ApiProxy; ApiProxy.setDelegate(new

[appengine-java] Re: can't send attachment via Java Mail API supported by GAE

2010-02-10 Thread Nehul
Thanks everything is working now. Now attachment is working. Flex base video to image capture application hosted on google app engine http://clickpicture.appspot.com/Video.html On Feb 5, 7:59 am, m seleron seler...@gmail.com wrote: Hi. I'm sorry for being not able to explain well. Please

Re: [appengine-java] Re: Estimated expiration average of an entity in memcache

2010-02-10 Thread Ikai L (Google)
You can also collect memcache stats with the API, but this currently can't be reset, so you'd have to work around this limitation to get useful data over time. On Wed, Feb 10, 2010 at 10:56 AM, Ikai L (Google) ika...@google.com wrote: It actually is possible to track the miss rate: track how

Re: [appengine-java] Re: Estimated expiration average of an entity in memcache

2010-02-10 Thread Ikai L (Google)
It actually is possible to track the miss rate: track how many GETs return null for keys you know must exist versus all GETs. You can either do this using memcache's INCR, or using sharded datastore counters. On Wed, Feb 10, 2010 at 1:24 AM, a.maza andr.m...@gmail.com wrote: thanks for your

Re: [appengine-java] Re: UserService.createLoginURL() to a chrome extension

2010-02-10 Thread Ikai L (Google)
Maybe, as there are other custom protocols we may wish to support on Android/Apple App Store/iTunes, etc. Can you file a feature request in our issue tracker? http://code.google.com/p/googleappengine/issues/list On Wed, Feb 10, 2010 at 1:49 AM, Shai Levy levys...@gmail.com wrote: Thanks for

[appengine-java] Re: DataStore Error 1000000 characters, but I'm not persisting

2010-02-10 Thread Jake
I've discovered my issue - Apache Wicket. Wicket has it's own Session that stores data in an ISessionStore. Normally, this is backed by a Disk, but can be backed with an HttpSession if set properly. The trick is that it stores a lot of state with each page, which I can change now that I know

[appengine-java] Re: javax.annotation.Resource Spring 3.0.0.Release declarative DI on Google App Engine

2010-02-10 Thread Marcel Overdijk
Larry, Check out https://jira.springsource.org/browse/SPR-6679 and please vote. On Feb 10, 7:11 pm, Larry Cable larry.ca...@gmail.com wrote: Not sure if this  helps or not but you cannot use the Spring context:annotation-config / markup in your GAE Spring applications ... This will of

Re: [appengine-java] Re: DataStore Error 1000000 characters, but I'm not persisting

2010-02-10 Thread Don Schwarz
On Wed, Feb 10, 2010 at 1:30 PM, Jake jbrooko...@cast.org wrote: I've discovered my issue - Apache Wicket. Wicket has it's own Session that stores data in an ISessionStore. Normally, this is backed by a Disk, but can be backed with an HttpSession if set properly. The trick is that it

Re: [appengine-java] Issue with setContentLength on GAE production

2010-02-10 Thread Ikai L (Google)
I assume you're going by this standard: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.htmlThe length that is being set if the full body were returned. This is likely being overridden somewhere downstream in our serving stack. I'll file

Re: [appengine-java] Issue with setContentLength on GAE production

2010-02-10 Thread Ikai L (Google)
Sorry, my last email was worded poorly. What I meant was, I assume what you meant by your original email is that we have a mismatch from the w3 standard for content length and HEAD requests. I've updated your issue in the tracker. On Wed, Feb 10, 2010 at 11:59 AM, Ikai L (Google)

[appengine-java] Re: Issue with setContentLength on GAE production

2010-02-10 Thread Sean Gilligan
Thanks! On Feb 10, 12:03 pm, Ikai L (Google) ika...@google.com wrote: Sorry, my last email was worded poorly. What I meant was, I assume what you meant by your original email is that we have a mismatch from the w3 standard for content length and HEAD requests. I've updated your issue in the

[appengine-java] Re: UserService.createLoginURL() to a chrome extension

2010-02-10 Thread Shai
Filed a request: http://code.google.com/p/googleappengine/issues/detail?id=2753 On Feb 10, 8:59 pm, Ikai L (Google) ika...@google.com wrote: Maybe, as there are other custom protocols we may wish to support on Android/Apple App Store/iTunes, etc. Can you file a feature request in our issue

[appengine-java] Deadlock on the development server.

2010-02-10 Thread Spines
I get a deadlock on the development server. It happens about once every 4 times I startup my app. It happens at PMF.clinit:11 the first time I access my PMF class, which is just a copy paste of the example PMF class from http://code.google.com/appengine/docs/java/datastore/overview.html. Deeper

[appengine-java] Re: Least CPU Intensive way to query?

2010-02-10 Thread Brian
I actually only need 2 of my 8 columns of those 1000 posts. (the rest is lazily loaded with ajax when clicked) My line of thinking is that in a relational database, getting 2 vs 8 columns won't really matter. The database does the same query and would just dump the extra 6 rows on the table

Re: [appengine-java] Deadlock on the development server.

2010-02-10 Thread Don Schwarz
On Wed, Feb 10, 2010 at 3:09 PM, Spines kwste...@gmail.com wrote: I get a deadlock on the development server. It happens about once every 4 times I startup my app. It happens at PMF.clinit:11 the first time I access my PMF class, which is just a copy paste of the example PMF class from

Re: [appengine-java] Re: Close PersistenceManager every time?

2010-02-10 Thread Ikai L (Google)
This is really up to you, though I would avoid detaching unless absolutely necessary. Opening and closing a PersistenceManager should be extremely cheap (it's instantiating a PersistenceManagerFactory that's expensive). You've got a few options here, and what you do really just depends on what

[appengine-java] Re: Deadlock on the development server.

2010-02-10 Thread Spines
Great! I can definitely initialize synchronously. I was just worried that there may be an issue with my code that would only show up sporadically on the production app engine. On Feb 10, 1:35 pm, Don Schwarz schwa...@google.com wrote: On Wed, Feb 10, 2010 at 3:09 PM, Spines kwste...@gmail.com

Re: [appengine-java] Re: Deadlock on the development server.

2010-02-10 Thread Ikai L (Google)
I'm a bit surprised all the XHR requests are going in parallel, since most browsers limit the amount of XHR calls you can make simultaneously. At any rate, they don't have to be synchronous, so to speak - you can just chain the callbacks so it doesn't block your UI loading. Hooray for languages

[appengine-java] App Engine SDK 1.3.1 is out!

2010-02-10 Thread Ikai L (Google)
Check it out! http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-including-major.html http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-including-major.htmlHere's the post: App Engine SDK 1.3.1, Including Major Improvements to

[appengine-java] [ANN] Objectify-Appengine 2.0, an easier way to work with the datastore

2010-02-10 Thread Jeff Schnitzer
Today we released version 2.0 of Objectify-Appengine. Objectify is a mid-level persistence API for the Appengine datastore - much simpler than JDO, much more sophisticated than the Low-Level API, much easier to use than either! http://code.google.com/p/objectify-appengine/ If you are unfamiliar

Re: [appengine-java] How to use junit test in the newest SDK1.3.1

2010-02-10 Thread Ikai L (Google)
We've got a more simple interface for you now. Take a look: http://code.google.com/appengine/docs/java/tools/localunittesting.html 2010/2/10 时空之蕊 skzr@gmail.com I found the class com.google.appengine.tools.development.ApiProxyLocalImpl is not public,but before 1.3.1 it's public! In the

[appengine-java] Re: jython / modjy FileOutputStream exception

2010-02-10 Thread Riley
Thanks for your help, Alan. I won't have a chance to try again for a while, so it'll remain a mystery until then. I'll be sure to post my results back here then. Thanks again! Riley On Feb 9, 8:05 am, Alan Kennedy alan.kennedy.n...@gmail.com wrote: [Riley] Thanks for your response.  I'm

[appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-10 Thread Peter Liu
App Engine now automatically retries all datastore calls (with the exception of transaction commits) when your applications encounters a datastore error caused by being unable to reach Bigtable Is the datastore retry logic at the base API level or at the JPA/JDO level? A lot of people are using

Re: [appengine-java] App Engine SDK 1.3.1 is out!

2010-02-10 Thread John Patterson
Very cool! Can't wait to replace my paging code with Cursors Was Async Url Fetch for Java included in this release? On 11 Feb 2010, at 06:15, Ikai L (Google) wrote: Check it out! http://googleappengine.blogspot.com/2010/02/app-engine-sdk-131-including-major.html Here's the post: App

Re: [appengine-java] App Engine SDK 1.3.1 is out!

2010-02-10 Thread yjun hu
i got a problem when i use sdk1.3.1 with compass2.3.0: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is

Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-10 Thread Don Schwarz
Yes, it is implemented in the low-level API, so it affects all datastore accesses regardless of the API used. On Wed, Feb 10, 2010 at 8:18 PM, Peter Liu tinyee...@gmail.com wrote: App Engine now automatically retries all datastore calls (with the exception of transaction commits) when your

Re: [appengine-java] Re: Close PersistenceManager every time?

2010-02-10 Thread Conor Power
Hi, I have a question on detachment ... I have my PM in a DAO and I open and close pre / post query. The problem was that the objects returned are null once the PM was closed unless I set them to be detachable. Is there an alternative instead of detach in this case? Should I: 1. make DTO of

[appengine-java] Running a cron job within a time span of work days

2010-02-10 Thread imyousuf
Hi, I want to configure a cron job for running every 2 minutes from (e.g.) 1000 to 1600 hours. Firstly, can I use something as follows? Secondly, how can I specify how long the cron job will run? cron url/update/url descriptionRepopulate data every 2 minutes from 10:00 AM/ description

[appengine-java] Very slow outbound URL.openstream() call

2010-02-10 Thread yc
Hello, I am having too many of these java.io.IOException: Timeout while fetching errors from my outbound URL.openstream() calls. When tested in my Firefox browser, the HTTP request to the non-appengine site usually takes less than 3 seconds. But the appengine log on the same request shows

[appengine-java] Re: How to use junit test in the newest SDK1.3.1

2010-02-10 Thread Krishna
Ok! But when I'm using transactions I'm getting: java.lang.NullPointerException: No API environment is registered for this thread. at com.google.appengine.api.datastore.DatastoreApiHelper.getCurrentAppId(DatastoreApiHelper.java: 67) at

[appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-10 Thread vori
Is it a bug on JDO of SDK 1.3.1? -- PersistentManager pm = PMF.get().getPersistenceManager();; ClassA classA = pm.getObjectById(ClassA.class, id); ClassB classB = new ClassB(); Transaction tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(classB); tx.commit(); // It throws

[appengine-java] java.io.IOException: Truncated quoted printable data (in 1.3.0 and 1.3.1)

2010-02-10 Thread moca
I am receiving the error below when receiving an email from Hotmail to an App Engine email Servlet. The same code works fine when receiving emails from Gmail and my cell for instance. gui.EMailReceiverServlet doPost: Truncated quoted printable data java.io.IOException: Truncated quoted printable

Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!

2010-02-10 Thread yjun hu
it exists on sdk1.3.0 too. On Thu, Feb 11, 2010 at 11:49 AM, vori vori...@gmail.com wrote: Is it a bug on JDO of SDK 1.3.1? -- PersistentManager pm = PMF.get().getPersistenceManager();; ClassA classA = pm.getObjectById(ClassA.class, id); ClassB classB = new ClassB(); Transaction tx