[appengine-java] Re: How to upload File from Client to Server

2009-10-30 Thread Tu
Does GoogleFileService fit your concern? On Fri, Oct 30, 2009 at 11:23 AM, le anh leanhduc1...@gmail.com wrote: Hi, everybody . I'm creating a web site by Google Appengine. In my web ,users can upload some files ( images , video ... ) to server . I use java language ,means this site is JSP

[appengine-java] Re: JDO Best Practices

2009-10-30 Thread datanucleus
it either saves or silently does nothing. I would like to know if there are any patterns for: Define does nothing. The log tells what it does. Why not post it here for the operation in question ... 1) Creating / closing the PersistenceManager: Should i reuse the PersistenceManager for the

[appengine-java] Re: Querying child objects

2009-10-30 Thread David Fuelling
Bump. I'm running into this same exact problem -- I have the same type of entity setup, and am do a key-only query on a non-root object. Also getting the same exact Illegal argument error. I get the error whether I'm running in a transaction or not (which is strange -- I have my property

[appengine-java] RPC SerializationException if detachable=true

2009-10-30 Thread Patrizio Munzi
Hi all, a strange thing happens when I try to serialize via RPC a list of PersitentCapable objects after having called detachCopyAll(). If the PersistentCapable objects have the property detachable=true the serialization throw the following exception. Instead if the property detachable=true

[appengine-java] Re: JDO/JPA Snippets That Work - Optimistic Locking With @Version

2009-10-30 Thread Patrizio Munzi
Sorry Max, I'm an idiot, I forgot to disable NoScript. That was because I didn't see the comment form on your blog. Cheers Patrizio Munzi wrote: Hi Max, thanks for the answer. By the way, I tried to post on the blog but I didn't find a way to do it. Could be strange but I've never

[appengine-java] Re: Querying child objects

2009-10-30 Thread David Fuelling
Ok, I figured out *what* my problem is, though I'm not certain *why* it's happening. First, I realized that my persistence.xml file did not have anything set for the property datanucleus.appengine.autoCreateDatastoreTxns. I guess this defaults to true, because when I added the following to

[appengine-java] Replacing a child object in a parent object is not persisted

2009-10-30 Thread Patrizio Munzi
Hi all, perhaps I missed something or I'm only tired but I cannot make this simple update work. I just replace a child object with a new one but the update is simply not persisted. Hope you're more awake than me. Thanks Here's the snippet and my classes: - SNIPPET

[appengine-java] first Wave Robot

2009-10-30 Thread VTR
Hi , I just downloaded the eclipse IDE and was trying the first Wave Robot. But seem to be getting the messages twice everytime this robot is added in a wave vtrraviku...@appspot.com: I'm alive!I'm alive! 12:55 am vtrraviku...@appspot.com: Good Evening, everybody!!Good Evening,

[appengine-java] Problem deploying app - Version not ready

2009-10-30 Thread JedIrv
Hello, I'm in my first days of experimenting with Google App Engine and am getting an error when I try to deploy using the eclipse plugin. My initial deploy went smoothly a couple of days ago, and several updates as well, but trying to redeploy now, I see the console output indicate some sort

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-30 Thread Timwillhack
Yeah, I refreshed pages over and over, and almost 1 out of 10 requests where 'startup' priced. Which doesn't correlate to the response that if you keep the instance up it will not open another instance. My guess is multiple servers just get the request maybe with slight preference to use an

[appengine-java] Re: JPA Problem with Multiple Owned One to One relationships to same type

2009-10-30 Thread lent
Max, thanks for letting me know. I'm going to work around it for now by turning it into a OneToMany and differentiating the values myself. Len On Oct 29, 4:17 pm, Max Ross (Google) maxr+appeng...@google.com wrote: This is a current limitation that  I hope to get rid of fairly soon.  The

[appengine-java] Re: JDO Best Practices

2009-10-30 Thread Julio Faerman
OK, that is tilting i published the code, if any good soul can help me and take a brief look... http://code.google.com/p/vike/ The logic is now reduced to: 1) MailHandler receives inboud mail, extracts content and delegates to new DM() 2) DM finds the game, according to email recipient, and

[appengine-java] Re: Error upon deploying to Google AppEngine through Eclipse plugin

2009-10-30 Thread Jason (Google)
I did some generic searches for this error, and others have seen it outside of the App Engine context. It could be related to your Java version; if you're not using Java 1.6, you may try upgrading to see if it goes away. There are a several other solutions in this thread:

[appengine-java] Problems with JDO Query.setCandidates(Collection)

2009-10-30 Thread Zach
So I am trying to do 2 sequential queries in app-engine to get around the problem of only being able to primary sort on the property that an inequality is done on. The problem is that setCandidates(Collection) doesnt actually appear to set the candidates to query against. Pseudo- code below.

[appengine-java] Re: Not sure I'm using Memcache properly

2009-10-30 Thread Jason (Google)
Yes. - Jason On Thu, Oct 29, 2009 at 1:46 AM, leszek leszek.ptokar...@gmail.com wrote: You mean Google App Engine/J implementation of this ? http://code.google.com/intl/pl/appengine/docs/python/urlfetch/asynchronousrequests.html --~--~-~--~~~---~--~~ You

[appengine-java] Re: JDO Unowned Relationship Issue

2009-10-30 Thread Jason (Google)
It should, but adding the annotation won't hurt. - Jason On Thu, Oct 29, 2009 at 3:27 AM, leszek leszek.ptokar...@gmail.com wrote: You have now: employee.addComputer(computer); pm.close(); Replace with: employee.addComputer(computer); pm.makePersistent(employee);

[appengine-java] Re: Persist HashMap with sdk1.2.2 ?

2009-10-30 Thread Jason (Google)
Can you post the code that you're using to re-persist the updated HashMap? - Jason On Thu, Oct 29, 2009 at 6:07 AM, barak barak.ya...@gmail.com wrote: Thanks, did that and the map is indeed serialized now. But now, the enitity is fetched, seems like the state is not always kept. For

[appengine-java] DatastoreService.put behaves differently in development server and deployed env

2009-10-30 Thread Pion
I can store a few thousands of entities incrementally in Development Server environment using the method below. public void add(ListString iriList, ListString nameList, ListString imageList) { int counter = 0; ArrayListEntity eList = new ArrayListEntity();

[appengine-java] Re: JDO Best Practices

2009-10-30 Thread datanucleus
- No error is logged As I already said, the log would tell you what happens. Sure you may have to set things to DEBUG level, but then you're supposed to be debugging so thats taken as read. As DN docs state very clearly non-tx updates will only be persisted to the datastore by a subsequent

[appengine-java] Re: ResponseTooLargeException (url fetch) can't be caught ???

2009-10-30 Thread Jason (Google)
Yes, this looks like a bug. Please file it in the issue tracker: http://code.google.com/p/googleappengine/issues/list In the meantime, you should be able to work around it like this: try { } catch (Exception e) { if (e.getClass().getName().equals(ResponseTooLargeException.class.getName())) {

[appengine-java] Re: Data Store Indexes

2009-10-30 Thread Pion
I found this http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Defining_Indexes_With_Configuration with the following example: ?xml version=1.0 encoding=utf-8? datastore-indexes xmlns=http://appengine.google.com/ns/datastore-indexes/1.0; autoGenerate=true

[appengine-java] DeadlineExceededException while executing a server method.

2009-10-30 Thread Sanjith Chungath
Hi all, While executing a server method which talks to another system and get details from there, I get a DeadlineExceededException at the appengine. I don't have much control on the time taken by the other system. I just call a method from an interface of that system and wait for the

[appengine-java] Porting data in local python datastore to local java datastore

2009-10-30 Thread Sasank Mudunuri
Hi, I'm trying to seed some data into my local java datastore for testing. I figured out how to get the data out of MySQL and into the Python dev_appserver, but I can't figure out how to get that data over to the Java dev server, as they do not seem to share the same datastore. Any suggestions?

[appengine-java] Re: any plans for deferred.defer in Java?

2009-10-30 Thread Jason (Google)
Hi David. This may be coming to Java eventually, but it hasn't been started yet. If you or anyone else is interested in contributing, let me know. - Jason On Wed, Oct 28, 2009 at 7:52 AM, David Chandler turboman...@gmail.comwrote: Re: http://code.google.com/appengine/articles/deferred.html

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Yasuo Higa
Hi Pion, On my Development Server, it returns the total number of the entities which is over 40,000 entities. But when deploying it on GAE, it always returns 1,000 entities. Is this because of this limitation

[appengine-java] Re: ResponseTooLargeException (url fetch) can't be caught ???

2009-10-30 Thread Prashant
i tried catching it on *catch(Exception e)* block, it doesn't work either. how is it possible that an error escapes catch block. i am still confused that it can be bug or not. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Pion
Thanks Yasuo. It's definitely very helpful. I am just reading http://code.google.com/appengine/docs/java/datastore/stats.html. Your example clarifies a few things which is unclear on the doc. It works now! With my original code ... On the Development server, it returns whatever the number of

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Pion
Now I have 3 versions of this method. protected int count(String kind) { // Version 1 - It works on Development Server. // But it does not work (deployed) App Engine because 1000 entities limitation http://code.google.com/appengine/docs/java/datastore/overview.html#Quotas_and_Limits //

[appengine-java] Re: JDO Best Practices

2009-10-30 Thread Julio Faerman
Here is what the log reads: 22:29:41,776 DEBUG [DataNucleus.Persistence] - Making object persistent : br.com.ximp.vike.server.model.games.ww.ac...@d4ddfd 22:32:02,701 DEBUG [DataNucleus.Persistence] - ObjectManager internalFlush() process started - 1 dirty objects 22:32:02,701 DEBUG

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Yasuo Higa
Hi Pion, // Version 3 - This code works on both (deployed) App Engine and Development server // But The Admin Console - Datastore - Statistic shows that it has about 5,000 entities // This code returns about 6, entities                Query query = new Query(kind);                

[appengine-java] Re: ResponseTooLargeException (url fetch) can't be caught ???

2009-10-30 Thread Prashant
Hi, I rechecked it, it actually works for *catch(Exception e)* block. --~--~-~--~~~---~--~~ 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: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Pion
I have just made the changes per your suggestion below. It still returns 6218 entities while The Admin Console - Datastore - Statistic shows 5029. Thanks. On Oct 30, 5:55 pm, Yasuo Higa higaya...@gmail.com wrote: Hi Pion, // Version 3 - This code works on both (deployed) App Engine and

[appengine-java] Re: DatastoreService.put behaves differently in development server and deployed env

2009-10-30 Thread Pion
This issue is being discussed on PreparedQuery.countEntities() clarifications http://groups.google.com/group/google-appengine-java/browse_thread/thread/f97bdd5bdf91c114/486958d3b4da1310#486958d3b4da1310 On Oct 30, 1:31 pm, Pion onlee2...@gmail.com wrote: I went to Admin Console - DataStore -

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Yasuo Higa
Hi Pion, It still returns 6218 entities while The Admin Console - Datastore - Statistic shows 5029. It is unusual. I think the admin console uses Statistics API. The Statistic data may be wrong or ... Could you try an another sample? Thanks, Yasuo Higa

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-10-30 Thread Pion
Iteresting ... I have two kinds of entity. I tried the 2nd entity. It matches. Then, I tried the first entity again. Now they all match! Maybe there was a lag on The Admin Console - Datastore - Statistic Thanks Yasuo. On Oct 30, 6:44 pm, Yasuo Higa higaya...@gmail.com wrote: Hi Pion, It

[google-appengine] Re: Not able to access google spr eadsheet from app engine: “Moved Temporarily”?

2009-10-30 Thread Jose Vidal
Ok, it is now working. The Google has healed itself. On Oct 29, 7:24 pm, Jose Vidal jmvi...@gmail.com wrote: As of a couple of days ago I was able to access my google spreadsheets from an app (in app engine), but today it is broken. Namely, I could name= name of my spreadsheet

[google-appengine] How does the App Engine deployment work?

2009-10-30 Thread tav
Hey App Engine team, I was wondering if you could share a quick high-level summary of how the app engine deployment works internally? I've been trying to figure out how it works so as to mimic the behaviour for my own framework... All the ways that I can think of are nowhere near the elegance

[google-appengine] Re: DeadlineExceededError error rate increased significantly recently

2009-10-30 Thread Stephen
On Oct 29, 11:20 pm, Tim Hoffman zutes...@gmail.com wrote: Hi I am not using DJango, and they where asking for automagic recycling. It's not django specific. Unusual latency anywhere in the system, including Google's api calls, might trigger a DeadlineExceededError. The various scenarios

[google-appengine] Re: perform task on upload

2009-10-30 Thread Stephen
On Oct 28, 1:33 pm, 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 upload in the

[google-appengine] Re: Adding the link to app on the the Google App top navigation bar

2009-10-30 Thread Julian Namaro
I believe the only way to do that would be to use something like a Greasemonkey script (cf. http://en.wikipedia.org/wiki/Greasemonkey#Equivalents_for_other_browsers). On Oct 29, 1:34 pm, saneef san...@gmail.com wrote: Is there any way to add the link to newly made Google App to the Google

[google-appengine] Re: perform task on upload

2009-10-30 Thread Wooble
On Oct 30, 12:11 am, Roy Smith roy.smith@googlemail.com wrote: I've never been there so I'm speculating. Is deadline exceeded something you can catch and then still perform further processing? One would expect that allowing you further processing would somewhat defeat the objective of

[google-appengine] Re: Overlapping Images

2009-10-30 Thread ryan baldwin
Wouldn't it be easier to just use CSS for this? - ryan. On Fri, Oct 30, 2009 at 1:05 AM, Nitin Joshi nitinjosh...@gmail.com wrote: Hi, Can we overlap two Images using “ImagesService”. The required is to have an Image with Fixed Width and Height. But when I

[google-appengine] Re: Will memcache data ever be evicted if have spare memory?

2009-10-30 Thread Gijsbert
Anybody ever meausre how much faster memcache is compared to a get_by_key_name()? --~--~-~--~~~---~--~~ 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: How does the App Engine deployment work?

2009-10-30 Thread Andy Freeman
It's probably dead simple. Each cluster can have a db that says what apps and versions it can handle. For each app and version that it handles, it has a copy of the code in its local GFS. That gives every server in that cluster access to the code. Since this code is read-only, each server can

[google-appengine] Re: DeadlineExceededError error rate increased significantly recently

2009-10-30 Thread Andy Freeman
See http://code.google.com/p/googleappengine/issues/detail?id=1298 . On Oct 30, 5:24 am, Stephen sdea...@gmail.com wrote: On Oct 29, 11:20 pm, Tim Hoffman zutes...@gmail.com wrote: Hi I am not using DJango, and they where asking for automagic recycling. It's not django specific. Unusual

[google-appengine] domain 2 level

2009-10-30 Thread Татьяна Муренко
Hello, I can't configure my dns for domain madeurl.com. I want madeurl.com redirect to www.madeurl.com How I can do it? I can next dns settings: madeurl.com.600 MX 10 ASPMX.L.GOOGLE.COM. www.madeurl.com.600 CNAME ghs.google.com.

[google-appengine] IOError: [Errno 13] Permission denied when trying to read an /assets file

2009-10-30 Thread Gezim Hoxha
Hi everyone, I uploaded a file called 'Albanian-Hasan-Nahi-115.csv' into my / assets/ directory. I'm working on a wave robot, but the issue is not wave related. I'm trying to read the file like this: q = codecs.open('/assets/Albanian-Hasan-Nahi-115.csv','r', 'utf-8') but I get this error: q

[google-appengine] snow-sprint 2010

2009-10-30 Thread miann
Hi all, just wanted to announce that Lovely Systems will again host a snow- sprint this winter in the Austrian Alps (24-30 January 2010). It's a one-week sprint located deep in the mountains and deep in the snow, where we have a house on our own to code, talk, socialize,... all day/night.

[google-appengine] XMPP - security/disable automatic invites

2009-10-30 Thread TomVdp
Hello, I'm currently writing an app that makes use of XMPP for realtime updates to a client system. While doing this I came across couple of issues: - Is there a way to disable the feature where the AppEngine will automatically accept all invitations to your app. Ideally, I would prefer to

[google-appengine] XMPP Requests

2009-10-30 Thread kevinalle
Hi. I am developing an app that uses the XMPP handler to make a chat bot.. my question is: is it possible to write an iqHandler to handle other type of requests? i want my bot to have a profile. and to do that i need to answer to an xmpp request that looks like: iq type='get'

[google-appengine] Feature Request: Amazon DevPay equivalent

2009-10-30 Thread vacorda
I would really love GAE to offer a service similar to Amazon DevPay. http://aws.amazon.com/devpay/ --~--~-~--~~~---~--~~ 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: Tragedy of the Commons, and Cold Starts

2009-10-30 Thread Robin B
I heard that Google will soon speed up Java boot times by preverifying code on upload instead of at boot time, but the cold boot problem is still a problem. Until the cold boot problem is addressed on appengine, by allowing people to buy/keep warm handlers, you have to resort to hacks. The task

[google-appengine] Re: domain 2 level

2009-10-30 Thread Wooble
The redirects aren't done by DNS; you need to point madeurl.com at some server that will do a 302 redirect to www.madeurl.com. Your domain provider may or may not offer such a server (godaddy does for free; register.com will offer to do it for free after you call to get them to release your

[google-appengine] Re: IOError: [Errno 13] Permission denied when trying to read an /assets file

2009-10-30 Thread Wooble
You're starting the file path with /, which is trying to read from the root of the filesystem. On Oct 30, 1:12 am, Gezim Hoxha hge...@gmail.com wrote: Hi everyone, I uploaded a file called 'Albanian-Hasan-Nahi-115.csv' into my / assets/ directory. I'm working on a wave robot, but the issue

[google-appengine] Re: domain 2 level

2009-10-30 Thread johnP
We had to resolve this same issue. We finally did it at a DNS level. To do so, we switched from our existing DNS service to a new one that supported such redirects. The company that we switched to - Nettica - is spectacular. I never thought it's possible to say this about a DNS host. But

[google-appengine] Re: domain 2 level

2009-10-30 Thread johnP
To clarify: Nettica's redirects are not at a DNS level - they are at a DNS Provider level. Their interface lets you easily manage the redirects. johnP On Oct 30, 11:45 am, johnP j...@thinkwave.com wrote: We had to resolve this same issue.  We finally did it at a DNS level. To do so, we

[google-appengine] Re: DateTimeProperty question

2009-10-30 Thread Jeff S (Google)
Hello Michał, The feed_query.updated_min is expected to be a string corresponding to the desired time but it cannot be a datetime object. The time string should be in RFC 3339 timestamp format. For example: '2005-08-09T10:57:00-08:00'. You can use time.strftime to convert a datetime to a

[google-appengine] Re: DownloadError: ApplicationError: 5 - Urgent

2009-10-30 Thread Jeff S (Google)
Hello Jairo, DownloadError 5 usually means that the remote server did not respond withing the URLfetch time limit. The default time limit is 5 seconds (the max is currently 10 seconds), so if the server you are posting to from within App Engine takes too long this exception will be raised. What

[google-appengine] Re: Will memcache data ever be evicted if have spare memory?

2009-10-30 Thread djidjadji
Nick Johnson wrote on his blog: that this is somewhat equivalent for a read operation. I think that if you write a lot to this key_name then their might be a noticeable difference. 2009/10/30 Gijsbert gijsbert.de.h...@gmail.com: Anybody ever meausre how much faster memcache is compared to a

[google-appengine] Re: General Datastore Question

2009-10-30 Thread SweetHotDaddy
Jorge, thank you. I read that section but it didn't sink in. I guess I have to re-read the docs again. On Oct 27, 3:26 pm, Jorge athenas...@gmail.com wrote: You may want to take a look to the  Object Fields and Entity Properties  section at the bottom of the Defining Data Classes document

[google-appengine] Re: IOError: [Errno 13] Permission denied when trying to read an /assets file

2009-10-30 Thread Gezim Hoxha
I removed the / and now I get: IOError: [Errno 2] No such file or directory: 'assets/Albanian-Hasan-Nahi-115.csv' Gezim Hoxha (aka Gizmo) http://www.gizmobooks.com -- buy/sell your textbooks On Fri, Oct 30, 2009 at 12:40 PM, Wooble geoffsp...@gmail.com wrote: You're starting the file path

[google-appengine] Can't verify App Engine Account as my Phone number is already verified

2009-10-30 Thread Damien
Is there a way around this please as I would like to use App Engine but can not get past the verification check and the message that I get on-screen says that it can not verify my mobile number as it has already done so. Damien --~--~-~--~~~---~--~~ You received

[google-appengine] Re: My memcache items are randomly removed?

2009-10-30 Thread loell
sorry to get back at this discussion so late, but i have another question in relation to this behavior / operation, so how would one effectively design a correct memcaching of data from the data store? is it just, evaluate all items in the memcache set, and if there is no none then OK. else

[google-appengine] Re: Will memcache data ever be evicted if have spare memory?

2009-10-30 Thread loell
Hi i would just like to ask a related question with memcaching data from the datastore, so what's the effective design with datastore memcaching? is it just? evaluate all items in the memcache set, and if there is no none then OK. else repeat the GQL operation then reset all memcache items

[google-appengine] Re: DownloadError: ApplicationError: 5 - Urgent

2009-10-30 Thread Jairo Vasquez
Thanks Jeff, I'll talk to that people, I though maybe was a GAE problem because this was not happening in the past, I just wanted to know if there was problems with urlfetch. Thanks a lot. On Oct 30, 7:09 pm, Jeff S (Google) j...@google.com wrote: Hello Jairo, DownloadError 5 usually means

[google-appengine] validating group membership

2009-10-30 Thread David Skyberg
I want to develop an application that tests to see if a user is a member of a specific Google Group. Is there any way to accomplish this? Even if limiting the app to a specific domain, is there a way to limit authorization to a specific group within that domain?

[google-appengine] UnicodeDecodeError when trying to upload unicode CSV file using upload_data

2009-10-30 Thread Gezim Hoxha
Hi, I'm trying to upload a CSV file to the datastore. I created the model and bulkloader. However when I run the appcfg.py upload_data command I get this error: ...[ERROR ] [Thread-7] WorkerThread: Traceback (most recent call last): File

[google-appengine] Re: UnicodeDecodeError when trying to upload unicode CSV file using upload_data

2009-10-30 Thread dburns
This monologue of mine might help: http://groups.google.com/group/google-appengine/browse_thread/thread/28324f17f9007af5/8c6b48f885f90ae1?hl=en#8c6b48f885f90ae1 My last post summarizes what I found out. On Oct 30, 10:06 pm, Gezim Hoxha hge...@gmail.com wrote: Hi, I'm trying to upload a CSV