Re: [appengine-java] How to query objects with criterias defined in child entities

2010-03-10 Thread Jeff Schnitzer
On Tue, Mar 9, 2010 at 8:47 PM, John Patterson jdpatter...@gmail.com wrote: For the sake of comparison, see below for the Twig equivalent class UserSkill {       �...@parent User user;        String skill        int ability; } Note that no key is required and user is referenced directly

[appengine-java] 5 warmups required before success

2010-03-10 Thread Jorge
This is silly, but yesterday night it worked! My app runs a cron job everyday at 2am my time (8:00 GMT). Often the job fails because of a timeout. You know, those timeouts one gets because the virtual server won't start. Then I tried this silly solution. I run 5 dummy jobs 5, 4, 3, 2 and 1

[appengine-java] Re: Extending GAE's Jetty config

2010-03-10 Thread alesj
OK, filled this here: * http://code.google.com/p/googleappengine/issues/detail?id=2943 On Mar 9, 8:21 pm, Don Schwarz schwa...@google.com wrote: No, at the moment we specifically disable jetty-web.xml for security purposes.  Feel free to file a feature request in our issue tracker asking us to

[appengine-java] Re: serialization doubt...

2010-03-10 Thread Prashant Gupta
anyone...? -- 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: 5 warmups required before success

2010-03-10 Thread Nacho Coloma
Actually this is the one and single thing that makes my GAE experience kind of bittersweet. I am still recommending the platform to friends and colleagues, but mentioning the cold start problem up front. Setting this feature/bug to high priority would be most welcome. I think this is the most

[appengine-java] Why I encountered this error : The class java.lang.String is not persistable.

2010-03-10 Thread Jolam
I have defined a class : import javax.jdo.annotations.IdentityType; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @SuppressWarnings(serial) @PersistenceCapable(identityType = IdentityType.APPLICATION,

Re: [appengine-java] How to query objects with criterias defined in child entities

2010-03-10 Thread John Patterson
Hi Jeff, some of your concerns would have been valid with the pre- release versions but not with the final release 1.0 of Twig. See below for explanations On 10 Mar 2010, at 16:14, Jeff Schnitzer wrote: On Tue, Mar 9, 2010 at 8:47 PM, John Patterson jdpatter...@gmail.com wrote: For the

[appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
Hi, I have designed my app to keep data (within servlet env.) for all previous requests. For each request it will first search the data in servlet env. store, if it doesn't find the data here it will fetch data from datastore and append the same to servlet env. store. So, if the same servlet

[appengine-java] Anyone a working example how to build a Java app running on App Engine integrated with Apps Marketplace?

2010-03-10 Thread dflorey
Most interesting: - How to deploy the app? Restrict to a target domain or not? - How to integrate Step2 to retrieve user information - How to use 2-legged OAuth in conjunction with Step2/App Marketplace Any ideas? -- You received this message because you are subscribed to the Google Groups

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Stephan Hartmann
You should use memcache instead of your servlet env. The memcache service will evict values if you run out of memory. 2010/3/10 Prashant Gupta nextprash...@gmail.com Hi, I have designed my app to keep data (within servlet env.) for all previous requests. For each request it will first

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
yes, you are right. But, in my case, suppose each request requires 100 entities to be fetched and for any two requests say 90-95 entities are common. So, if I use only memcache for caching, 100 memcache fetch will be required per request. Or, if I keep the data in servlet env. for each req., 10-0

[appengine-java] @Google: Are you working on UserService running with OpenId?

2010-03-10 Thread dflorey
If yes, I can sit down and wait. If not, I have to keep on my fight with getting Step2 running on App Engine... -- 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

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Prashant Gupta
Thanks Don for clarification. 100MB seems sufficient for me. Please suggest me a library for LRU caching implementation. -- 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] Discussie op will-it-play-in-app-engine

2010-03-10 Thread Cyberrat
Primefaces (combined with JSF2.0) is also working here -- 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] Help with modeling JDO persistent classes

2010-03-10 Thread kattus
Hi, I have 2 persistent classes: 1. class A that has a primary key (Long) and a property called name (String). 2. class B that is referencing class A (one to many relationship, each B has one A, but A can belong to many B's) I need to retrieve the B's sorted by the name property of A. In other

[appengine-java] Reporting on GAE in Java

2010-03-10 Thread David
Hi all, I'm in the process of porting a small java webapp to GAE and I've encountered an issue around my use of JasperReports. I've solved (I think) the original issue I had of how to get the data into the report by passing a collection of JavaBeans rather than a JDBC connection. However I'm

[appengine-java] Where can i specify my log file name in Google Web App ?

2010-03-10 Thread Mallikarjun Kokatanur
Hi All, Can you tell me where can specify my log file in my new Google Web App. Is it Log4j.properties file or logging.properties file? and also tell me how can i make to work? Thanks in advance. - MallikarjunBK -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: news on remote_api for java ?

2010-03-10 Thread Steve Osborne
I too would like to be able to use Java to upload data to the datastore, either from a file or from a jdbc connection. Any development on providing us with some sample code for the RemoteApiServlet while creating the docs? On Feb 24, 7:37 pm, Ikai L (Google) ika...@google.com wrote: You should

[appengine-java] Re: 5 warmups required before success

2010-03-10 Thread Jorge
Hi Nacho, I agree with you. GAE is great in many aspects. The cold-start/timeout issue is probably my only concern, too. But the sad thing is that is an absolute killer. Slow response times are a bad thing, but aborting cron jobs because of virtual server start issues is unacceptable, at least in

[appengine-java] Not able to write string arrays in data store

2010-03-10 Thread Ganesh
Hi, I am trying to store two dimensional string array in google data store. I was getting an exception saying this data type not supported. I tried changing the string array object to java.util.arraylist (gave serizable = 'true' option). This time I was able to write the data successfully. But

[appengine-java] Re: 5 warmups required before success

2010-03-10 Thread Jorge
Hi Nacho, I agree with you. GAE is great in many aspects. The cold-start/timeout issue is probably my only concern, too. But the sad thing is that is an absolute killer. Slow response times are a bad thing, but exceptions in the cron jobs because of virtual server start issues is unacceptable, at

[appengine-java] Any plans for an apps marketplace for consumers, not business?

2010-03-10 Thread tempy
My question says it all. I would love to leverage the centralized structure of the marketplace and the enhanced user trust that it brings with my app, but what I am working on is targeted at general consumers, not the enterprise sector... Why not make something like the marketplace for the

[appengine-java] Do I need unowned relationships to accomplish this...?

2010-03-10 Thread tempy
I have the following datastructure: Users are the root entities, and each user can have one or more decks, and each deck can have one or more cards. When a user wants to add a deck, I would like to be able to add the deck to the user's collection of decks without first fetching all of the user's

[appengine-java] Re: 5 warmups required before success

2010-03-10 Thread Locke
I tell people to give appengine a try if they're using Python, but that Java support isn't mature enough yet (for exactly this reason). I also get the impression that Java start up times are getting slower, or at least more varied; though I haven't been keeping stats over time. I'm sure google

[appengine-java] datastore latency

2010-03-10 Thread Locke
The datastore latency graph is still broken (URI too long for Google Charts): http://code.google.com/status/appengine/detail/datastore/2010/03/10#ae-trust-detail-datastore-query-latency In the periods when it works, it reports query latencies sometimes over one second. The graph is usually

[appengine-java] Re: Do I need unowned relationships to accomplish this...?

2010-03-10 Thread WillSpecht
The way I understand it, if an object can be owned by more than one object it must be unowned. I would assume that cards can be in multiple decks so they must be unowned. I would assume each deck would belong to one user so decks could be owned. I don't know a good way to store cards that can

Re: [appengine-java] Stripes + FreeMarker throwing exception on GAE

2010-03-10 Thread Toby Reyelts
Can you send me your application id, please? On Tue, Mar 9, 2010 at 10:48 AM, rmurta rmu...@gmail.com wrote: My application uses Stripes and Freemarker. I am already using the freemarker jar version build to gae. Application is working fine in the test GAE Server in my local but when I

Re: [appengine-java] How to query objects with criterias defined in child entities

2010-03-10 Thread Jeff Schnitzer
On Wed, Mar 10, 2010 at 6:14 AM, John Patterson jdpatter...@gmail.com wrote: No that is incorrect.  You actually have very fine control over what is loaded and when using activation [1] Ah, this Activation annotation does help out. But it still leaves edge cases (read on). I also don't think

[appengine-java] Re: Why I encountered this error : The class java.lang.String is not persistable.

2010-03-10 Thread Ian Marshall
Instead of @PrimaryKey private String key; have you tried @PrimaryKey @Persistent private String key; ? Since I use keys as encoded strings (instead of unencoded string keys), I personally use @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

Re: [appengine-java] what if I hit memory limit ?

2010-03-10 Thread Don Schwarz
To pick one at random: http://commons.apache.org/collections/apidocs/org/apache/commons/collections/map/LRUMap.html On Wed, Mar 10, 2010 at 11:08 AM, Prashant Gupta nextprash...@gmail.comwrote: Thanks Don for clarification. 100MB seems sufficient for me. Please suggest me a library for LRU

[appengine-java] Re: Where can i specify my log file name in Google Web App ?

2010-03-10 Thread Ian Marshall
I use both files, located in: war\WEB-INF\classes\log4j.properties war\WEB-INF\classes\logging.properties In my appengine-web.xml file, I have the following extract for you: ?xml version=1.0 encoding=UTF-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0;

[appengine-java] How exactly do the App Engine Logs work?

2010-03-10 Thread Spines
Where does Google store the logs when you do a Logging statement? Logging statements seem to be pretty fast, so it doesn't seem like they are stored in the datastore. How reliable are the logs? If I do a logging statement and it succeeds, is it pretty much guaranteed that it will show up in the

[appengine-java] Re: Do I need unowned relationships to accomplish this...?

2010-03-10 Thread tempy
Actually cards can only be owned by one deck... so that's not a problem. Deck--1...0toN--card. The thing that I am looking for is a way to add new cards without loading a deck's entire card collection, and to add decks without loading a User's entire deck collection. On Mar 10, 9:15 pm,

[appengine-java] Got a problem index when quering data with key.

2010-03-10 Thread thierry Le conniat
Hello, I Got a problem when quering data with the key fileName . The error is below : com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Picture ancestor=false source=manual property name=__key__ direction=desc/

[appengine-java] Re: How exactly do the App Engine Logs work?

2010-03-10 Thread thierry Le conniat
Hello, I think google log are stored in file. My experience about log reliability is that when the app is very strong working, not all the log are stored. It's confusing, but i can't not explain it. Bye On 10 mar, 22:04, Spines kwste...@gmail.com wrote: Where does Google store the logs when you

Re: [appengine-java] Re: How exactly do the App Engine Logs work?

2010-03-10 Thread Don Schwarz
Are you talking about request logs or diagnostic logs? Although we conflate them a bit in both the Admin Console viewer and the appcfg command, but they are stored and tracked separately. On Wed, Mar 10, 2010 at 4:01 PM, Spines kwste...@gmail.com wrote: Hmm, that is my biggest concern, log

[appengine-java] Re: Sporadic problems with very high response times

2010-03-10 Thread James
Like many, I'm anxious to learn more. I just deployed my first app today and while the load is light (just me), it's a giant usability issue to have to wait 6s for spinup if (god forbid) I stop to read a page for more than 60s or so. I'm not using any frameworks, so this is just VM and JDO

[appengine-java] Re: Do I need unowned relationships to accomplish this...?

2010-03-10 Thread tempy
Exactly, CardList is potentially very large and I want to avoid having to load it just to add the cardreference. On Mar 10, 10:43 pm, WillSpecht willspe...@gmail.com wrote: So if you have a reference to a new card and do cardList.add(cardRefference) all you are loading into memory is the

[appengine-java] Re: Cannot get my basic Struts2 application to work

2010-03-10 Thread Deepam Tiwan
I am able to get it to work. Followed the same tutorial on Pages section of this forum. Here is what I had to modify 1. Set devMode to False. 2. add an applicationlistener with set OgnlRunTime.setSecurityManager to null. Deepam On Mar 7, 2:52 pm, Deepam Tiwan deepamti...@gmail.com wrote: Hi

[appengine-java] Re: Why I encountered this error : The class java.lang.String is not persistable.

2010-03-10 Thread Jolam
I have found why i'm wrong...finally... On Mar 11, 1:06 pm, Jolam j.jo...@gmail.com wrote: to Ian Marshall: I have changed the class to two form as u mentioned, but it did't work... -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: Why I encountered this error : The class java.lang.String is not persistable.

2010-03-10 Thread datanucleus
Instead of   @PrimaryKey   private String key; have you tried   @PrimaryKey   @Persistent   private String key; A String field/method doesn't even need @Persistent. All basic types are by default persistent, as per the JDO spec (unlike in the GAE/J docs). -- You received this message