[appengine-java] Re: How to create query with 4 arguments?

2010-04-16 Thread Renars
Thank you, thats what I needed :) executeWithArray(), executeWithMap() all allow as many input parameters as you want. -- 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] Is there anyway to set The Request Timer less than 30 seconds

2010-04-16 Thread Featheast Lee
The Request Timer limits a request's time to 30 seconds, however in my situation, I'd like to reduce the time, say only 5 seconds. Is there any method to achieve this? The reason I want to do this is because I seldom see a request cost more than 5 seconds, however if there is one, it must be the

[appengine-java] User.nickName

2010-04-16 Thread Philip Tucker
When I access the nickName field of the userService.getCurrentUser() object, I don't get the nickName from Google profiles. For example, if I go to http://www.google.com/profiles/me/editprofile for my account (ptuc...@gmail.com) my nickName is Philip, but in AppEngine I get ptucker. -- You

[appengine-java] Re: Is there anyway to set The Request Timer less than 30 seconds

2010-04-16 Thread Thomas
I think you can Thread.sleep(5000) after submiting a task which does the real job and write its start time and final result to datastore. Your main thread can fetch the start time and result from datastore after 5 secs. -- You received this message because you are subscribed to the Google

[appengine-java] Re: Owned one-to-one relationships: cannot attach a new child to a parent which has already been saved

2010-04-16 Thread ylmz
Hi, I am having the same problem and I found following post very useful http://groups.google.com/group/google-appengine-java/browse_thread/thread/28d9c3b99df25e43/b43702a150c5aa1b?lnk=gstq=owned+one+to+many#b43702a150c5aa1b it shows how to modify one-to-many relationships. On Apr 15, 1:07 pm,

[appengine-java] How to separate duration of cold-start time from user-code-time via Appstats?

2010-04-16 Thread tempy
So I've set up appstats, and I tend to see the following picture: The entire request took around 5 seconds, there are some RPC call bars that add up to around 2 seconds, and the rest of the request time is simply empty space in the timeline. Can I safely assume that all the empty space before

[appengine-java] How to separate duration of cold-start time from user-code-time via Appstats?

2010-04-16 Thread tempy
So I've set up appstats, and I tend to see the following picture: The entire request took around 5 seconds, there are some RPC call bars that add up to around 2 seconds, and the rest of the request time is simply empty space in the timeline. Can I safely assume that all the empty space before

[appengine-java] Re: Owned one-to-one relationships: cannot attach a new child to a parent which has already been saved

2010-04-16 Thread ckitop
Hi, Indeed, Owned one-to-many relationship works perfectly in my test, the problem seems to be when attaching a new child (one object) to a parent which has already been saved (one-to-one) while attaching a new Collection to the same parent works fine (one-to- many) However, I'm also talking

[appengine-java] Re: Detecting non existing entity

2010-04-16 Thread Vik
hie any advise on this please? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr 15, 2010 at 10:35 PM, Vik vik@gmail.com wrote: hie any one on this plz? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Apr

[appengine-java] Re: Owned one-to-one relationships: cannot attach a new child to a parent which has already been saved

2010-04-16 Thread ckitop
Hi, I've found a way around this problem: http://code.google.com/intl/fr-FR/appengine/docs/java/datastore/transactions.html It says that you must assign the key of the new child by your own, including the key of the parent. So, before setting the child to his parent and saving it, first you

[appengine-java] Manual UI testing with GWT and App Engine

2010-04-16 Thread jones34
I'm very new to App Engine and have what I hope will be a simple question. I'm using it with GWT and doing my development in Intellij Idea. I've set up my automated test using LocalServiceTestHelper, etc. and that works fine. What I want to do now is continue to test my UI. For that, I'm using

[appengine-java] Re: Google Plugin for Eclipse 1.3 is now available

2010-04-16 Thread Rutger van der Eijk
Hi Keith, Regarding multiple/single project(s) and unit tests: I currently have all tests included within the same single project. The disadvantage of this however seems to me that all tests classes (including extra jars only needed for testing (like appengine- testing.jar)) will also be

[appengine-java] Re: NullPointerException while persisting a new entity

2010-04-16 Thread Coelho
I would report the same problem and maybe help with more details. I change the primary key of a persisntant propertie of my class from String to Long, and after a lot of problems with that I, decide to get back for String type. After that my objects couldn´t be persistant anymore. Please help

[appengine-java] HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bobo
Hi I run Google App Engine (Java) locally with Eclipse. Following the tutorial of Getting Started - Java, I lean it step by step and my local server works well until the section Using JSPs. After adding SignGuestbookServlet.java and greeting form in guestbook.jsp as well as editing web.xml for

Re: [appengine-java] Run App Engine on a production intranet

2010-04-16 Thread Alessandro Barbosa
Hi I would suggest you run your application in some load test tool like Apache JMeter to see how the development environment run working as a production environment. Best Regards, Alessandro 2010/4/15 Harry Monroe pablo.sole...@gmail.com Hi, I know this is not the point on Google App

[appengine-java] Create an online game with GAE

2010-04-16 Thread Phuong Nguyen
Hi guys, I'm creating an online game server with GAE and there's a few concerns that I'd like to ask for advice. One of my problem is that I need to manage a lot of information that would not make sense to be stored in database. Like the status of each player, the last time server seen such

[appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
I forgot mention in my post about the version of Eclipse I am using is Galileo. I downloaded Google plugin for this version. The link to the Tutorial where I am stuck on is: http://code.google.com/intl/en/appengine/docs/java/gettingstarted/usingjsps.html In Eclipse console, all log messages

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread Rajeev Dayal
Can you post the contents of your web.xml file and your appengine-web.xml file? On Thu, Apr 15, 2010 at 10:21 PM, bosun david.bo...@gmail.com wrote: I forgot mention in my post about the version of Eclipse I am using is Galileo. I downloaded Google plugin for this version. The link to the

[appengine-java] Re: Does Thread.sleep count towards CPU time?

2010-04-16 Thread Thorsten
That sounds reasonable. I will investigate further -- thank you very much for you help. On 15 Apr., 19:57, Don Schwarz schwa...@google.com wrote: My guess is that with such a large sleep time you are causing us to load your application across more servers, and those loading requests are

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
Hi Rajeev, Thank you for helping me troubleshooting this issue. Below is web.xml ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;

Re: [appengine-java] Re: Cookie expiration: how can I make them expire programmatically?

2010-04-16 Thread Esteban Ignacio Masoero
Thomas, thanks for the response. I tried deleting all entries for _ah_SESSION, but it didn't work. Can anyone from Google clarify whether this should or shouldn't work? I'll try what you said about the web.xml, if it's possible it should be much better. Thanks, Esteban On Thu, Apr 15, 2010 at

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
Hi Chau, I used the code in the tutorial with a slightly change. Data is posted by POST method in the form so SignGuestbookServlet should use doPost to handle it. Anothe thing I am confused is that I can't see log message in Eclipse console if I added custom message like log.info or

Re: [appengine-java] Re: Cookie expiration: how can I make them expire programmatically?

2010-04-16 Thread John Patterson
Sessions are also stored in memcache so you would also need to clear that. BTW, I catch all exceptions thrown from my cache and simply return null. After all, the cache is not intended to be a permanent store so your code needs to handle this case anyway. On 16 Apr 2010, at 23:38,

[appengine-java] Re: No Admin User on my Google Apps located app

2010-04-16 Thread Alexander Orlov
Does anybody experiencing the same issue? I was one of the first GAE users, maybe this issue is specific to Google Apps + GAE users who belong to the GAE pioneer cohort? Please help, I simply cannot sign in as admin user! My app lox.loxal.org / wlox-sns.appspot.com. On Apr 3, 1:57 am, Alexander

[appengine-java] Hosting gwt project at myapp.com, pulling data from api.myapp.com ?

2010-04-16 Thread Mark
Hi, I have my gwt project hosted on app engine. This is resolving to: http://www.myproject.com how would I go about serving data from: http://api.myproject.com from the same datastore? I'd like the gwt project above to be able to pull its data from api.myproject.com, Thanks -- You

Re: [appengine-java] Re: Clear particular session manually

2010-04-16 Thread Esteban Ignacio Masoero
Hi david: Could you finally remove a complete session manually? Because I'm trying to do the same. What's the key that should be used in the memcache? Thanks, Esteban On Mon, Dec 28, 2009 at 1:32 AM, m seleron seler...@gmail.com wrote: Hi, Supplement is As another solution, I think

Re: [appengine-java] Re: Cookie expiration: how can I make them expire programmatically?

2010-04-16 Thread Esteban Ignacio Masoero
I tried deleting all the memcache by calling cache.clear(); but it didn't work. I also noticed the solution posted here http://groups.google.com/group/google-appengine-java/browse_thread/thread/4f0d9af1c633d39a/but apparently only works with expired sessions. What I want to do is make all active

[appengine-java] gdata batch request does not work on GAE but does locally.

2010-04-16 Thread witkamp
When executing the app on my local workstation it works without a problem. However,when i deploy it to GAE it fails with this stack trace every time. Any ideas ? Thanks Note: My post data is small, only 5 contacts SDK: SDK 1.3.1 Ticket:

[appengine-java] simple JPA query too slow

2010-04-16 Thread Jonas Gehring
Hello. Our app is slow. I used a profilier to find the weak point. The following query needs about 500ms on my local machine: SELECT FROM Employee WHERE account=:mail Account is a String field. Why is that query so slow? I also tried to set an index, but nothing changed: datastore-index

[appengine-java] Query for children of entity with JDO

2010-04-16 Thread timwhunt
I posted this in the general discussion group, but I just realized this is probably the better group for it. I've been struggling to translate some Datastore approaches I see documented in Python into Java. One in particular is querying for entities that have a given parent. Do I have to use

Re: [appengine-java] Create an online game with GAE

2010-04-16 Thread Ikai L (Google)
Have a look at Memcached: http://code.google.com/appengine/docs/java/memcache/ http://code.google.com/appengine/docs/java/memcache/On the one hand, you won't have easy transactions, but you get a place to store data where it doesn't matter which application instance users are hitting. On Thu,

Re: [appengine-java] Re: HTTP ERROR 405 with Guestbook Tutorial

2010-04-16 Thread bosun
From my observation, form action=/sign method=post in guestbook.jsp is expected to trigger doPost method in SignGuestBookServlet but instead, it invoks doGet method in GuestbookServlet as it's the first servlet defined in web.xml. Thus, it causes the error message like HTTP method POST is not

[appengine-java] Re: Clear particular session manually

2010-04-16 Thread seleronm
Hi, Though it is not a question to me I think that the following sources might be useful for the acquisition of the key used with memcache. DatastoreService service = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(_ah_SESSION); PreparedQuery pq = service.prepare(query);

[appengine-java] Create Online Game That Contains High Change Data

2010-04-16 Thread Phuong Nguyen
Hi guys, I'm creating an online game server with GAE and there's a few concerns that I'd like to ask for advice. One of my problem is that I need to manage a lot of information that would not make sense to be stored in database. Like the status of each player, the last time server seen such

[appengine-java] Re: Create Online Game That Contains High Change Data

2010-04-16 Thread Timofey Koolin
You can store your data in memcache and in datastore. Then you read data from memcache or (if is'n exsists in memcache) from datasrore. Or you can use write-behind cache http://www.youtube.com/watch?v=HL5igKTuN8M On 17 апр, 08:04, Phuong Nguyen phuongn...@gmail.com wrote: Hi guys, I'm creating

[appengine-java] JDP, get objects by id

2010-04-16 Thread Timofey Koolin
I need get some objects by ID from datastore, but I'm not sure exsists every objects (some objects may was delete before my request). PersistenceManager.getObjectsById(...) throw exception if not objects exsists. GQL quote 30 keys in 'IN' query. Is exsists any other way to get objects by one