[appengine-java] How to assing an enitity to two different enitites ?

2010-07-13 Thread cscsaba
Hello, I would like to build an web application where the entity relationship looks like as follow: User 1 - * Possibility * - 1 Country 1 - 1 Profile * - 1 Country *initialization and persistence* User.getPossibilities().add(Possibility);Possibility.setCountry(Country);

[appengine-java] Re: Sending mail in transaction

2010-07-13 Thread dflorey
The request headers will not help. You'll run into problems whenever you are doing an api call that return with an unknown state and the method you are calling is not idempotent (like sending mail, creating a contact etc.) So in case of email you can add your app as bcc and use a mail-in handler

[appengine-java] Re: Cannot see 'New Web Application' in New menu

2010-07-13 Thread John
Thanks, 3.6 as root was the problem. John On Jul 7, 7:56 pm, Jason Parekh jasonpar...@gmail.com wrote: Hi John, Do you see any of the other Google Plugin for Eclipse features, like a few toolbar buttons? Did you happen to install Eclipse 3.6 as root and the plugin as your user?  There's a

[appengine-java] How long is my application state hold on the app engine?

2010-07-13 Thread ingo
hello everyone, i want to collect some performance figures of my app on the server side. but i do not want to persist them in the database, i only want to collect them by changing the state of some class (i.e. changing class members like number of requests, number of method calls, etc). i want to

[appengine-java] Re: problem with storing data in datastore

2010-07-13 Thread Vishakha
Hi I am akriti's team member. This is part of my servlet code. public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { { ServletFileUpload upload = new ServletFileUpload(); try{

[appengine-java] Re: problem with storing data in datastore

2010-07-13 Thread Vishakha
Hi I am akriti's team member. This is part of my servlet code. public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { { ServletFileUpload upload = new ServletFileUpload(); try{

[appengine-java] Re: Sending mail in transaction

2010-07-13 Thread Marcus Brody
I was thinking about storing some unique string which is derived from email content and recipient (i have some unique stuff sending in each mail) and store in memcache/db, I know its not bullet proof but at least in case some possible 2x sending mail would be filtered. Concept : Check flag if

[appengine-java] Re: problem with storing data in datastore

2010-07-13 Thread Shyam Visamsetty
So, if you are directly accessing the stream, it is still in memory and not stored anywhere. I think you should try logging the stream you receive. I think it is hitting a null ptr exception for some reason. did you use printstacktrace in your catch block? Thanks, Shyam. On Jul 13, 1:47 am,

[appengine-java] Re: same application same datastore different subdomain

2010-07-13 Thread Shyam Visamsetty
You definitely cannot share the data store between two applications as of now. But, you can definitely create another application a2 which contains a webservice which can call a service from an application a1. -Shyam. On Jul 13, 5:22 am, IvanRdz ivan.rd...@gmail.com wrote: Hello world! I

Re: [appengine-java] Disappearing functionality after upgrading App Engine/GWT plugins

2010-07-13 Thread Rajeev Dayal
Hi, Did you install Eclipse as root? Did you perform the upgrade as non-root? There is an issue in Eclipse with installing it as root, and then updating plugins as non-root. I'd recommend that if you install Eclipse as root, switch to root when updating your plugins. It might be easiest to

[appengine-java] Re: Java Server Faces 2.0 does not works in GAE (for me)

2010-07-13 Thread Daniel
It looks fine to me... all ur settings and configs aresame as at my web app i also took them from that web site If i were u i would delete the project and build it from scratch.. its probably some silly mistake... its not that u in the middle of the project.. u just started it should

[appengine-java] Re: Java Server Faces 2.0 does not works in GAE (for me)

2010-07-13 Thread SammyBar
Silly error...! I mistakenly named welcome.xhtml as welcome.xhml Sorry, JSF 2.0 works for me too! On 12 jul, 19:02, SammyBar sammy...@gmail.com wrote: Hi all, I'm trying to config my first Java Server Faces project with GAE. I have already configured my Eclipse following instructions

[appengine-java] Re: How to upload primary key as an id instead of name

2010-07-13 Thread Matthew Blain
Sorry, this won't be available until 1.3.6. You should be able to do something like this: - property: __key__ external_name: CityId export_transform: datastore.Key.id import_transform: lambda value: datastore.Key.from_path('City', int(value)) --Matthew On Jul 10, 5:53 pm, Pasha

Re: [appengine-java] Re: How to upload primary key as an id instead of name

2010-07-13 Thread John Patterson
You can do this now using the RemoteDatastore Java utility http://code.google.com/p/remote-datastore/ For example, this code runs on your desktop and creates a single entity in your live datastore: // divert datastore operations to live application RemoteDatastore.install();

Re: [appengine-java] Re: same application same datastore different subdomain

2010-07-13 Thread John Patterson
On 14 Jul 2010, at 01:39, Shyam Visamsetty wrote: You definitely cannot share the data store between two applications as of now. Technically you actually can share data between applications using RemoteDatastore - you can divert datastore operations to a different application.

[appengine-java] deploy through proxy

2010-07-13 Thread senderj
I am using Netbeans 6.8 with GAE plug-in. I need to deploy to GAE through a proxy. I've specified the correct proxy host and port in NB but still I got connection timeout in every deployment. The proxy host and prot is correct because they works in Eclipse. But not in NB. Seems the NB plug-in has

[appengine-java] I cannot access the url of my deployed application? getting Not Found

2010-07-13 Thread Daniel
Hi I got no firewall on the PC and i can log in into the https:// appengine.google.com/dashboard?app_id=* Than when i browse to Administration - Versions i click on the link of the application and getting immediate Not Found it looks like it doesn't even try to surf to the web page tried

[google-appengine] Re: Is _ah/openid_logout going to be a stable logout URL

2010-07-13 Thread l.denardo
It was one of the other ways to do it, I just wanted to avoid more code in my architecture just to do this (MVP has the disadvantage of added boilerplate for simple tasks like this one). Anyway I found a workaroud, passing the URL in an invisible div in my page and then reading and populating

Re: [google-appengine] Offline processing

2010-07-13 Thread Pieter Coucke
Well, it has the benefit that all B tasks can be executed in parallel so it can be very fast. You can also wait until the background services functionality is added to App Engine (this is on the roadmap). On Tue, Jul 13, 2010 at 2:13 AM, Phil McDonnell phil.a.mcdonn...@gmail.comwrote: I see

Re: [google-appengine] Re: Local development solution for Closure JavaScript library + AppEngine

2010-07-13 Thread Jeff Schwartz
Then there's Groovy which supports closure at the language level and is byte code compatible with Java. Gaelyk is a lite weight appengine framework built on top of Groovy. A sweet combination. On Tue, Jul 13, 2010 at 1:40 AM, gops patelgo...@gmail.com wrote: I think you are using java. for

Re: [google-appengine] datastore keys security question

2010-07-13 Thread Jeff Schwartz
I would use the key's id and not the full key which contains too much private information. Also, at a minimum, convert the id to base64 url friendly. It won't stop a committed hacker but it will offer some obfuscation. You could use a stronger encryption than base64 of course as base64 is easy to

[google-appengine] Datastore is now slower than before last week's maintenance

2010-07-13 Thread takeru sasaki
Hello, I feel Datastore is now slower than before last week's maintenance. Does anyone feel like same? In my dashboard, Milliseconds/Request is now 800+ms. But it was about 400ms before the maintenance. I want to back faster by this week's maintenance. But someone said it will not back, in

[google-appengine] Re: Datastore is now slower than before last week's maintenance

2010-07-13 Thread Geoffrey Spear
The maintenance announcement stated that they expected increased latency between the first maintenance period and the second one, which is scheduled for tomorrow. On Jul 13, 7:45 am, takeru sasaki sasaki.tak...@gmail.com wrote: Hello, I feel Datastore is now slower than before last week's

[google-appengine] Re: Datastore is now slower than before last week's maintenance

2010-07-13 Thread Mike Wesner
see http://googleappengine.blogspot.com/2010/07/upcoming-datastore-downtime.html we'd like to inform developers that during the period between the two maintenance events listed above, we are expecting that Datastore performance will be impacted and applications will see higher read/ write

Re: [google-appengine] Re: datastore keys security question

2010-07-13 Thread Felippe Bueno
datastore_types.Key.from_path(u'Issue', 31L, _app=u'epubpub2') How you did it ? You simply asked for db.Key(mykey)? Is it possible to get other informations for this entity, from another app-id ? Jeff, I can't find the key's id using datastore view or in documentation. The idea is to have 4

Re: [google-appengine] Re: Datastore is now slower than before last week's maintenance

2010-07-13 Thread takeru sasaki
Geoffrey, Mike, Thank you! 2010/7/13 Mike Wesner mike.wes...@webfilings.com: see http://googleappengine.blogspot.com/2010/07/upcoming-datastore-downtime.html we'd like to inform developers that during the period between the two maintenance events listed above, we are expecting that

[google-appengine] how to get the id of key of SelfReferenceProperty

2010-07-13 Thread saintthor
class x( db.Model ): yy = db.ReferenceProperty( y ) Parent = db.SelfReferenceProperty() use yy.key().id() is ok, but Parent.key().id() is invalid. tell me SelfReferenceProperty have no attribute Key. how to get the key id then? -- You received this message because you are subscribed to

[google-appengine] Re: how to view all keys in memcache?

2010-07-13 Thread saintthor
thank you. i have solved this problem. On 7月7日, 上午10时30分, Toomore toomore0...@gmail.com wrote: Appstats for Pythonhttp://code.google.com/appengine/docs/python/tools/appstats.html On Jul 6, 3:01 pm,saintthorsaintt...@gmail.com wrote: what is appstat? give me a link please. On 7月6日,

[google-appengine] How do i reload my app(google wave robot) in app engine

2010-07-13 Thread Alex
i have deploy a wave robot on to app engine. it works as expected, i then make some change to the code, deploy it on the same app engine version the change i made was not in effect. according to

[google-appengine] Opening a JSP editor results in eclipse not responding

2010-07-13 Thread Alex
Hi, I have run into some problems with eclipse and hope that someone here can help me. I created a GAE project and wanted to experiment with some basic JSP stuff. I run into the known problem that I have to install a JDK. After doing so, problems got worse. When I now try to create or edit a JSP

[google-appengine] Failed to Create App

2010-07-13 Thread Steegle
I have successfully made an app and tested it on my personal Google Account, now I need to upload it using my work Google Account. I have signed in to Google App Engine using my work Google Account and successfully verified by SMS. I have tried twice to create an app

[google-appengine] Loading Seed Data for Unit Testing

2010-07-13 Thread vhazrati
Hi, We are using JPA for our Dao's to interact with the datastore. I was wondering is there is a way to load seed data for unit testing. I can insert the entities using JPA in the setup() method here private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new

[google-appengine] Modeling Twitter Annotations

2010-07-13 Thread Josh
I am writing a micro blog and would like to add twitter like annotations to each post. What is the best way to model this using the app engine? Below is an json example of the type of structure I am trying to achieve on GAE. { message: App Engine Rocks, annotations:

[google-appengine] Re: ~200 ms or 200 ms lags

2010-07-13 Thread Nick Joyce
On Jul 11, 11:01 pm, Broadsmile broadysm...@gmail.com wrote: Hi! I'm new to the GAE Engine, I found it will be a nice engine for my mmorpg game. For now I'm still investigating what Can I do with this technology, and what I can't. I want my game to be real-time based and am now testing the

[google-appengine] Re: ~200 ms or 200 ms lags

2010-07-13 Thread Nick Joyce
On Jul 11, 11:01 pm, Broadsmile broadysm...@gmail.com wrote: Hi! I'm new to the GAE Engine, I found it will be a nice engine for my mmorpg game. For now I'm still investigating what Can I do with this technology, and what I can't. I want my game to be real-time based and am now testing the

[google-appengine] Serializable Docservice on Appengine

2010-07-13 Thread adrian.migraso
hi, i downloaded the gdata-docs-trunk and made the DocService serializable so i can store it on appengine sessions. everything was ok when i test it locally, but this error appears on the server. i tried a no-arg constructor and set a default appname, but the result is still the same. i dont

[google-appengine] SEND APPLICATION

2010-07-13 Thread frankzeffi
I'm brazilians, I can't send my number mobile fone do send applications. Alwais go back erros. -- 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

[google-appengine] users.get_current_user() returning None for https requests

2010-07-13 Thread john
I have a handler with the secure: optional setting in my app.yaml file. When I make http requests to one of its url's, the data is retrieved and returned no problem. When I make an https to the same url, however, the handler's call to users.get_current_user() returns None, so that the request

Re: [google-appengine] users.get_current_user() returning None for https requests

2010-07-13 Thread Andi Albrecht
It's not clear from your message if you login again before accessing your https URLs or if you just change the protocol part of the URL from http to https (i.e. adding a s) or do you login again before hitting your URL using https? The cookie you'll receive for http isn't valid for your https

[google-appengine] Re: ~200 ms or 200 ms lags

2010-07-13 Thread Broadsmile
Thanks for Your answer! Aral Balkan's example is very old and I'm aware of that. You suprised me by the technological jump of pyAMF, but unfortunately upgrading it has no effect in my case (probably because I don't send/get a lot of data, so pyAMF can't show off it's serialization/deserialization

[google-appengine] Re: TransientError adding to queue..

2010-07-13 Thread Darien Caldwell
I had my first TransientError last night, and now I'm wondering this too. I would think this is probably a reasonable thing to do. -- 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] Getting 500 internal server errors trying to deploy app or load dashboard

2010-07-13 Thread Danny Tuppeny
I made some minor changes to my app, and had to save one of my files as UTF8 (it was previously Ascii, but my pound signs were showing as another character). When I tried to deploy, I now get a 500 internal server error page returned in the python window. Get the same error when trying to access

[google-appengine] Re: Getting 500 internal server errors trying to deploy app or load dashboard

2010-07-13 Thread Danny Tuppeny
Looks like I posted too soon. Less than 2 minutes later, everything seems to be working as normal! On Jul 13, 8:13 pm, Danny Tuppeny da...@tuppeny.com wrote: I made some minor changes to my app, and had to save one of my files as UTF8 (it was previously Ascii, but my pound signs were showing as

[google-appengine] Re: users.get_current_user() returning None for https requests

2010-07-13 Thread john
Well no, I haven't been logging in again before switching between the http and https requests. But that seems to imply that *every* request in an entire user session has to be either http or https, and you cannot mix them. Is that really how GAE works? I can't find anything in the docs about

Re: [google-appengine] Offline processing

2010-07-13 Thread Robert Kluin
I think it is pretty standard practice, and it can be quite fast when implemented correctly. Check out Brett Slatkin's IO talk: http://code.google.com/events/io/2010/sessions/high-throughput-data-pipelines-appengine.html And the 'mapper' implementation:

Re: [google-appengine] Re: Custom path for the auth cookie (ACSID)

2010-07-13 Thread Robert Kluin
Yes, I meant OpenID. :) Robert On Fri, Jul 9, 2010 at 2:33 PM, Vladimir Prudnikov pru...@gmail.com wrote: Are you talking about OpenID? OAuth is for different purposes. I think it's not possible with OpenID. It has the same API and works the same way. On Jul 9, 7:02 pm, Robert Kluin

[google-appengine] Re: Opening a JSP editor results in eclipse not responding

2010-07-13 Thread TL
As a troubleshooting step I would suggest creating a java project that is not a GAE project, and verifying that it works and you can edit JSPs. Alternatively you can uncheck in your existing project properties the checkboxes Use Google App Engine and This project has a war directory in the Google

[google-appengine] Re: HTTPS on my own domain

2010-07-13 Thread TL
Thanks. Do people have an estimate of the increased cost of using HTTPS over HTTP (due to more CPU cycles)? On Jul 2, 11:28 am, J j.si...@earlystageit.com wrote: We don't use any cookies until the user logs in and once they log in, we stay on https for all traffic. Hopefully we don't run into

Re: [google-appengine] Re: datastore keys security question

2010-07-13 Thread Robert Kluin
I use entity keys as parameters for some things. If allowing someone to know the app-id of your app is a security risk you may need to evaluate your security; besides if you want to use SSL the app-id is public knowledge anyway. (Sometimes) I also use the key when I want to allow multiple an

Re: [google-appengine] how to get the id of key of SelfReferenceProperty

2010-07-13 Thread Robert Kluin
SelfReferenceProperty should just return a db.Key. So assuming the property is set, normal Key methods should work. I have two suggestions: 1) Unless you are intending to dereference (ie perform another db.get()) those entities, use the get_value_for_datastore method.