[appengine-java] JDO Database Design and Transactions

2010-01-18 Thread Miroslav Genov
Hello, I'm trying to create a simple warehouse app on GAE, but I'm stuck with the design of my models. Here are my thoughts about the design: Inventory - Goods (id, quantity, prices and etc) - Groups Customer (id,name) - Order(Date) - OrderItem(GoodId, price, quantity) Operation: Order

[appengine-java] Moving domain to new app

2010-01-18 Thread John Patterson
Hi, is there any downtime required to move a domain name from one app to another? -- 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

[appengine-java] Re: Memcache question

2010-01-18 Thread jd
There is no event mechanism with memcache. You would need to store items in memcache and the datastore at the same time. If memcache doesn't have it check the datastore. On Jan 18, 4:44 am, Andrei gml...@gmail.com wrote: Is there a way to code Memcache that would notify when particular entry

[appengine-java] Re: 1000 Entity limit

2010-01-18 Thread jd
You can iterate over _more_ than 1000 results. From the horses mouth (sorry Don): http://groups.google.com/group/google-appengine-java/browse_thread/thread/4dc3cd9e6113fe16# On Jan 17, 11:58 pm, Paul Jacobs paul.r.jac...@gmail.com wrote: Can I get a quick confirmation? The 1000 entity limit

[appengine-java] Exception caught with: An error occurred for the API request datastore_v3.RunQuery().

2010-01-18 Thread Miroslav Genov
com.google.apphosting.api.ApiProxy$UnknownException: An error occurred for the API request datastore_v3.RunQuery(). at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall(ApiProxyImpl.java:235) at com.google.apphosting.runtime.ApiProxyImpl.access$000(ApiProxyImpl.java:43) at

[appengine-java] duplicated entitymanagerfactory?

2010-01-18 Thread asianCoolz
i able to run without any error on hosted mode, but when i run on production (uploaded) i get error below [testetefsdf/2.339255113445835576].stdout: 14:14:01,205 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed

[appengine-java] Re: Memcache question

2010-01-18 Thread Andrei
Are there plans to add notification for expiration? On Jan 18, 8:30 am, jd jdpatter...@gmail.com wrote: There is no event mechanism with memcache.  You would need to store items in memcache and the datastore at the same time.  If memcache doesn't have it check the datastore. On Jan 18, 4:44 

[appengine-java] equal rights for Java URLFetch

2010-01-18 Thread Locke
We are limited to 32,000 URLFetch calls per minute (that's 533 per second). In Python, one could use the .create_rpc() method to fire off several hundred URLFetch calls at a time. But in Java, it is absolutely impossible, as far as I can tell, to execute more than a tiny fraction of the allowed

[appengine-java] Re: AppEngine returns SUCCESS status even if it fails to process Chat Msg

2010-01-18 Thread Prashant Gupta
anyone? 2010/1/17 Prashant Gupta nextprash...@gmail.com Hi, I have noticed that sometimes AppEngine fails to process some Chat Msgs (requests), especially when it receives a (Chat Msg) request after a long gap (5 min in my case) or when request rate is high, showing following error in logs

[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-01-18 Thread Locke
The dollar cost of apps being initialized more than they need to has always concerned me though. This is an important observation. Keeping our apps loaded with cron or other hacks is discouraged, yet we are billed for far more CPU usage if we allow appengine to unload/reload our apps every few

[appengine-java] Re: welcome-file-list not working on the appengine

2010-01-18 Thread David Chandler
Try dropping the leading slash, i.e. welcome-file-list welcome-filewelcome.html/welcome-file /welcome-file-list Welcome-file-list should contain only filenames, not paths. /dmc http://turbomanage.wordpress.com On Jan 16, 9:59 am, aswath satrasala aswath.satras...@gmail.com wrote: Hello,

[appengine-java] Statistics Query returns null Entity for statistic entity on Development Server

2010-01-18 Thread Stuart Moffatt
Cannot get statistics for an entity on the dev server: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Entity globalStat = datastore.prepare(new Query (__Stat_Total__)).asSingleEntity(); Long totalBytes = (Long) globalStat.getProperty(bytes); OS: Mac OS X 10.5.8,

Re: [appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-01-18 Thread Paul Hammant
I suspect that Google can't price up the RAM in use by node. Or at least given http://gregluck.com/blog/archives/2009/06/the-limitations-of-google-app-engine/ they can't do fine grained billing based on stack/heap usage. I think they'd need to be able to do that before allowing us to keep

[appengine-java] Re: 1000 Entity limit

2010-01-18 Thread Paul Jacobs
Thanks. On Jan 18, 6:49 am, jd jdpatter...@gmail.com wrote: You can iterate over _more_ than 1000 results. From the horses mouth (sorry Don): http://groups.google.com/group/google-appengine-java/browse_thread/th... On Jan 17, 11:58 pm, Paul Jacobs paul.r.jac...@gmail.com wrote: Can I

Re: [appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-01-18 Thread John Patterson
I would be happy if they could page the heap of a quiet app to disk instead in re-initialising. To read even 100MB from disc would take less than a second... maybe another to send it across the network. A delay on that scale wouldn't worry me. On 19 Jan 2010, at 00:20, Paul Hammant

[appengine-java] error DEPLOYING (500 Internal server error)

2010-01-18 Thread aloo
Hi, I'm trying to deploy my java based appengine app through the eclipse plugin. I get an error at the very end of the process whichI pasted below. Any ideas what this could mean? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL:

[appengine-java] JDO / JPA Appengine tutorial

2010-01-18 Thread niraj
Is there a good book / Tutor / Article available for Appengine Data stuff. I know about http://gae-java-persistence.blogspot.com. Any more resources- I am mainly struggling with Mapping issues and Entity Group related transaction issues. -- You received this message because you are subscribed

[appengine-java] Re: error DEPLOYING (500 Internal server error)

2010-01-18 Thread aloo
A quick update: Even though eclipse is reporting an error the application sill deploys. HOWEVER, my task queues are not deployed as specified in my queue.xml On Jan 18, 2:04 pm, aloo aleem.maw...@gmail.com wrote: Hi, I'm trying to deploy my java based appengine app through the eclipse plugin.

[appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-18 Thread Lucian Baciu
That's a great video, but I don't think it can help me. I think my model is right, it is basically 1 to many owned relationship and as the number of child entities grows so does the insert operations time. I can't figure out why! Any idea why??? Thanks, Lucian On Jan 15, 8:55 pm, Ikai L (Google)

[appengine-java] Enforcing unique constraint

2010-01-18 Thread tal
How do I enforce a unique constraint in GAE? -- 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

Re: [appengine-java] Enforcing unique constraint

2010-01-18 Thread John Patterson
You need to do it yourself by checking first if it exists. Entities put with the same key overwrite each other. On 19 Jan 2010, at 02:51, tal wrote: How do I enforce a unique constraint in GAE? -- You received this message because you are subscribed to the Google Groups Google App Engine

Re: [appengine-java] Enforcing unique constraint

2010-01-18 Thread Rusty Wright
In your class, if you have a Collection of entities that you want to not have duplicates you can make it a Set, and be sure that you've provided a proper equals() and hashCode() for your entities; specifically, do not include the primary key because it starts out null when you instantiate the

[appengine-java] Re: RESTfull - JAX-RS and GAE/J

2010-01-18 Thread Philippe Marschall
On Jan 16, 10:23 pm, Jeff Schnitzer j...@infohazard.org wrote: JBoss Resteasy works fine without any special customization for GAE. I use it extensively. http://www.jboss.org/resteasy You have to work around their POMs: https://jira.jboss.org/jira/browse/RESTEASY-180 Apparently it is cool

Re: [appengine-java] Enforcing unique constraint

2010-01-18 Thread Sandeep Sathaye
GAE (Bigtable) doesn't support this kind of functionality. We have implemented a relational database on top of GAE (Bigtable) which supports referential integrity etc. Please check it out here, http://www.cloud2db.com On Mon, Jan 18, 2010 at 3:08 PM, Rusty Wright rwright.li...@gmail.comwrote:

[appengine-java] Re: 1000 Entity limit

2010-01-18 Thread Paul Jacobs
Well, it appears that this cannot be done. Works fine on the development server but I get this: java.lang.IllegalArgumentException: offset may not be above 1000 on the live server. See similar results below: http://www.mail-archive.com/google-appengine-java@googlegroups.com/msg04763.html

[appengine-java] Status Of Issue 1899 - Async Http Requests For Java

2010-01-18 Thread devadvocate
Hi all, I'm just checking in to see if Async Http Requests For Java are a priority and may be released anytime soon. If not I'll have to rewrite most of my app in python or use rackspace cloud hosting :-( Thanks, David -- You received this message because you are subscribed to the Google

Re: [appengine-java] Re: RESTfull - JAX-RS and GAE/J

2010-01-18 Thread Jeff Schnitzer
Or you can just get rid of that trainwreck called Maven. Jeff On Mon, Jan 18, 2010 at 12:10 PM, Philippe Marschall philippe.marsch...@gmail.com wrote: On Jan 16, 10:23 pm, Jeff Schnitzer j...@infohazard.org wrote: JBoss Resteasy works fine without any special customization for GAE. I use it

Re: [appengine-java] Re: 1000 Entity limit

2010-01-18 Thread Jeff Schnitzer
If you call PreparedQuery.asIterator(), you can actually iterate yourself as far as you want (within the deadline, of course). In practice I've found you can rarely iterate through more than a couple thousand entities. The offset value is limited to 1,000. Basically the datastore is iterating

[appengine-java] Re: Statistics Query returns null Entity for statistic entity on Development Server

2010-01-18 Thread m seleron
Hi, I found the thread that looked like. http://groups.google.com/group/google-appengine-java/browse_thread/thread/f2595bcaa2256a93/68a5a9a28502410b?lnk=gstq=Statistics#68a5a9a28502410b In Development Server, statistics seems to return NULL. thanks. On 1月19日, 午前2:00, Stuart Moffatt

[appengine-java] Can't have more than one @Embedded of same type JPA

2010-01-18 Thread Nick Bonatsakis
Hi All, I just updated to version 1.3.0 and I am now getting a runtime datanucleus exception complaining about having two @Embedded fields of the same type on an @Entity class. It seems like Error message is: class has multiple relationship fields of type. This is not yet supported Should

[appengine-java] How to use generated key.getId() to build parent child keys

2010-01-18 Thread Duong BaTien
Hi: Has anyone figured out the use of generated long id in @PrinaryKey to build a complete key graph. If not possible, what is the best technique to generate long id for a complete graph of parent-child relationship. Following is a use case: UserOrg is the root entity with userId =

[appengine-java] Problems with sending Https request to other applications

2010-01-18 Thread Featheast Lee
Now I am running two applications, one is on the GAE platform and another is a normal java app. What I need to do is send a https request from the GAE app to the normal java app. The certificates I have alerady self-signed and generated by Keytools, and also added to the jre of GAE app. However,

Re: [google-appengine] Key sorting.

2010-01-18 Thread Nick Johnson (Google)
Hi Timofey, On Fri, Jan 8, 2010 at 11:16 AM, Timofey Danshin rus.mcdevelo...@gmail.comwrote: Hi. I am writing a cms, which has sections and articles. Both of them are represented by the same object of the type Node of my own composition. Among other fields, a node has a SetNode, representing

Re: [google-appengine] Re: XMMP IQ stanzas App Engine ... supported ? workaround ?

2010-01-18 Thread Nick Johnson (Google)
Hi Olemis, IQ stanzas are not currently supported. You can access the raw XML of the incoming request, but only specific types of request can be handled by your app, and only specific message types can be sent. -Nick Johnson On Mon, Jan 11, 2010 at 8:21 PM, Olemis Lang ole...@gmail.com wrote:

Re: [google-appengine] Re: How can I describe the structure of index table?

2010-01-18 Thread Nick Johnson (Google)
Hi, Your original assessment is correct. For more details, see this video from Google I/O 2008: http://www.youtube.com/watch?v=tx5gdoNpcZM On Wed, Jan 13, 2010 at 12:13 AM, kaz kazunori...@gmail.com wrote: In addition, - If it is correct, numerical property values like 123 will be converted

Re: [google-appengine] Why no implementation for kind 'ext_model'?

2010-01-18 Thread Nick Johnson (Google)
Hi Alan, This happens when you don't import the Python module that implements a particular entity type. You need to make sure the module containing your deferred function imports the relevant module. -Nick Johnson On Fri, Jan 15, 2010 at 8:04 PM, Alan Xing alanx...@gmail.com wrote: We have

[google-appengine] Re: Clarification of Geographic content distribution

2010-01-18 Thread Karl
Hi Barry, thanks for your answers.  * Why is US so slow? Dont know Well currently I get ping times of about 70msec. Seems to be some google routing / proxy magic.  * Why the major differences between ghs and appspot? ghs is a proxy of a number of different applications - including

Re: [google-appengine] Re: XMMP IQ stanzas App Engine ... supported ? workaround ?

2010-01-18 Thread Olemis Lang
On Mon, Jan 11, 2010 at 8:21 PM, Olemis Lang ole...@gmail.com wrote: On Thu, Jan 7, 2010 at 10:54 AM, Olemis Lang ole...@gmail.com wrote: Before jumping I wanted to know if the pool is empty ... ;o) IOW. I've been reading the XMPP API docs and I found nothing about support for IQ

Re: [google-appengine] About Transactions

2010-01-18 Thread Nick Johnson (Google)
Hi Patrick, Providing global transactions would require a substantial amount of infrastructure work, and the result will inevitably (due to pesky speed-of-light limitations) be slower than local transactions. As such, it's not out of the question that we might support it in future, but we don't

Re: [google-appengine] SSL with my own domain

2010-01-18 Thread Nick Johnson (Google)
Hi Timmy, At this point we're not committing to an ETA for this feature. As such, if your business depends on it, I would recommend either building your solution to use a proxy server for SSL in the meantime, or choosing another technology. Regards, Nick Johnson On Mon, Jan 4, 2010 at 8:37 PM,

Re: [google-appengine] Conditional Gql Querying by ID

2010-01-18 Thread Nick Johnson (Google)
Hi, You can do SampleModel.filter('__key__ ', db.Key.from_path('SampleModel', 50)). Bear in mind, however, that App Engine makes no guarantees about sequentiality or ordering for datastore key IDs. -Nick Johnson On Wed, Jan 6, 2010 at 12:58 AM, B. Suchland suchl...@gmail.com wrote: I was

Re: [google-appengine] Sending mail via second Developer-Account - only with second phone number?

2010-01-18 Thread Nick Johnson (Google)
Hi, You can add a user as an administrator of an app even if they haven't completed SMS verification. -Nick Johnson On Tue, Jan 5, 2010 at 8:19 PM, serprime philipp.a.steinwen...@gmail.comwrote: Hi. Is there a way to add an second developer account to an application without having a second

[google-appengine] Selling App Engine Apps

2010-01-18 Thread Timofey Danshin
Hi. I've written a decent web-app on app-engine. Do i have the right to sell it to others? I mean, not the source code, but install the app onto their app engine accounts? Thank you in advance, Best Regards, Timofey Danshin. -- You received this message because you are subscribed to the Google

Re: [google-appengine] Selling App Engine Apps

2010-01-18 Thread Nick Johnson (Google)
Hi Timofey, You own the app, so you're welcome to do anything you like with it as long as it's not in violation of our TOS. If they add you as an administrator on an app they've created, you can, of course, deploy your app to it. -Nick Johnson On Mon, Jan 18, 2010 at 3:41 PM, Timofey Danshin

Re: [google-appengine] models help - simple sharding example

2010-01-18 Thread Nick Johnson (Google)
Hi Andy, On Mon, Jan 4, 2010 at 8:08 PM, Andy andywo...@gmail.com wrote: I'm new to sharding and am a little stuck on how to implement the toy problem below. Basically I have a many-to-one relationship between a Company and Employees, and I want shards which are partitioned according to

[google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread bFlood
hi Timofey that is how we will be deploying our app. Users add a specific email address as a developer and then we load/maintain the source code remotely. A simple cron request makes a call back to our controlling app (on GAE) so we can change limits, upgrade features or turn off the remote app

Re: [google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread Nick Johnson (Google)
Hi Brian, On Mon, Jan 18, 2010 at 5:05 PM, bFlood bflood...@gmail.com wrote: hi Timofey that is how we will be deploying our app. Users add a specific email address as a developer and then we load/maintain the source code remotely. A simple cron request makes a call back to our controlling

Re: [google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread Timofey Danshin
Thank you for your replies. They were most helpful. I didn't quite understand the download source code part. I never gave it a thought before, but does that mean, that the applications are deployed to the server along with the source code (which, probably, would be logical, since they could be

[google-appengine] URGENT! I cannot enable billing

2010-01-18 Thread Magnus O.
Hi, My application just reached the free billig qouta and has been disabled. I tried to enable the billig and waited about 25 minutes for it to be activated. After I waited 25 minutes the account went from being activated to free. Why hasn't my quouta been release and why is the account labeled

Re: [google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread Eli Jones
Timofey, I'm not sure how App Engine stores the applications on the server, but my assumption is that Nick means that (in the future) there may be some option in the app.yaml (like source_download: yes) and there would be some link on the Dashboard page that you could click to get the source as

[google-appengine] Re: URGENT! I cannot enable billing

2010-01-18 Thread Magnus O.
The billing has now started. I just had to wait a bit... On 18 Jan, 20:31, Magnus O. magnus.ottos...@magnusottosson.se wrote: Hi, My application just reached the free billig qouta and has been disabled. I tried to enable the billig and waited about 25 minutes for it to be activated. After I

Re: [google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread Timofey Danshin
Oh, i see. I forgot that there was Python app-engine as well :) I am writing in Java. 2010/1/18 Eli Jones eli.jo...@gmail.com Timofey, I'm not sure how App Engine stores the applications on the server, but my assumption is that Nick means that (in the future) there may be some option in the

[google-appengine] Re: models help - simple sharding example

2010-01-18 Thread Danny Tuppeny
There were some useful replies to this other, similar thread, also posted by an Andy ;-) http://groups.google.com/group/google-appengine-python/browse_thread/thread/80a44f96c623c964 On Jan 18, 3:51 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Andy, On Mon, Jan 4, 2010 at 8:08

[google-appengine] Re: remote_api

2010-01-18 Thread cabhishek
hi, i am not able to use remote_api for access data store locally on windows.. any pointers about how to start using remote_api ? -abhishek On Dec 17 2009, 4:53 am, alf alberto@gmail.com wrote: At the end i can access to remote_api after configure all stuff.  We I can get entities with

[google-appengine] Re: Sending mail via second Developer-Account - only with second phone number?

2010-01-18 Thread Danny Tuppeny
My experience wasn't that complicated. I made sure I wasn't logged into any other Google accounts, then clicked the link in the email (there were two, one for Google Accounts and another for Apps accounts). It just added it to my list. I didn't have to add a mobile number, nor create an app. It

[google-appengine] is it possible to use jingle?

2010-01-18 Thread maxsap
hello all i am using app engine with java, i am aware of the app engine's xmpp support but is it possible to use jingle? if not would i be able to use smack to do jingle? because there is a restriction about opening ports. thanks in advanced maxsap -- You received this message because you are

[google-appengine] Re: Clarification of Geographic content distribution

2010-01-18 Thread nickmilon
The question if GAE appls are served from varius datacenters or not has been answered some time ago in this group by  Ikai L (Google)   from whom I quote Our data centers are distributed for redundancy and failover, but we're not  doing anything with regards to intelligently serving content from

[google-appengine] Re: Clarification of Geographic content distribution

2010-01-18 Thread Karl
Hi,  * is GAE using edge / proxy servers for static content distribution (it seems, but not very stable based on my experiences with ghs.google.com where traffic is sometimes routed from US to europe [some hours ago ghs.google.com pointed to bw-in-f121.1e100.net when tracing it from US (and

Re: [google-appengine] Re: EntityProto instance to Model instance?

2010-01-18 Thread Nickolas Daskalou
I've managed to get this going, with the help of the comments in this thread and Nick Johnson's blog post ( http://blog.notdot.net/2009/11/API-call-hooks-for-fun-and-profit). My hook code now looks like this: def hook(service, call, request, response): assert service == 'datastore_v3' if

[google-appengine] Re: How can I describe the structure of index table?

2010-01-18 Thread kaz
Hi Nick, Your original assessment is correct. For more details, see this video from Google I/O 2008: http://www.youtube.com/watch?v=tx5gdoNpcZM I've seen it several months ago and saw it again today :) Yes, this time I could hear Ryan was saying that: I'm omitting key from (the diagram of) the

[google-appengine] AppEngine boot times in Ruby, Python, and Java (benchmarks)

2010-01-18 Thread Locke
Out of curiosity, I decided to implement hello world in the two official, and one unofficial, languages that run on AppEngine. These apps make no use of the datastore or any services. They just print hello world. The methodology was simply to run the app three times, waiting for about a minute

[google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-18 Thread Siddharth Patnaik
Hi Guys, This is an urgent issue for me. Can anyone of you please respond to this question? If the question is not clear or more info is required please let me know regards, Siddharth On Jan 17, 7:07 pm, Siddharth Patnaik spatnai...@gmail.com wrote: Hi, I have the following situation. I have 2

Re: [google-appengine] Re: onowned Many2Many relationship management - how to handle

2010-01-18 Thread OvermindDL1
On Mon, Jan 18, 2010 at 10:49 PM, Siddharth Patnaik spatnai...@gmail.com wrote: Hi Guys, This is an urgent issue for me. Can anyone of you please respond to this question? If the question is not clear or more info is required please let me know On Jan 17, 7:07 pm, Siddharth Patnaik

Re: [google-appengine] Re: Selling App Engine Apps

2010-01-18 Thread Andrew Chilton
Hi bFlood, 2010/1/19 bFlood bflood...@gmail.com: that is how we will be deploying our app. Users add a specific email address as a developer and then we load/maintain the source code remotely. A simple cron request makes a call back to our controlling app (on GAE) so we can change limits,

[google-appengine] Help, I can't increase my billing quota

2010-01-18 Thread Johann C. Rocholl
My app scoretool is currently showing 503 Over Quota: This Google App Engine application is temporarily over its serving quota. Please try again later. However, I cannot find a way to increase the billing quota. Below is what the Billing Settings page looks like, there is no Google Checkout

[google-appengine] Re: Help, I can't increase my billing quota

2010-01-18 Thread Johann C. Rocholl
I watched the screencast at http://code.google.com/appengine/docs/billing.html and saw that the Billing Settings page is supposed to have buttons labeled Disable Billing and Change Budget, but these buttons are missing in my account. I am the only admin for this app, and the Billing Administrator.

Re: [google-appengine] Re: auto run tasks using dev sdk

2010-01-18 Thread djidjadji
I use the following Cookbook recipe http://appengine-cookbook.appspot.com/recipe/run-tasks-automatically-on-your-local-development-server/ 2010/1/13 Wesley Chun (Google) wesc+...@google.com: greetings! let us know how you end up implementing it. does anyone else out there have a different