I have the same issue now.
Anyone help???
--~--~-~--~~~---~--~~
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-java@googlegroups.com
To unsubscribe
Hei
i think there is no real answer to your problem until now, is it? When
i understand it right it seems that if you read data from out the
session it gets deserialized an so you get a transient copy (clone) of
the session data. After modifying you need to store the modified copy
into the
It looks ok, the only problem I can see that something can happen
between storing book in cache and getting book from cache.
Scenario like:
1) fetch book from Amazon and store in cache.
2) book expires in Amazon (or any other event happens)
3) next request - get data from cache - you return
I have the following code.
package org.example;
import java.io.IOException;
import javax.servlet.http.*;
public class HelloAppEngineServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
My guess is that, the static variable in GAE context is not actually
static as what we experience previously.
See some of the simple test scenario I encountered too.
http://groups.google.com/group/google-appengine-java/browse_thread/thread/c478f64082f3e212
Let me know if you are having same
http://code.google.com/intl/pl/appengine/docs/java/datastore/transactions.html
Look at the next code snippet
===
for (int i = 0; i NUM_RETRIES; i++) {
pm.currentTransaction().begin();
ClubMembers members = pm.getObjectById(ClubMembers.class,
k12345);
The thread dump is a bit cryptic so I reduced the problem down to a
small servlet that fails.
Use the servlet below in the development environment and set up aync
requests to it and a deadline will occur e.g. using 2 or more looped
curls from the terminal.
public void doGet(HttpServletRequest
Is it production or local (development) environment ?
--~--~-~--~~~---~--~~
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-java@googlegroups.com
To
http://yancheng-cheok.appspot.com/helloappengine
Production environment.
On Oct 28, 5:45 pm, leszek leszek.ptokar...@gmail.com wrote:
Is it production or local (development) environment ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Hi Jason,
Thanks for your answer.
However I forgot to specify that I'd like to know the number of
entities of a specific kind which have a specific value in one of its
field (for example number of Student which attend a specific course).
It looks like Statistics don't fit this aim, not that
It is a clustered environment. So it is expected that the next request
is run on a different machine, JVM and all statics are reinitialized.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google App Engine for Java
Hi,
I got a question regarding how to implement a specific problem (and
make it scale without reaching any hard quotas implied by GAE).
my problem: Think of a Google Reader like application - there must be
a mechanism that stores items read by a user.
I would implement it as:
- object USER
code snippet :
...
...
query = pm.newQuery(Link.class);
try{
count = query.deletePersistentAll(); // getting
HardDeadlineExceededError here
}catch (Exception ex) {}
query.closeAll();
...
...
I think I figured it out. While I was debugging I would break before
the disconnect was called in my finally block, then resend a new
request (thus the connection was already connected). Being able to Set
the RequestMethod is important to me, despite the fact that get is the
default.
On Oct 26,
As an FYI , there is no issue in the tracker for this exact problem. I'll
write up a bug for this and post the link back on this thread (unless
someone would be kind enough to do it for me ;).
On Thu, May 7, 2009 at 11:40 AM, barabaka oleg.g...@gmail.com wrote:
Great thanks for this topic!
Code in reference to:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/47306a917b8e1628
I'm not getting back the ACSID Cookie. The comments in the Servlet
Code below explain everything. I hope this helps someone else getting
started because I had a ton of sifting to get
I'll definitely turn on logging and try to see what's going on.
Thanks,
Ken
On Oct 28, 4:18 am, leszek leszek.ptokar...@gmail.com wrote:
It looks ok, the only problem I can see that something can happen
between storing book in cache and getting book from cache.
Scenario like:
1) fetch book
To clarify some of the responses - static variables are only shared
among instances of your servlet on that one server. In GAE, your code
might run on different servers at different times - Google tries to
load-balance your site among its server farm. So your website might
be running on
how to use java GAE with external jabber server like openfire? any
guide?
--~--~-~--~~~---~--~~
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
Sounds like you want a persistent storage.
http://code.google.com/appengine/docs/java/datastore/
On Oct 28, 10:37 am, kousen ken.kou...@gmail.com wrote:
I'll definitely turn on logging and try to see what's going on.
Thanks,
Ken
On Oct 28, 4:18 am, leszek leszek.ptokar...@gmail.com
So this boils down to JCache (google memory) vs Persistent storage
(google disks), right?
Does this pattern work instead?
1. Query Amazon for what you need
2. Store results using a persistent storage
http://code.google.com/appengine/docs/java/datastore/
Example:
Hi there,
I asked a similar question a couple of days ago, but I'll try
different wording and see if it generates any interest.
Has anyone successfully simulated MapReduce using task queues? If so,
how much parallelism have you achieved in the GAE production
environment? Are there tricks to
Are you running the latest 1.2.6 SDK? It should be implementing the same
whitelisting as the production servers.
On Tue, Oct 27, 2009 at 7:00 AM, Srinivas Inf
srinivas.infon...@gmail.comwrote:
I am getting this error message on the server and its working fine in
my local Eclipse
I'm seeing this same error as well. It appears to happen during a
cold start. 10sec timeout:
10-27 08:54PM 13.522 / 500 10193ms 0cpu_ms 0kb Mozilla/5.0 (Macintosh;
U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko)
10-27 08:54PM 23.715
Request was aborted after waiting too
Hi
It examined it a little.
I think that there is a part where [MimeMultipart#getCount] is used in
places other than this source.
How compatible.
--
All task queue quotas and limits are listed at
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Quotas_and_Limits.
Note that you can currently insert up to 10,000 tasks per day, although
billed applications may have a higher upper limit.
- Jason
On Tue, Oct 27, 2009 at 12:21
The docs here seem to indicate that dequeuing happens at 5/sec
(default and 10 max).
http://code.google.com/appengine/docs/java/taskqueue/overview.html
On Oct 27, 8:41 am, James Cooper jamespcoo...@gmail.com wrote:
Hi there,
Last night I experimented with task queues to see what level of
The limits on tasks queues recently
changedhttp://googleappengine.blogspot.com/2009/10/task-queue-quota-increases.html.
For example, the new total limit is 100K tasks/day for free apps and 1M
default for billing enabled.
On Wed, Oct 28, 2009 at 2:38 PM, Jason (Google) apija...@google.com wrote:
aha! I missed that. I wonder if task invocations/second means
dequeues/second.
If it means dequeues/second then in theory you could write a request
handler that burns through a queue of work items in the datastore, re-
queueing itself and exiting after 25 seconds and achieve 250 CPU
This approach may present other problems; for one thing, App Engine's index
generation is not dynamic, so you will have to manually build index entries
(or let the development server generate them for you during testing) for
each combination of potential query inputs. Once the indexes are built,
Up until recently, using abstract classes and persistent subclasses usually
failed to work, but the latest preview release for the JDO/JPA layer
includes support for inheritance. More information here:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/c4208f960d05d11a
-
Hi JT. We have seen that Grails-based applications can take up to 30 seconds
to spin up on App Engine. We have back-end enhancements coming in the next
few releases that should improve this considerably, but Grails itself is
partly responsible for the long initialization time, which our back-end
Jason,
Thanks for the reply and checking the code. It is the null issue that is
causing this issue, but I had a second issue that I will start a new thread
for.
Thanks,
Jeff
On Fri, Oct 23, 2009 at 4:01 PM, Jason (Google) apija...@google.com wrote:
Hi Jeff. I'm having trouble reproducing
Sorry, I hadn't checked this in a while. Upon using the command line
utility:
C:\Users\KyleC:\Users\Kyle\charts\eclipse\plugins
\com.google.appengine.eclipse.
sdkbundle_1.2.6.v200910131704\appengine-java-sdk-1.2.6\bin\appcfg
update C:\User
s\Kyle\workspace\WaveTest1\war
Reading application
Per http://code.google.com/appengine/docs/java/gettingstarted/uploading.html,
I did use the command prompt by typing ..\appengine-java-sdk\bin
\appcfg.cmd update war. It produces the same error - expected I
guess.
On Oct 28, 10:14 am, Pion onlee2...@gmail.com wrote:
I have been developing my
On Tue, Oct 27, 2009 at 6:50 PM, Olli Wang olliw...@ollix.com wrote:
Hi, I successfully created a WAR file which was able to run on Apache
Tomcat with no problem. But when I uploaded it to the Google App
Engine, it shows me a error message like this:
Could not initialize class
To actually remove the properties you need to create new entities to
replace the old ones, or use the low-level ext.db interface to alter
the existing entities.
(usually this is not necessary)
On Oct 27, 9:47 pm, Tom Wu service.g2...@gmail.com wrote:
Hi Adam,
I do remove the column from my
you might try
{{greeting.key.id}}
or
{{greeting.key.id_or_name}}
2009/10/25 MichaelT webmas...@afewtips.com:
I can save and display the images if I use the method used here:
http://code.google.com/appengine/docs/python/images/usingimages.html
And I see that the img shows up when the img
On Oct 27, 12:04 am, Wooble geoffsp...@gmail.com wrote:
The XMPP service only allows users to send XMPP messages to your
application, or for your application to send XMPP messages to
subscribed users.
...
Would it be helpful If I want to implement chat functionality for
users logged into my
Hi,
It's hard to say based on what you've provided, but it looks like you're
trying to set a ReferenceProperty to a str value.
-Nick Johnson
On Thu, Oct 22, 2009 at 5:34 PM, chemuto chem...@gmail.com wrote:
Hi!
I´m getting an error while trying to upload data from a .csv. I need
to do
Hi loell,
Memcache is, as the name implies, a cache. Any key may be evicted at any
time, though frequently read keys will be evicted less often. You should not
design your app to rely on the persistence of memcache entries.
-Nick Johnson
On Tue, Oct 27, 2009 at 11:02 PM, loell
On Wed, Oct 28, 2009 at 9:40 AM, v4vijayakumar
vijayakumar.subbu...@gmail.com wrote:
On Oct 27, 12:04 am, Wooble geoffsp...@gmail.com wrote:
The XMPP service only allows users to send XMPP messages to your
application, or for your application to send XMPP messages to
subscribed users.
Hi Brandon,
Done. Thanks a lot.
Best Regards
Tom Wu
2009/10/28 Brandon Thomson gra...@gmail.com
To actually remove the properties you need to create new entities to
replace the old ones, or use the low-level ext.db interface to alter
the existing entities.
(usually this is not
Early Stage IT will be conducting a Google App Engine Hackathon on
November 6.
For more information, see http://tiny.cc/gae .
The event is fully subscribed at the moment but slots on the wait list
are open. Depending on the interest level indicated by the wait list,
we may do it again in the
Is it possible to turn off multithread in Django's configuration?
In Jython, I use modjy to run Django and tries to disable multithread
by setting modjy's multithread parameter to 0 but it doesn't work. :(
On Oct 28, 3:00 pm, OvermindDL1 overmind...@gmail.com wrote:
On Tue, Oct 27, 2009 at 6:50
you cannot use memcache to reliabliy increment the counter - it's just
a cache and thus there's no such thing like a transaction (AFAIK)
the memcache only makes sure, that a single put and get are atomic
the problem arises in this case:
2 users call the same servelt, but these 2 calls will not
Hello Jeff,
I have used both: Task Queue and Scheduled Tasks (cron.xml)
The cron job run every 10 minute. The job gets the activity list
from the DataStore. The list contains N activity. For each activity I
create a new Task and I insert it in the Queue. Then the Queue
triggers single activity.
hello,
part of my app uploads a file and needs to parse each line of the
file. The parsing of the whole document takes longer than 30 seconds,
so I was wondering how to handle this.
Currently I am considering storing the upload in the datastore and
parse as far as I can. Then when I get
Point 3 seems like the proper choice (along with some caching). Where are
you getting lost? In how to parse with python, how to cache, or how to
render in a template (or all of the above?)
- ryan.
On Tue, Oct 27, 2009 at 10:35 AM, benji bco...@gmail.com wrote:
Hi,
I am brand new to GAE and
Thanks Ryan,
I thought point 3 seems like the proper direction to go in, thanks.
I can handle putting together a simple django template I would say -
seems straight forward enough. However I'm stuck from there on in!
i.e. the python based importing of the RSS feed, cache, parsing to
html
Yea, URLFetch has some builtin caching, however that will only cache the
response of the URLFetch, it won't cache all the parsing/processing of the
RSS feed (which would be a better thing for you to cache in Memcache). The
idea of Memcache is fairly simple: Look for the item in memcache by some
If it's only between users using your site, there's no need to use XMPP. The
XMPP API is designed for interaction with users using Instant Messaging
clients.
For a web game it is a valid option. And from there, for any real-time
web app is still a valid option.
I really don't understand why
Hi,
While looking on docs for datastore at this website
http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html
I found code:
if users.get_current_user():
user_pets = db.GqlQuery(SELECT * FROM Pet WHERE owner = :1,
Hi
I'd rally like to use protocol buffers for talking between service,
but looking into the issue i ran into this:
http://groups.google.dk/group/google-appengine/browse_thread/thread/bfbba3d1243bbe01/d504c3b6e4510f08?lnk=gstq=Protocol+buffers#d504c3b6e4510f08
Will there be official support for
Nick, et. al.,
This raises a couple questions:
- Q: Why am I seeing 0.1% rate of datastore operations time out and
is anything being done to reduce this? A: A certain level of datastore
timeouts is expected (generally between 0.1% and 0.2% of all datastore
operations) but, we are actively
site:example.com results are not very accurate. Index statistics in
webmaster tools are.
On Tue, Oct 27, 2009 at 1:20 PM, WeatherPhilip
philip-goo...@gladstonefamily.net wrote:
I added sitemaps that show all the pages on my appengine site. The
sitemaps are crawled by the googlebot with
Hi,
I have model
class info(db.Model):
user = db.UserProperty()
last_update_date = db.DateTimeProperty()
I need to retrieve last_update_date for specific user. It is working good, i
can retrieve this value, i can even pass it to another variable
if results:
for result
In
http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html#Getting_Entities_Using_a_Query,
there is a note stating that query objects have an interator
interface, and that If the query object is used as an iterator, the
query is executed with no limit or
It is clear, yes but why i was not able to change data.
It when thru ok but did not change data.
With my version it goes fine and changed data is saved in entity.
I think i messed up somewhere.
Thanks for response.
W dniu 28 października 2009 17:38 użytkownik johntray john.tur...@gmail.com
Hi Michal,
You're quite right - the example code there will not correctly update the
existing records. Would you be able to file a documentation bug, please?
-Nick Johnson
2009/10/28 Michał Klich klich.mic...@gmail.com
Hi,
While looking on docs for datastore at this website
Done
http://code.google.com/p/googleappengine/issues/detail?id=2329
2009/10/28 Nick Johnson (Google) nick.john...@google.com
Hi Michal,
You're quite right - the example code there will not correctly update the
existing records. Would you be able to file a documentation bug, please?
-Nick
Followup question...
Does indexed=false just put a constraint on the data model? In
other words, if there weren't any queries that used this property in
the first place (and thus no index was ever created that included the
property) then adding this parameter doesn't make an immediate
Does anyone know how to bulk delete the datastore via the appcfg.py
file?
I bulk upload data into a datastore daily. The following day I need to
remove all data from the datastore and re-upload the data again. The
bulk upload is not a problem, this works fine. I can also bulk delete
the data
I'm curious why you think its even possible? As you say there is no
option to delete data via appcfg.
If you want to delete, as you say just implement it yourself via your
application.
2009/10/28 jimmer freshc...@gmail.com:
Does anyone know how to bulk delete the datastore via the appcfg.py
Hello,
How can I search for keys in DataStore?
Is it possible? Or do I have to create a key attribute in db.Model?
For example:
class Ruta(db.Model):
titulo = db.StringProperty()
KML = db.BlobProperty()
class example(webapp.RequestHandler):
def get(self,KEY):
query_str = SELECT *
Try Ruta.get(db.Key(KEY))
The documentation is quite nice.
http://code.google.com/appengine/docs/python/datastore/
Robert
On Wed, Oct 28, 2009 at 3:38 PM, david dromerotr...@gmail.com wrote:
Hello,
How can I search for keys in DataStore?
Is it possible? Or do I have to create a key
For every single parameter there is an index, implicit, with ascending order.
If you want a different ordering or combining multiple parameters, and
one comparison operator is not the equality you get an entry in
index.yaml.
indexed=false prevents the update of the implicit indices.
2009/10/28
If you want a bulk deleter from the command line have a look at the
article about the remote_api, and the Mapper class.
An other possibility is using the deferred module, see the article
about the Mapper used with deferred. From the command line use curl or
wget to trigger an URL that starts a
Hi,
Deleting from the datastore is expensive in api_cpu terms.Will
doing a batch delete using task queues use less api_cpu than a batch
delete in a 'normal' request handler?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed
No.
A task queue event is just like a normal request, only now a computer
at google is doing the request.
2009/10/28 herbie 4whi...@o2.co.uk:
Hi,
Deleting from the datastore is expensive in api_cpu terms. Will
doing a batch delete using task queues use less api_cpu than a batch
On Wed, Oct 28, 2009 at 7:33 AM, Baron richar...@gmail.com wrote:
hello,
part of my app uploads a file and needs to parse each line of the
file. The parsing of the whole document takes longer than 30 seconds,
so I was wondering how to handle this.
Currently I am considering storing the
Hi jimmer,
I've implemented a bulk delete command with threads in my own framework.
It can delete all of your entities very fast. The only problem is that
this command depends upon my framework.
The main code is here:
http://code.google.com/p/kay-framework/source/browse/kay/management/shell.py
I'm running an email distribution list that utilizes the taskqueue to
send out emails to individuals recipients. Periodically, I'm getting
DeadlineExceededError when the Mail.send() call doesn't return fast
enough. (This alone would be nice to avoid, but that's for another
day).
File
Hello group,
I had a java application running on App Engine. I had my project
version 2.0 in my own svn server. Then I released version 2.2 and
submitted to App Engine. All these were done in eclipse. When I was
ready to commit version 2.2 to my own svn, my hard disk was damaged
suddenly. I
Hello,
If I store only a single int in my app memcache, how long can I expect
it so stay cached?
According to the docs Values may be evicted from the cache when a new
value is added to the cache if the cache is low on memory.
So then in the case of my single int there should be no memory
That is incorrect. The value can be ejected from Memcache at any time. As
some of the Googlers have stated in the groups, you should not design your
applications to depend on a persistent cache.
- ryan.
On Wed, Oct 28, 2009 at 11:25 PM, Baron richar...@gmail.com wrote:
Hello,
If I store
76 matches
Mail list logo