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
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
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
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
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
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
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
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
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
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
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
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
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
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();
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
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
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
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
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();
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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,
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:
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,
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
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
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:
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
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
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
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..
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
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
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,
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
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.
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
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
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
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
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
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
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.
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
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
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
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
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:
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__,
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
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
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:
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
65 matches
Mail list logo