Re: [appengine-java] Generating Keys

2010-02-08 Thread John Patterson
You could use DatastoreService.allocateIds() But why would you want to do this? If its to make the ids look nice then you could just add and remove the string yourself before looking up the key. Probably better to have a date property rather than include it in the key. On 8 Feb 2010,

Re: [appengine-java] Re: how to share local_db.bin to others

2010-02-08 Thread Andrés Cerezo
Hello, Is there a way to see the data of the WEB-INf/appengine-generated/local_db.bin from Eclipse? Thanks. 2010/2/8 dreamy dreamy2c...@gmail.com: We have no success to implement gae junit test. We use spring 2.5.6  and  follow the  

Re: [appengine-java] Generating Keys

2010-02-08 Thread Manny S
John, Thanks a bunch. Here is the reason why I need to add a prefix to the key. The scenario - I will be implementing pagination (of the data returned) as described in and for the sort order I wanted to use the Key. However, if the key also has the date of creation embedded in it then the sort

[appengine-java] write too frequent ,datastore contention timeout

2010-02-08 Thread asianCoolz
I read app engine wiki, on datastore contention if too frequent write more than 5 times in 1 seconds. The wiki introduced use shard approach as workaround. May i know if we use spring @transactional on this, this can prevent datastore contention timeout right since writing in done concurrently ?

[appengine-java] Re: getNextID

2010-02-08 Thread niraj
Getnextid was referred to by max ross in his google io talk in april 2009 On Feb 7, 11:48 am, datanucleus andy_jeffer...@yahoo.com wrote: What getNextID feature on JDO ? i.e please make reference to the JDO API and which particular API Method you're referring to -- You received this message

[appengine-java] Re: getNextID

2010-02-08 Thread datanucleus
Getnextid was referred to by max ross in his google io talk in april 2009 Which is not a JDO API call. Perhaps he's referring to low-level API. JDO allows sequences, and provides an API for those, which AFAIK Google haven't implemented. -- You received this message because you are subscribed

[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-02-08 Thread Jake
Hey all, Since Ikai's post on January 22nd, I haven't had much trouble with my instance rebooting unexpectedly. However, today the problem has returned. I'm getting instance restarts within a minute or two of each other on a somewhat regular basis - sometimes even within a few seconds of each

[appengine-java] What is Specs Features supported by GAE for Java?

2010-02-08 Thread Amr
I need a brief listed answer in a professional manner for subject question (As an example, pls see listing under point entitled Java EE 5 platform support that lists GlassFish Specs under this link: http://docs.sun.com/app/docs/doc/821-0188/gidij?l=ena=view). -- You received this message

[appengine-java] Dynamic properties (Expando model) possible with Java?

2010-02-08 Thread Johann C. Rocholl
I have been searching through the JDO and JPA docs, but I can't find info about adding and removing properties at runtime. The Python interface has the Expando model for this: http://code.google.com/appengine/docs/python/datastore/expandoclass.html If I want to read and write my Expando models

[appengine-java] Getting the client's timezone

2010-02-08 Thread hsjawanda
Hi, Any ideas on how to get the user's timezone (i.e., the timezone the client is working in)? The closest I've come so far to an answer is: http://j2eecookbook.blogspot.com/2007/06/formatting-date-to-client-timezone.html Does anybody have a better way of accomplishing this? I'd prefer to

[appengine-java] JDO Inheritance and new table strategy

2010-02-08 Thread vtellier
Hello everybody ! I am using appengine for a personal project in order to create a professional application. I find Appengine really powerful but i do not understand why the new table inheritance strategy is not available even if it would not be really efficient. In the documentation it is said

[appengine-java] Persistence with JPA + GAE

2010-02-08 Thread chevelle
Hi I am new in the list, in these days i am trying save data between two entity beans using JPA but without success, i am cheking the log nd says: Uncaught exception from servlet javax.persistence.PersistenceException: Error in meta-data for beans.distritos.id: Cannot have a java.lang.Long

[appengine-java] Close PersistenceManager every time?

2010-02-08 Thread hsjawanda
Should the PersistenceManager be closed after every query? I have a utility class that handles querying the datastore. This class then returns results which are used by JSP pages to show output. AFAIK, these are my options: * Make all my data objects detachable (what is the extra cost of doing

[appengine-java] persistence with JPA

2010-02-08 Thread Johan Vallejo
Hi I am new in the list, in these days i am trying save data between two entity beans using JPA but without success, i am cheking the log nd says: Uncaught exception from servlet javax.persistence.PersistenceException: Error in meta-data for beans.distritos.id: Cannot have a java.lang.Long

[appengine-java] Persistence in JPA

2010-02-08 Thread Johan Vallejo
Hi I am new in the list, in these days i am trying save data between two entity beans using JPA but without success, i am cheking the log nd says: Uncaught exception from servlet javax.persistence.PersistenceException: Error in meta-data for beans.distritos.id: Cannot have a java.lang.Long

[appengine-java] JDO model issue

2010-02-08 Thread Rodolphe
Hello, I am very new to appengine, and I am trying a very basic model exemple: A Race class is linked to a Runner class through a Result class When I am running the folloging code (the full code is attached): Race race = new Race(Paris, new Date(), 10); Runner runner1 = new

[appengine-java] Google App Engine for Java: Specs is needed

2010-02-08 Thread Amr Darwish
Hi All, I am now trying to take an architrecture descision to go for Google App Engine for Java or not but I did not find a topic that gathers all Specs regarding it in one place. What I am looking for is the usual Standard Server Application Server Arch. Specs like JSF, EJB JPA support for

[appengine-java] Generic type in GAE JDO. Howto?

2010-02-08 Thread Alex Lui
As java.util.Map isn't supported by GAE, I'm trying to create a class @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable=true) public class DAOMapK extends Object, V extends Object implements MapK,V { ... however, got such exception in Eclipse console DataNucleus Enhancer

[appengine-java] Getting Started : Eclipse, GWT, App Engine - Unable to resolve

2010-02-08 Thread watch
What is need to get Eclipse to compile AppEngine functions: import com.google.appengine.api.users.User; -- Unable to resolve - source code unavailable. One suggestion was to create a super class to fool the GWT compiler but that only gets you so far. I have even gone back to basic and worked

[appengine-java] Error while uploading the App - Unable to update

2010-02-08 Thread mike22153
Hi, I just tried to upload my first App to the Google App Engine. I tried the Eclipse Plugin and appengine-java-sdk-1.3.0/bin/appcfg.sh. I have Suse Linux 10.3 and jdk1.6.0_18 installed. Each time I tried, I got the following error:

[appengine-java] cloud based teaching system

2010-02-08 Thread Jeevan
Hi, am jeevan dongre.I am final year engineering student from computer science and engineering. I am doing a project on cloud computing called cloud based teaching system using google app engine. Iam utilizing google resources like blog,group,docs and also gmail.Since i am new to this programming

Re: [appengine-java] DELETE HTTP Method not working on Google Chrome

2010-02-08 Thread Johan Vallejo
Francisco send your code for help you El 08/02/2010 10:55 a.m., Francisco Gonzalez escribió: Hi. I'm developing an application that receives AJAX requests to perform some actions. I'm using jQuery to send the requests from the client. One of those requests is of type HTTP DELETE. The

Re: [appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-02-08 Thread Ikai L (Google)
Thanks for the info, Jake. Has anyone else experienced this? That is, has anyone else noticed improvement which has since degraded? On Mon, Feb 8, 2010 at 9:10 AM, Jake jbrooko...@cast.org wrote: Hey all, Since Ikai's post on January 22nd, I haven't had much trouble with my instance

[appengine-java] Re: JDO model issue

2010-02-08 Thread Jake
Hey, Relationships in GAE are a bit picky. It is my understanding that you can only persist children by way of persisting their parents. So, in your case, both Race and Runner are children of Result and you would only persist the two result objects - the dependent children would be persisted

[appengine-java] Question on request duration / quota / HardDeadlineExceededError

2010-02-08 Thread Moritz
Hello everyone, in my application I have a scheduled task that runs every 5 minutes to update the cache. Currently it is a brute force implementation, that runs through all entities and computes all permutations required. This task usually takes longer than 30 seconds - and fails almost every

[appengine-java] Re: Google Plugin for Eclipse 1.3 plans

2010-02-08 Thread Jake
I'm hoping for a good way to resolve workspace dependencies in Eclipse. The m2eclipse plugin does this well, but that doesn't play nicely with the maven-war-plugin, so it doesn't work for GAE. Running a Maven Install on each workspace dependency before deploying, however, is still nicer than

Re: [appengine-java] Question on request duration / quota / HardDeadlineExceededError

2010-02-08 Thread Don Schwarz
You should be able to catch a DeadlineExceededException and have ~400ms in which to return from your request before a HardDeadlineExceededError is thrown. Are you sure that you are not catching and ignoring the DeadlineExceededException? If so, can you create a small reproducible test case for

Re: [appengine-java] Question on request duration / quota / HardDeadlineExceededError

2010-02-08 Thread John Patterson
HDEEs can be thrown without a DEE if it happens in your own code. Usually the most time consuming thing is waiting for API calls to return so a timeout here will result in the API call stopping with a DEE. So if you do not call the API often you can hit HDEE directly. I also have long

[appengine-java] Re: Dynamic properties (Expando model) possible with Java?

2010-02-08 Thread datanucleus
To add properties to classes at runtime, you need to build your classes dynamically, and then enhance them, and define the metadata for them dynamically too. All been done before, see this link http://www.jpox.org/servlet/wiki/pages/viewpage.action?pageId=6619188 -- You received this message

[appengine-java] Image API Transparency cut

2010-02-08 Thread Millisecond
Hey all, I'm trying to take a PNG that has all pixels filled with nothing transparent, and cut out part of that image along a predefined mask. So I would end up with an image that is part transparent and part filled. Is this possible with the Image API? The only way I'm able to punch out

[appengine-java] What is the most optimal way to delete and create objects in the datastore?

2010-02-08 Thread RSN
Hi, I am kind of new to GAE, and I was wondering if someone has statistics or data that shows what are the most optimal (efficient) ways for deleting and creating objects in the Datastore. I did some small experiments in order to identify a more efficient mechanism to delete and create objects

Re: [appengine-java] Seeing owned/child entities in the datastore viewer

2010-02-08 Thread Ikai L (Google)
Sounds like a pretty cool feature. Go ahead and add it to our feature request list: http://code.google.com/p/googleappengine/issues/list?can=2q=datastore+viewer On Tue, Feb 2, 2010 at 8:10 PM, Daniel Benamy dben...@gmail.com wrote: Hi, I'm trying to find a way to see the relationships

Re: [appengine-java] Re: JDO model issue

2010-02-08 Thread Rusty Wright
I agree with Jake; relationships are tricky. Likewise with his pointing out that having race be in two Results will be a problem; that won't fly. Another way would be to have a ListResult in Race, and add your Results to that. But you're still going to have parenting problems when you have

[appengine-java] Re: Persistence with JPA + GAE

2010-02-08 Thread Jake
Hello, The Google Datastore has four ways that you can store a Primary Key ID: String, Long, and two variations on Google's own Key object. If you want to create a parent/child relationship between two persisted objects (in your case, evento is the parent and distritos is the child), then you

Re: [appengine-java] Re: Persistence with JPA + GAE

2010-02-08 Thread Johan Vallejo
hi jake, thank for you answer i will try you suggestion and i will tell later El 08/02/2010 03:37 p.m., Jake escribió: Hello, The Google Datastore has four ways that you can store a Primary Key ID: String, Long, and two variations on Google's own Key object. If you want to create a

Re: [appengine-java] Localization parameters

2010-02-08 Thread Ikai L (Google)
I saw this blog post the other day (It was posted on our Twitter account): http://blog.jteam.nl/2010/02/04/free-java-hosting-with-the-google-app-engine/ The tip is to add this to your web.xml: context-param param-namejavax.servlet.jsp.jstl.fmt.timeZone/param-name

Re: [appengine-java] Is there an equivalent of Python GeoModel project in Java?

2010-02-08 Thread Ikai L (Google)
Looks like someone ported the Python code to Java for GeoHash: http://stackoverflow.com/questions/2060219/google-app-engine-geohashing Also seems like a pretty good explanation of GeoHashing in general. On Thu, Feb 4, 2010 at 10:16 AM, mianor lefebvre.rom...@gmail.com wrote: Hi, I am trying

Re: [appengine-java] Where to report server down time?

2010-02-08 Thread Ikai L (Google)
What does the server log report at this time? Can you post a stack trace? On Fri, Feb 5, 2010 at 6:20 AM, Bob F robertfolke...@gmail.com wrote: I tried to open http://folkertsfotografie.appspot.com and recieved Error: Server Error The server encountered an error and could not complete your

Re: [appengine-java] Getting the client's timezone

2010-02-08 Thread Ikai L (Google)
This can be done with JavaScript: http://stackoverflow.com/questions/768007/how-to-detect-user-time-zone-in-sign-up-forms This is basically what your link describes. It's not an issue with Java but with HTTP in general. This doesn't solve the case of a traveling user if they don't set their

[appengine-java] Owned One-to-Many Relationships - query/filter on the associated/child object?

2010-02-08 Thread ChrisDane
Hi there, How would you query/filter on ContactInfo when you have the Employee. Or better sample if it was Box and a Items, where you only want the yellow items. From: http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned%5FRelationships ### Employee.java import

[appengine-java] Re: Localization parameters

2010-02-08 Thread asianCoolz
may i know does by setting param- namejavax.servlet.jsp.jstl.fmt.timeZone/param-name makes the logs to show timezone we want? or that parameter is only used for jsp-jstl ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

Re: [appengine-java] Seeing owned/child entities in the datastore viewer

2010-02-08 Thread Daniel Benamy
Thanks for the reply! http://code.google.com/p/googleappengine/issues/detail?id=2745 Dan On Mon, Feb 8, 2010 at 2:48 PM, Ikai L (Google) ika...@google.com wrote: Sounds like a pretty cool feature. Go ahead and add it to our feature request list:

[appengine-java] Re: jython / modjy FileOutputStream exception

2010-02-08 Thread Riley
Thanks for your response. I'm using jython 2.5.1 downloaded from jython.org, and using the demo modjy app provided with jython. I'm not modifying it in any way. I can't find any other reports of this problem anywhere on the net - mystifying! Unfortunately I don't have another dev environment

[appengine-java] HardDeadlineExceededError with JRuby. Runtime changed??

2010-02-08 Thread takeru sasaki
Hi! May be GAE Runtime is updated to 1.3.1. In my JRuby app, spin up time was longer than before update. I see many HardDeadlineExceededError. Whats happen?? takeru -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this

Re: [appengine-java] Getting Started : Eclipse, GWT, App Engine - Unable to resolve

2010-02-08 Thread John Patterson
GWT needs the source code to compile its JavaScript so you cannot use closed source classes like those from App Engine. In these cases you must make a client side transfer object com.mycompany.project.ClientUser and transfer the properties you want to pass to the client. This is normally

Re: [appengine-java] Getting Started : Eclipse, GWT, App Engine - Unable to resolve

2010-02-08 Thread Jeff Schnitzer
If you add Objectify (http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT) to your project, you will be able to use the datastore basic types (Email, Link, GeoPt, etc) in GWT without any extra effort. This works even if you don't use the Objectify persistence system. Jeff On Mon,