Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-08 Thread Yasuo Higa
Hi John, If you want to be able to query on the embedded instances then you will need to use one of the datastore specific persistence interfaces: ObjectDatastore from Twig and Objectify support this... not sure if others support embedded collections. Slim3 supports embedded collections as

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-08 Thread John Patterson
On 8 Apr 2010, at 13:51, Yasuo Higa wrote Slim3 supports embedded collections as follows: @Attribute(lob = true) private ListEmbeddedChild Children; See http://sites.google.com/site/slim3appengine/slim3-datastore/defining-data-classes/serializable-objects Serializing is a bit different to

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-08 Thread Yasuo Higa
Hi John, thanks for your clarification. Current Slim3 does not support embedding instances like Twig/Objectify. Yasuo Higa Serializing is a bit different to embedding instances because the Blob is opaque and not able to be queried.  If you use @Embed in Twig or Objectify you can query for

[appengine-java] How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
Hey, How do you ensure, once you have queried an object from the datastore, that another call to that object cannot be made? I basically have a bunch of objects with counters which get incremented during each call to that object. What I need to ensure is the object doesn't get called by two

[appengine-java] Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread mscwd01
Hey, As the title of this post suggests, is it possible to get a unique Long id from a user defined String key? Thanks -- 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

[appengine-java] Re: Error message after updating AppEngine in my project

2010-04-08 Thread dmitrygusev
The same here, I have several non-jar files in WEB-INF/lib (*.txt, *.cmd) and see GAE fails to open them as ZIP. Why would it try to open non-jar files as zip? Isn't this a bug? This doesn't break development, but I get shocked when saw this first time. And now this really annoying starting up the

Re: [appengine-java] How to ensure object synchronization when using the datastore

2010-04-08 Thread John Patterson
You will need to read and update the object in a transaction which will throw an exception on commit if another thread updates the same entity. You can then refresh the object and try again. Also look into memcache which has an atomic counter increment method that is much faster than

[appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
Thanks John. So basically the process should be: - Query for the object inside a transaction - Update the object counter - Commit - If commit fails - re-query the datastore for the same object? Is it possible to just catch the exception and try committing the object again or will I have to

[appengine-java] Re: ANN: Firefox add-on for tracking GAE estimated cost

2010-04-08 Thread Thomas
Does the X-AppEngine-Estimated-CPM-US-Dollars header appears only if the application is using Google Account authentication scheme? I have login as the administrator (developer of the web app), but have never seen this response header. -- You received this message because you are subscribed to

[appengine-java] Re: Adding Task-Queue Tasks in Batch?

2010-04-08 Thread Keith
I think the five limit still applies. If you want to run more than five you could run five tasks and structure them to enqueue further tasks once they run. On Apr 8, 4:41 am, Seth Ladd sethl...@gmail.com wrote: Thanks! If under a transaction, are tasks added via batch still constrained to 5

[appengine-java] Query returns unchanged data

2010-04-08 Thread danblack
Hello. I'm using JPA for the App Engine datastore. And I've got some problems. I've got an entity Container than contains entities Item(s). Here is my actions. I start transaction then update entity then flush updates to database. Then I get all entities of class Item(s) for a container which

[appengine-java] Re: ANN: Firefox add-on for tracking GAE estimated cost

2010-04-08 Thread radomir
Yes, as far as I'm aware, the header is available only with Google Account authentication. Even when your application uses custom authentication, I guess you could try providing an extra (hidden) login page for you (developer) that will authenticate your session and allow you to collect cost

[appengine-java] Re: Using app's ELResolver class

2010-04-08 Thread alesj
I tried all sorts of things -- implementing my own child-first classloader, then passing it around as Thread.getContextClassLoader, creating my listeners and servlets with it, but w/o success. The issue is, that JSF is already installed/deployed as part of custom Jetty/GAE initialization, hence

[appengine-java] Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
Hi, I'm getting an JDO/Nucleus exception when running 2 synchronous requests on different ids of an object: org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed --- This is how my getById looks like: PersistenceManager pm = getPM();

Re: [appengine-java] Re: having trouble implementing gwt in existing gae app

2010-04-08 Thread Raphael André Bauer
On Thu, Apr 8, 2010 at 3:56 AM, zackmac zack.macom...@gmail.com wrote: Anybody have any thoughts on what I could be missing? On Apr 5, 9:24 pm, zackmac zack.macom...@gmail.com wrote: I'm using Eclipse 3.4.1, GAE 1.3.1 and trying to use GWT 2.0.3.  I've been working on my GAE app some time and

Re: [appengine-java] Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread bimbo jones
hi, you should only close the persistence manager when your done. This error occurs because you try to close it a second time. Once you do the pm.close() all the data will be updated 2010/4/8 Arny arny...@googlemail.com Hi, I'm getting an JDO/Nucleus exception when running 2 synchronous

[appengine-java] Re: Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
Hmm, does it really matter even when using detached objects? And aren't the persistence managers created individually on each request? I didn't know they are shared over many requests? What's the best way to update about 20 objects synchronously using 20 asynch urlfetches? It needs to be

[appengine-java] Re: Object Manager has been closed on 2 synchronous requests

2010-04-08 Thread Arny
I could find my mistake. Sorry for taking your time. Thanks anyway! On Apr 8, 3:24 pm, Arny arny...@googlemail.com wrote: Hmm, does it really matter even when using detached objects? And aren't the persistence managers created individually on each request? I didn't know they are shared over

[appengine-java] Filter on float value in JDO query

2010-04-08 Thread Bert
Hi, I'm trying to execute following query, which should return 3 values but returns 0. I think it's because pointsEarned is a float, but I don't know how to solve it. Query query = pm.newQuery(Answer.class); query.setFilter(pointsEarned 0); ListAnswer answers = (ListAnswer) query.execute();

[appengine-java] Safe Harbor DPA compliant incremental backups of datastore

2010-04-08 Thread sampablokuper
I would welcome suggestions regarding ways of performing Safe Harbor and Data Protection Act compliant incremental backups of an app's datastore. Any ideas? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] JPA: How to use a String as Primary Key?

2010-04-08 Thread stsch77
I have tried to follow the documentation at http://code.google.com/intl/de-DE/appengine/docs/java/datastore/creatinggettinganddeletingdata.html but no matter what I try, I always get an error/an exception of different kinds. Already the simplest attempt comes up with an error. That's what i

Re: [appengine-java] Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread Ikai L (Google)
You could probably change the characters to integer values and concatenate these, but you are going to get some BIG numbers. Better solution still is probably to use KeyFactory to generate a unique Key. What is it you are trying to do? On Thu, Apr 8, 2010 at 2:19 AM, mscwd01 mscw...@gmail.com

Re: [appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread Ikai L (Google)
Here's a blog post Max Ross wrote about optimistic locking using built in features of JDO/JPA On Thu, Apr 8, 2010 at 2:42 AM, mscwd01 mscw...@gmail.com wrote: Thanks John. So basically the process should be: - Query for the object inside a transaction - Update the object counter - Commit

Re: [appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread Ikai L (Google)
Oops. Link is here: http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-with-version.html On Thu, Apr 8, 2010 at 10:00 AM, Ikai L (Google) ika...@google.com wrote: Here's a blog post Max Ross wrote about optimistic locking using built in features of JDO/JPA On Thu, Apr 8,

Re: [appengine-java] JPA: How to use a String as Primary Key?

2010-04-08 Thread Ikai L (Google)
Check out this set of Javadocs: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html Key yourKey = KeyFactory.stringToKey(yourStringHere); On Thu, Apr 8, 2010 at 3:26 AM, stsch77 stsc...@mailinator.com wrote: I have tried to follow the

[appengine-java] Re: Java Mail Service

2010-04-08 Thread KarthikR
Hi I am not sure why the low-level API isn't working (or why the low- level api is using a high amount of CPU). As to your original question, can you take a look at http://code.google.com/p/googleappengine/issues/detail?id=1631 Also from

[appengine-java] Re: List of sub entities does not obay list order

2010-04-08 Thread Gunnar
Hi, Can anybody help solve my problem? Gunnar Here is the testcode: package appengine.test; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import java.util.ArrayList; import java.util.List; import javax.jdo.JDOHelper; import

Re: [appengine-java] Re: Adding Task-Queue Tasks in Batch?

2010-04-08 Thread Seth Ladd
Exactly what I am doing now, thanks. :) On Thursday, April 8, 2010, Keith dunelmt...@googlemail.com wrote: I think the five limit still applies. If you want to run more than five you could run five tasks and structure them to enqueue further tasks once they run. On Apr 8, 4:41 am, Seth Ladd

[appengine-java] Re: AppstatsServlet not working in 1.3.2, redirects to /stats

2010-04-08 Thread pjesi
I found the solution to this. The correct URL is /appstats/stats On Apr 7, 6:41 pm, Viðar Svansson vidarsv...@gmail.com wrote: Hi, I am trying out the now profiling stats in appengine using AppstatsServlet and AppstatsFilter. The filter seems to work just fine but the servlets mapped at

[appengine-java] Re: Safe Harbor DPA compliant incremental backups of datastore

2010-04-08 Thread sampablokuper
Is this the kind of thing the Data Liberation Front[1] might be interested in helping with? Thanks. [1] http://www.dataliberation.org/google/app -- 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

[appengine-java] Re: Eclipse plugin - prevent auto-copy of jars

2010-04-08 Thread Krishna
Thanks Scott, Miguel. For now I am deploying manually and that seems to work. Miguel - thanks for the link to the FAQ. I overlooked the eclipse plugin googlecode website which, retrospectively thinking, should have been the most logical place to look for an answer :-). Krishna On Apr 5, 5:36 

[appengine-java] Re: Is it possible to convert a user defined String key to a unique Long?

2010-04-08 Thread mscwd01
I have objects which represent users, the key to each object is their email address encoded as a String. Having the email address as the key works well so i'd like to keep it that way rather than having an auto incrementing Long key. However, for reasons I wont go into here, I need a way of

[appengine-java] Re: How to ensure object synchronization when using the datastore

2010-04-08 Thread mscwd01
Thanks Ikai, that link was very helpful. On Apr 8, 6:01 pm, Ikai L (Google) ika...@google.com wrote: Oops. Link is here: http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-w... On Thu, Apr 8, 2010 at 10:00 AM, Ikai L (Google) ika...@google.com wrote: Here's a blog

[appengine-java] DataStore query without transaction - Spring 2.5 + JPA

2010-04-08 Thread Nexus
I need to use query that fetches objects from multiple entity groups (which means I can't use transactions). Here's the method: @Override public CollectionItem findInactiveItems(Date endDate) { inactiveItems = em.createNamedQuery(findInactiveItems).setParameter(endDate,

[appengine-java] response.getOutputStream().write(byte[]) causes java.security.AccessControlException on GAE ?

2010-04-08 Thread Daisy
Hi, I have groovy script that read an image from a Blob field, and write it to the response. It runs well on my local environment, but causes java.security.AccessControlException on the google app engine. Any idea why it happened and how to fix it? The script (image.groovy) looks like this:

[appengine-java] Re: Delay between Load Request and Filter Init

2010-04-08 Thread Jake
Ok, now this is getting silly :) My application gets a page request that contains some images. My application has some specialized logic that mounts images with different states on a custom URL that is stored in the applications memory - that URL is returned in the HTML. The web browser then,

Re: [appengine-java] Delay between Load Request and Filter Init

2010-04-08 Thread John Patterson
On 8 Apr 2010, at 01:52, Jake wrote: Hello, I'm currently using the Wicket Framework which is simply a javax.servlet.Filter. I have a quick little logging statement in the init() method of the filter which, I believe, is the absolute first thing that should run on a loading request. Hi

[appengine-java] Re: Trying a clean compile gives The parameter is incorrect

2010-04-08 Thread dreamy
As you said, when Enhance classes is little ,there is OK, but when Enhance classes has many many(ex: 200 classes) ,the same problem is appear. how to do with it? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this

[appengine-java] Re: Issue with google plugin for eclipse

2010-04-08 Thread joradom
I created a web application project, without web toolkit sdk (just gae sdk), thx for the thread, I'll try it. On 6 abr, 19:00, Ikai L (Google) ika...@google.com wrote: What kind of project have you created? This looks like the issue filed here:

[google-appengine] Re: Filter by Collection property issue

2010-04-08 Thread Petrov Aleksander
So, if I need to filter MyEntity by myStrCollection property would it affect efficiency?? For example if I have 500 values in myStrCollection. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: Accessing the datastore remotely with remote_api

2010-04-08 Thread Benjamin
Nick, We had touched on this in another thread and the page you posted is what prompted me to start this new thread. The link you mentioned above has this tip: Tip: If you have a Java app, you can use the Python bulkloader.py tool by installing the Java version of the remote_api handler, which

Re: [google-appengine] Re: Accessing the datastore remotely with remote_api

2010-04-08 Thread Nick Johnson (Google)
Hi Benjamin, you need to define a servlet and servlet mapping for that handler as you would any other. For example: servlet servlet-nameremote-api/servlet-name servlet-classcom.google.apphosting.utils.remoteapi.RemoteApiServlet/servlet-class /servlet servlet-mapping

Re: [google-appengine] Plead: help me download my app code

2010-04-08 Thread Rajkumar Radhakrishnan
Hi, I will have to let you know of a possibility of a loophole, so that it can be fixed my Google App Engine developers - which has been of concern to me for some time now. This thread here talks about uploading a part of the application..

Re: [google-appengine] Plead: help me download my app code

2010-04-08 Thread Nick Johnson (Google)
Hi Rajkumar, On Thu, Apr 8, 2010 at 5:14 PM, Rajkumar Radhakrishnan r.rajku...@gmail.com wrote: Hi, I will have to let you know of a possibility of a loophole, so that it can be fixed my Google App Engine developers - which has been of concern to me for some time now. This thread here

Re: [google-appengine] Plead: help me download my app code

2010-04-08 Thread Rajkumar Radhakrishnan
Glad to hear that, Nick Johnson, now I can sleep peacefully. And, sorry Ricardo Sánchez-Sáez, that might not be useful. Regards, R.Rajkumar On Thu, Apr 8, 2010 at 9:49 PM, Nick Johnson (Google) nick.john...@google.com wrote: Hi Rajkumar, On Thu, Apr 8, 2010 at 5:14 PM, Rajkumar

[google-appengine] I want to connect freesql database via google app engine application

2010-04-08 Thread Muthu Kumaran
How can i acess the data which im having in freesqldatabase(i mean in my sql database provided by another site). will i able to connect? if yes may i know the procedure.? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group,

[google-appengine] Re: Accessing the datastore remotely with remote_api

2010-04-08 Thread Benjamin
Thanks Nick, i was just coming back to this post to post that that just occurred to me. Doing that worked just fine and i'm downloading everything now. Thanks so much for your help! On Apr 8, 12:12 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Benjamin, you need to define a

Re: [google-appengine] Not authorized to deploy an app or create a new one

2010-04-08 Thread Ikai L (Google)
That's very possible. Can you describe exactly what you did? On Wed, Apr 7, 2010 at 8:26 PM, Raleigh Cross _...@raleigh.vg wrote: I have created an application from the Applications Overview page but when I try to deploy the Hello World app to it I get an error that I don't have permission.

Re: [google-appengine] Re: Filter by Collection property issue

2010-04-08 Thread Ikai L (Google)
It shouldn't, but it really depends. Here's a video you should check out about how indexes work: http://www.youtube.com/watch?v=tx5gdoNpcZM On Thu, Apr 8, 2010 at 1:06 AM, Petrov Aleksander ass.pet...@gmail.comwrote: So, if I need to filter MyEntity by myStrCollection property would it affect

Re: [google-appengine] I want to connect freesql database via google app engine application

2010-04-08 Thread Ikai L (Google)
If you can expose the database through a REST API (or if you are really brave: XMPP), you will be able to use UrlFetch to retrieve the data programmatically from App Engine. On Thu, Apr 8, 2010 at 6:14 AM, Muthu Kumaran smkumaran...@gmail.comwrote: How can i acess the data which im having in

[google-appengine] Re: Not authorized to deploy an app or create a new one

2010-04-08 Thread Raleigh Cross
It's been a few months ago, but best I remember, I registered for App Engine when my Google account still used my old email. I got the SMS verification and created one app, but I never tried to deploy anything to it. Later on, I created a new email account (using Gmail on my own domain, if that

[google-appengine] Am I allowed to do this?

2010-04-08 Thread Spines
I want to use 2 apps for my website. The first app would run the website, and second app would be a bunch of random functions exposed by an api. The reason I don't want to lump it into one app is because I want to cleanly separate the code of the random functions and the code that runs the

[google-appengine] Backup datastore and use on localhost

2010-04-08 Thread vivpuri
Can someone please let me what is the process to backup the live datastore, and use the resulting file on localhost. I have tried using this option - http://code.google.com/appengine/docs/python/tools/uploadingdata.html#Downloading_Data_from_App_Engine - to download data. Data does get

[google-appengine] Re: Filter by Collection property issue

2010-04-08 Thread Petrov Aleksander
Ikai Lan, thanks a lot.. very usefull video. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to

[google-appengine] Re: Is it possible to use GAE while disabling the appspot.com URL?

2010-04-08 Thread Eze
Thanks for your replies! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com.

[google-appengine] Use Of Deprecated Code

2010-04-08 Thread JoeM
Hello, This post is directed to the appengine developers who work for Google. In the past I have, on my local appengine server, fixed source code to eliminate use of deprecated code. But going forward I see it is much better if the fix is made at the source of the distribution. I am running

[google-appengine] How to download a JSON object from my app engine server?

2010-04-08 Thread Sherry
Hi, I would like to have my application return a JSON object for download. I'm trying to simulate the behavior that happens when I access the page: http://search.twitter.com/trends/current.json?exclude=hashtags; in which the Chrome browser automatically downloads a file current.json . I've tried

[google-appengine] Recieving emails with invalid email addresses

2010-04-08 Thread Tom
Hello! I have written a temporary email app using Google App Engine, in python. My app works fine, but I have one complaint. While testing my deployed app I sent an email to one of the addresses, from my gmail. It was processed fine, but it appears the sender address string is in the following

[google-appengine] Counting query results 1000

2010-04-08 Thread Patrick Twohig
I'm trying to figure out a way to count entities matching a certain criteria. I was thinking of doing a key-only query and using PreparedQuery.countEntities() (Java). However, when I do that, it always returns a value no higher than 1000. Is there a way to get an accurate count of all entities

Re: [google-appengine] How to download a JSON object from my app engine server?

2010-04-08 Thread Barry Hunter
http://www.google.com/search?q=content+disposition On 8 April 2010 18:13, Sherry mywacco...@gmail.com wrote: Hi, I would like to have my application return a JSON object for download. I'm trying to simulate the behavior that happens when I access the page:

[google-appengine] Error while downloading data

2010-04-08 Thread vivpuri
I am getting the following error while downloading data from live app using the bulkloader.py --dump util: * [INFO] Downloading kinds: [u'Load', u'Product', u'Contact', u'Location', u'Summary'] [INFO] Load: No descending index on __key__,

[google-appengine] Just started getting OverQuotaError . I'm not over quota

2010-04-08 Thread Waleed Abdulla
This started about 20 minutes ago at 6:23pm. A lot of my requests are failing with google.appengine.runtime.apiproxy_errors.OverQuotaError However, the dashboard and the Quota Details page show that everything is normal. app id is networkedblogs. I'd appreciate your quick response. Waleed

[google-appengine] Re: Use Of Deprecated Code

2010-04-08 Thread Wooble
App Engine runs on python 2.5, where md5 is not deprecated. It's unlikely google will fix this, since the error is caused by you using an unsupported python version. On Apr 8, 4:13 pm, JoeM joe.mansig...@gmail.com wrote: Hello, This post is directed to the appengine developers who work for

[google-appengine] Re: Beginner question

2010-04-08 Thread Vik_Sintus
thanks Ikai, I failed to see it on the html page, so my problem is solved thanks again Vik On Apr 8, 10:42 am, Ikai L (Google) ika...@google.com wrote: Looks like you're working with GWT and not App Engine. You'll want to ask on the Google Web Toolkit groups:

[google-appengine] Accessing Amazon SimpleDB from Google App Engine

2010-04-08 Thread deuce4
Is there any elegant way to access data stored in Amazon's Simple DB from a Google Appspot application? I tried using URLfetch, but failed. Any ideas? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to