[appengine-java] Re: HELP: My app is getting lots of HardDeadlineExceededError today.

2010-08-13 Thread SC2PlayerFinder
Used appstat and didn't notice anything out of the ordinary. Still thinking that the main issue here is exploding index and I'm not sure how to get around that other than to cut search features from the site, but that would more or less make the app not very useful. On Aug 12, 10:19 pm,

Re: [appengine-java] want to specify two different fields in JPA or clause

2010-08-13 Thread Pieter Coucke
You might want to check Query filters here: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Introducing_Queries a query can only have one not-equal filter, and such a query cannot have other inequality filters A workaround can be to add two extra boolean properties

[appengine-java] Re: Local Unit Testing with UserService: userId==null problem

2010-08-13 Thread Dmitriy T.
No, i didn't fix it. But now I create issue for this: http://code.google.com/p/googleappengine/issues/detail?id=3579 On Aug 12, 1:37 pm, poe stefan.poe...@googlemail.com wrote: I have the same Problem, did you fix your problem? Please tell me how you did it. Thanks Poe On 30 Jun., 12:18,

[appengine-java] Re: Shared Datastore via Multiple App Versions Locally

2010-08-13 Thread millr
I should mention that I'm on Mac OS X for development. -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to

[appengine-java] Re: Problems with OAuth

2010-08-13 Thread Alex Bertram
Resolved! The final gotcha was that the authorization token returned by AppEngine includes a '/' while the client library assumes that this token will be alphanumeric. http://code.google.com/p/oauth/issues/detail?id=182 Best, Alex On Aug 12, 12:04 am, Ikai L (Google) ika...@google.com wrote:

[appengine-java] Problem with one 2 many relationships

2010-08-13 Thread Aleksey Kiselev
Hi, group!!! Sometimes my GAE application can't persist collection of child elements. I have following objects structure. @PersistenceCapable(table = persons, identityType = IdentityType.APPLICATION) public class PersonEntity { @PrimaryKey @Persistent(valueStrategy =

[appengine-java] update multiple one to many parent (JPA)

2010-08-13 Thread micwolf
Hi guys: I currently running into issues that: second update for inventoryDao.addRootCategory(category2); will throw exception that: Caused by: java.lang.IllegalArgumentException: can't operate on multiple entity groups in a single transaction. found both Element { type: CategoryEntity id: 1

[appengine-java] Re: EL works, but eclipse underlines red, and says can't find tag library - solutions?

2010-08-13 Thread somejava
Hi, here is the post I've made with the solution http://someprog.blogspot.com/2010/08/google-app-engine-can-not-find-tag.html. Hope it will help you. br, sergey On Aug 9, 11:19 pm, Ikai L (Google) ika...@google.com wrote: You know, I've had Eclipse installed across several computers, and I'm

Re: [appengine-java] Re: HELP: My app is getting lots of HardDeadlineExceededError today.

2010-08-13 Thread Ikai L (Google)
Saving 100 entities in a single request, especially if a TON of indexes will be created is very expensive and will cause a lot of CPU to be consumed. There probably is a design that will allow you to accomplish what you need to do without this limitation. Can you post your use case? On Thu, Aug

Re: [appengine-java] Shared Datastore via Multiple App Versions Locally

2010-08-13 Thread John Patterson
Your approach works fine for me on OS X. But the datastore is held in memory so only one app can use it at a time. If you make changes to the datastore you also need to wait until you see the log message Time to persist datastore... before shutting down the app. On 13 Aug 2010, at 09:14,

Re: [appengine-java] Re: HELP: My app is getting lots of HardDeadlineExceededError today.

2010-08-13 Thread John Patterson
On 14 Aug 2010, at 00:24, Ikai L (Google) wrote: index and the frequent updates the application needs to make in order to keep the data current. 71000 CPU to save 100 records seems rather expensive?. My App uses 600,000 CPUms to save 100 entities so I don't think that is expensive

[appengine-java] How to send data back to client side code?

2010-08-13 Thread Sree ...
Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java

Re: [appengine-java] Guestbook (as-is) works locally, but deployed on gae will give Error: Server Error at signin

2010-08-13 Thread Ikai L (Google)
Do the log files provide any information? What's the URL to your application? On Thu, Aug 12, 2010 at 3:48 AM, Simpatico gabri...@mysimpatico.com wrote: I've deployed the guestbook as it's provided in the demos folder but when I click to sign in I get: Error: Server Error The server

Re: [appengine-java] How to send data back to client side code?

2010-08-13 Thread Alessandro Barbosa
Hi, this is a GWT issue. The model class Employee must implements the com.google.gwt.user.client.rpc.IsSerializable interface in order to be able to be transcripted between server and client. Best Regards, Alessandro 2010/8/13 Sree ... gattasrika...@gmail.com Am not sure this belongs to GWT

Re: [appengine-java] How to send data back to client side code?

2010-08-13 Thread Sree ...
Yes.. after some google search i came to know abt that only http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Serializable_Objects http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Serializable_ObjectsBut am poor little developer so can you please help me

Re: [appengine-java] How to send data back to client side code?

2010-08-13 Thread Alessandro Barbosa
Ok, try this, move your class to some place inside /src/client and implement IsSerializable. I hope this be enough to solve the problem. import ContactInfo; // ... imports ... @PersistenceCapable public class Employee *implements com.google.gwt.user.client.rpc.IsSerializable*{ @PrimaryKey

[appengine-java] Data store low-level API and query filters

2010-08-13 Thread dominity
Hi, there! Currently there is no possibility to use two inequality filters for data retrieving. I'm storing events with start/end dates. And I want to retrieve events by date range. Currently, I'm retrieving them with query with one filter for start date, so retrieved events are older than start

[appengine-java] Re: Using JavaMail to send email to multiple recipients

2010-08-13 Thread Rodrigo
And for completeness, the email-related classes used are: import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import

Re: [appengine-java] Bulk loader and JPQL query

2010-08-13 Thread Deepika M
Ok. Thank you. I'd like to know how to upload the list, in a way that can be used as ArrayList in java programs. I had specified the type as list in the import transform specification in the bulk loader configuration file and it is uploaded as encoded strings. When I retrieve the list as an

[appengine-java] Stats are 0ms in AppStats

2010-08-13 Thread Iain
I always get 0 ms when deployed, anyone know what the issue is? real=848ms cpu=0ms api=0ms overhead=0ms (2 RPCs) -- 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: DatastoreFailureException: handle 3 not found

2010-08-13 Thread brendan
I think I might be encountering the same problem. When I run each of the tests individually they pass, but running as part of a test suite, all tests that use Task Queue except the first one fails. I'm using Deferrable tasks (described here

[appengine-java] Re: HELP: My app is getting lots of HardDeadlineExceededError today.

2010-08-13 Thread SC2PlayerFinder
2 Main parts of the application. Font End Display StarCraft 2 Player 1v1 Ladder information from all Regions. Search options: Order by (6 categories) filter by (Region) filter by (Race). -- This is the cause of my exploding index. Display 100 players per page. I have implemented some cache use

[google-appengine] quota of number of indexes for billing-enabled app. still 200?

2010-08-13 Thread Eric Ka Ka Ng
Hi, It was known that the original quota of number of indexes, 100 for billing-disabled app, and 200 for billing-enabled app, are quite limiting for some types of applications, and such restriction is not extendable even we as users want to pay for it. This really posts difficulties, technical

[google-appengine] Primary Key Issue in Google Data Store

2010-08-13 Thread Jeevan
Hi all, I developing an application on app engine using data store. We had 30 tables and more numbers of fields in the relational DB (mySql). I want to deploy it on the google app engine using data store. How can I implement it using google data store, should I create 30 objects or is that enough

[google-appengine] KindError: No implementation for kind 'MyModelX'

2010-08-13 Thread djidjadji
I just got this error while processing a request KindError: No implementation for kind 'MyModelX' I returned to the home page and requested the same page again a few seconds later and the error was gone. Now it can find the implementation. I use the Python API, and the error was raised during

[google-appengine] Re: can not get_current_user in IE script loading.

2010-08-13 Thread saintthor
my ie8 always fail.. thank you for test. On 8月13日, 上午5时19分, Robert Kluin robert.kl...@gmail.com wrote: When I tried this in IE8 it seemed to work as I would expect. First load: alert('failed'); login Second load: alert('success'); Third load: alert('success'); Delete the login cookie

[google-appengine] Re: can not get_current_user in IE script loading.

2010-08-13 Thread saintthor
are you sure you were loading the test.js as script, not as webpage? On 8月13日, 上午5时19分, Robert Kluin robert.kl...@gmail.com wrote: When I tried this in IE8 it seemed to work as I would expect. First load: alert('failed'); login Second load: alert('success'); Third load: alert('success');

[google-appengine] Re: GQL Query

2010-08-13 Thread Geoffrey Spear
On Aug 11, 1:41 pm, Karan Malhotra toppe...@gmail.com wrote: whats the GQL i herad SQl GQL is a limited subset of SQL that allows you to write SQL-style SELECT queries to get entities from the datastore. See http://code.google.com/appengine/docs/python/datastore/gqlreference.html -- You

[google-appengine] Can i Modify/Delete already created index on app engine

2010-08-13 Thread RightQuery
My old web.xml was datastore-index kind=TBL ancestor=false property name=Col1 direction=asc / property name=Col2 direction=desc / property name=Col3 direction=asc / property name=Col4 direction=asc / property name=Col5 direction=asc / property name=Col6 direction=asc /

[google-appengine] Re: Primary Key Issue in Google Data Store

2010-08-13 Thread Geoffrey Spear
Since the datastore doesn't support joins, it's generally advantageous to denormalize your data where possible and use fewer tables than you would in a relational model. It seems fairly unlikely that most data would move nicely from 30 tables into a single one, although it's hard to say without

[google-appengine] Re: KindError: No implementation for kind 'MyModelX'

2010-08-13 Thread Tim Hoffman
Hi You will possibly find that you have exercised some code that tries to fetch and entity with a reference, but the reference target entities class has not been imported first. You must import classes prior to trying to fetch them. Now use MyModelX.all().get() implies that you have imported

[google-appengine] Re: Major queries problem using custom indexes

2010-08-13 Thread Zarko
Update for group followers: Problem has been verified as a development bug in our side (App Engine Supreme). Bug was: Cursors where in use with globally declared GQL queries, given inconsistence results. Thanks Nick On Aug 11, 9:11 pm, Zarko eladza...@gmail.com wrote: Ops, :) I am sending

Re: [google-appengine] Re: seeking CPU billing clarification

2010-08-13 Thread Nick Johnson (Google)
Hi Greg, On Thu, Aug 12, 2010 at 10:14 PM, Greg Tracy gtr...@gmail.com wrote: Here's an example of what I mean by those metrics being inversely proportional. Each of these tasks are doing the identical work and ran two minutes apart. 08-12 01:42PM 11.860 /crawl/prefetch/03 200 6227ms

Re: [google-appengine] Query an Array for values

2010-08-13 Thread Nick Johnson (Google)
Hi Benjamin, Simply use an equality filter. Equality filters on list properties evaluate to true if the list contains an element that equals your filter value. -Nick Johnson On Thu, Aug 12, 2010 at 6:19 PM, Benjamin bsaut...@gmail.com wrote: If i have object persisted in the data store with

[google-appengine] Re: About GeoModel

2010-08-13 Thread Niklasro(.appspot)
The advantage is using longitude and latitude. The disadvantage is you can't match everything in a country. Here's an example that may display more insight what you can do here hitting data via longitude and latitude in India for example http://www.koolbusiness.com/li?lat=20lon=80 where latitude

[google-appengine] Re: can not get_current_user in IE script loading.

2010-08-13 Thread saintthor
i had several friends test it. none of them got seccess with ie8. the test html at http://1jcs.cz.cc/test.html . i think you may made some mistake. On 8月13日, 上午5时19分, Robert Kluin robert.kl...@gmail.com wrote: When I tried this in IE8 it seemed to work as I would expect. First load:

Re: [google-appengine] About GeoModel

2010-08-13 Thread 陳昆宏
Thank you very much~ Your answer is very great, and you also give me some idea in how to solve my problem. Thanks again. 2010/8/12 Alejandro Cadavid acada...@gmail.com Hi, I kinda don't understand what exactly you want, but i will try. GeoModel is basically about saving latitude and

[google-appengine] About the PubSchools application Demo

2010-08-13 Thread 昆宏 陳
Hello, everybody. I have some trouble in the pubschools demo application. My question is that I have used the code of the pubschools demo,but when i finished it. I test it on website of http://localhost:8080. It looks everything is ok. But when i input a school name to find the schools near it, it

[google-appengine] Re: how to login with my Google-Apps.

2010-08-13 Thread dflorey
You cna - restrict your app to your domain at creation time and use AuthSub or - use OpenID Daniel On Aug 11, 8:51 pm, Brent brent1...@gmail.com wrote: about Login. login GET String now is

[google-appengine] How to build a picture on the GAE?

2010-08-13 Thread 昆宏 陳
Hello, everyone. I have some question in how to build a picture on the GAE. I wonder to know how to build a picture by python or another way. The data I have is the list of numbers. For example, if I have a list of [1,2,3,4,5,...], and I can build an picture of Line chart by microsoft excel or

Re: [google-appengine] Re: can not get_current_user in IE script loading.

2010-08-13 Thread Robert Kluin
Have you tried loading it as a script on the same domain? You are hosting your html file on 1jcs.cz.cc, and the js file is coming from 1wqshen.appspot.com. Try serving the html file from 1wqshen.appspot.com. I tested with both files in coming from the same app (yesterday and today) and both

Re: [google-appengine] Primary Key Issue in Google Data Store

2010-08-13 Thread Robert Kluin
You can set your own primary key. For multi-property based keys you can manually construct the key name, giving you the same result. Check the documentation for more information. http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html Robert On Fri, Aug

[google-appengine] Buying domain from App Engine

2010-08-13 Thread Bernard
Hi there. I can't help it but wonder, if I buy my domain through google, is my nameserver going to be ns*.google.com or some other provider? I current registrar is suicidally slow, and makes me thinks I should get a secondary DNS. Anyone has any other tip on speeding up nameservers? I currently

[google-appengine] Blocking inbound pings

2010-08-13 Thread Bernard
Hi everyone, I am confident in app engine security, however, I wonder if there is a way to block inbound pings to my application, or if that kind of flexibility is currently not available? Thanks. Bernard. -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] Re: Total Stored Data problems...

2010-08-13 Thread Felipe
Can you let me know me the bug id? I have a similar problem, I had filled 90% of my datastore 3 days ago because I had an entity occupying 700 mb. Since then I deleted instances of this entity until it went down to 120 mb but the datastore kept growing, reached 100% and my app has stalled because

[google-appengine] Re: Blocking inbound pings

2010-08-13 Thread Tim Hoffman
I assume you are not referring to icmp ;-) appengine has a basic anti DOS facility. Check the docs for that http://code.google.com/appengine/docs/python/config/dos.html Otherwise you probably need to explain what you mean by ping. T On Aug 13, 7:43 pm, Bernard berna...@gmail.com wrote: Hi

Re: [google-appengine] Can't access my Datastore Viewer

2010-08-13 Thread Ikai L (Google)
You won't be able to avoid the CPU time. It costs CPU time to delete entities. On Thu, Aug 12, 2010 at 12:29 PM, magnum p.magnow...@gmail.com wrote: The error message: Server Error A server error has occurred. Return to Applications screen » I've found out that this is caused by one of

Re: [google-appengine] Re: Hoping to understand the difference between CPU Time and Datastore CPU Time

2010-08-13 Thread Ikai L (Google)
Wow, this is a great link. Posterous is really, really slow for me, though. On Thu, Aug 12, 2010 at 1:34 PM, Robert Kluin robert.kl...@gmail.comwrote: Hi Greg. Nice write-up. Robert On Thu, Aug 12, 2010 at 8:25 AM, Greg Tracy gtr...@gmail.com wrote: Circling back on this thread

Re: [google-appengine] In login page programmatically change t...@example to my username

2010-08-13 Thread Ikai L (Google)
It's a stub, anyway. Is there a specific reason why you need this feature? On Thu, Aug 12, 2010 at 5:44 PM, brianl licht...@gmail.com wrote: Wondering if there's a way to change the email address in the generated login dialog/page for the dev server? Referring to this login page...

Re: [google-appengine] Unintended use of list properties for queries?

2010-08-13 Thread Ikai L (Google)
It might even be faster to retrieve the Entity and do the match in memory, making the List property unindexed. Java can tear through a substring match in memory on 5000 elements pretty quickly. Your CPU costs will come in the form of reading the saving the entity, so you'll want to keep an eye on

Re: [google-appengine] Java: Can I retrieve a localhost or relative URL (or JSP workaround)

2010-08-13 Thread Ikai L (Google)
I don't know if this'll work, but this is what Google search seems to find me: http://stackoverflow.com/questions/1189094/jsp-compilation-to-string-or-in-memory-bytearray-with-tomcat-websphere (From this search: http://www.google.com/search?sourceid=chromeie=UTF-8q=render+jsp+output+to+string )

[google-appengine] Re: GQL Query

2010-08-13 Thread Geoffrey Spear
On Aug 13, 12:30 pm, Zeeshan Mirza zeeshan.mi...@cprods.com wrote: You can perform the CURD operation by using GQL No, you can't. You can perform R. -- 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: In login page programmatically change t...@example to my username

2010-08-13 Thread Mahmoud
You can edit: google_appengine\google\appengine\tools \dev_appserver_login.py:RenderLoginTemplate Obviously your changes will be lost when you upgrade your SDK. On Aug 12, 8:44 pm, brianl licht...@gmail.com wrote: Wondering if there's a way to change the email address in the generated login

[google-appengine] Re: Blobstore vs BlobProperty?

2010-08-13 Thread Backpack
Here is exactly what I need: http://blog.notdot.net/2009/9/Handling-file-uploads-in-App-Engine Also, to get width and height, scroll to somewhere in the middle: http://popcnt.org/2008/05/google-app-engine-tips.html On Aug 12, 6:38 pm, Backpack georgen...@gmail.com wrote: I just found

[google-appengine] Re: Blocking inbound pings

2010-08-13 Thread Geoffrey Spear
On Aug 13, 7:43 am, Bernard berna...@gmail.com wrote: Hi everyone, I am confident in app engine security, however, I wonder if there is a way to block inbound pings to my application, or if that kind of flexibility is currently not available? No. Your application only responds to HTTP

Re: [google-appengine] Re: KindError: No implementation for kind 'MyModelX'

2010-08-13 Thread djidjadji
I had a close look at the source code and found the line #from allModels import * It had a comment hash (#) in front. This code wasn't updated for weeks. And probably had run correctly since because the homepage request handler also does the import. And usually the page with the error is

Re: [google-appengine] Template {% cycle %} state is stored between requests

2010-08-13 Thread djidjadji
The reason is that a Django template is converted to a Node-tree and this Node-tree is executed/rendered when the template is evaluated. The Node's keep there state in between template renderings. The solution is to add a tag that resets the counters in the CycleNode instances. At the end of the

Re: [google-appengine] How to build a picture on the GAE?

2010-08-13 Thread 陳昆宏
Can it use in GAE? 2010/8/14 Robert Kluin robert.kl...@gmail.com I use the Google Visualization APIs for things like line charts. http://code.google.com/apis/visualization/documentation/gallery.html Robert On Fri, Aug 13, 2010 at 9:19 AM, 昆宏 陳 understand...@gmail.com wrote: Hello,

Re: [google-appengine] About the PubSchools application Demo

2010-08-13 Thread 陳昆宏
Oh, you have completely solved my question. No wonder I can't find where the school data has been built in . I misunderstood that information is obtained through the Internet. Thanks very much!!! And can I ask another question? sys.path.append('../..') - the code in

[google-appengine] Re: can not get_current_user in IE script loading.

2010-08-13 Thread saintthor
ok. i don't want them in same domain. if you test with firefox, you can get seccess even in deffrent domain. can't gae work for ie as firefox? On 8月14日, 上午12时21分, Robert Kluin robert.kl...@gmail.com wrote: Have you tried loading it as a script on the same domain? You are hosting your html

[google-appengine] Can we revert our data stored in datastore to a previous date?

2010-08-13 Thread nischalshetty
A thought just occurred to me. If I goof up with my data stored in the datastore, is there a way to revert back to say how my data looked like 3 days back etc.? I mean, are there backups that we can fall back on? Is this done automatically or we have to backup the data ourselves? -Nischal --