Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Yasuo Higa
Hi John, > > If you want to be able to query on the embedded instances then you will need > to use one of the datastore specific persistence interfaces: ObjectDatastore > from Twig and Objectify support this... not sure if others support embedded > collections. > Slim3 supports embedded collections

[appengine-java] Re: ANN: Firefox add-on for tracking GAE estimated cost

2010-04-07 Thread Trung
Great!!! On Apr 7, 5:00 pm, radomir wrote: > Hi, > > I made a Firefox extension that collects estimated cost from App > Engine response headers and shows the total in the Firefox status bar. > If anyone's interested, the add-on can be downloaded > from:http://radomirml.com/2010/04/06/track-appe

[appengine-java] Re: java.lang.VerifyError

2010-04-07 Thread Shyam Visamsetty
Hi Karthik, Thanks a lot. It worked for me. Regards, Shyam. On Apr 5, 2:10 pm, KarthikR wrote: > Hi > > The issue has the following suggested workaround: > > --- start > Comment 14 by neiltolson, Mar 30 (5 days ago) Just like mgo1977 said > above, start the app in a Deferred

[appengine-java] Re: Adding Task-Queue Tasks in Batch?

2010-04-07 Thread Seth Ladd
Thanks! If under a transaction, are tasks added via batch still constrained to 5 per txn? On Apr 6, 11:53 am, Keith wrote: > Fromhttp://code.google.com/appengine/docs/java/javadoc/com/google/appengi... > > add(java.lang.Iterable taskOptions) >           Submits tasks to this queue. > > On Apr 6

[appengine-java] Re: having trouble implementing gwt in existing gae app

2010-04-07 Thread zackmac
Anybody have any thoughts on what I could be missing? On Apr 5, 9:24 pm, zackmac wrote: > I'm using Eclipse 3.4.1, GAE 1.3.1 and trying to use GWT 2.0.3.  I've > been working on my GAE app some time and that's working well - just > want to spice up the front-end a little.  I added a new GWT modul

[appengine-java] Re: Server Error A server error has occurred. - Whilst Deleting app version.

2010-04-07 Thread Eurig Jones
mailmymove - version 1 http://www.mailmymove.com On Apr 5, 9:51 pm, "Ikai L (Google)" wrote: > What's your application ID and the version you are trying to delete? > > > > On Mon, Apr 5, 2010 at 11:20 AM, Eurig Jones wrote: > > Hi, > > > I'm getting a... > > > Server Error > > > A server error

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Jeff Schnitzer
You can serialize object graphs, but keep in mind that you won't be able to index/query this data and it will be opaque to the datastore viewer. It will also be opaque to GAE/Python tools. As John mentioned, you can get embedded object collections without Java serialization if you use Objectify o

Re: [appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread Matt Hall
Ah, that's interesting. From what I could tell via appstats during my requests, in my 1-N relationship the L2 cache was only caching the individual objects, not the entire collection. So, two accesses of the same collection in two subsequent requests would require a round trip to the memcache for e

[appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread datanucleus
> I think if I were to do it all over again I'd either embed the items right > in the order, or not use JDO at all and try to do some more manual caching > and batch loading. A lot of time was spent learning how JDO was loading the > items collection and then trying to get JDO to cache that collect

[appengine-java] Re: com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The API call mail.Send() took too long to respond and was cancelled.

2010-04-07 Thread Tristan
I guess this covers the question http://groups.google.com/group/google-appengine/browse_thread/thread/189eecd6021b1bb4/ed1025f01b47e101 On Apr 7, 12:37 pm, Tristan wrote: > Hi, > > I get that ApiDeadlineExceededException happens sometimes, no problem > (I am not exceeding 30s, exception happens

Re: [appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-07 Thread Matt Hall
I'd say the average number of line items is around 100. So, the slowest request (but also the most common) is to show the 5 most recent items from all recent user orders. In JDO, I was doing that via a query for the orders, then a order.getItems() for each, then iterating in reverse for a few order

[appengine-java] Delay between Load Request and Filter Init

2010-04-07 Thread Jake
Hello, I'm currently using the Wicket Framework which is simply a javax.servlet.Filter. I have a quick little logging statement in the init() method of the filter which, I believe, is the absolute first thing that should run on a loading request. I've been working hard to minimize the startup ti

[appengine-java] AppstatsServlet not working in 1.3.2, redirects to /stats

2010-04-07 Thread Viðar Svansson
Hi, I am trying out the now profiling stats in appengine using AppstatsServlet and AppstatsFilter. The filter seems to work just fine but the servlets mapped at /appstats/* just redirects to /stats. If I try to map it to /stats then it gets stuck in an infinite redirection loop. Also, what does an

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Tristan
i work with low-level datastore api, so i serialize things myself, but essentially yes. The issue you're probably running into is that the thing that you're using to interact with the datastore, does not know how to store EmbeddedChild. I would start there. from low-level datastore api point of vi

Re: [appengine-java] Re: Using app's ELResolver class

2010-04-07 Thread Joel Weight
I ran into this a few months ago when first getting jsf 2 going. Unfortunately I didn't find a resolution and wound up on the old EL version, so if you figure something out, please let us know. Thanks, Joel On Wed, Apr 7, 2010 at 5:10 AM, alesj wrote: > While this finds the right jar > >

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread tempy
Well, what I need is something like this: @PersistenceCapable(detachable = "true") public class Parent { @PersistenceCapable @EmbeddedOnly public class EmbeddedChild {...} @Embedded private List Children; ... } This doesn't work, so... Do I understand yo

Re: [appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread John Patterson
On 8 Apr 2010, at 00:40, Tristan wrote: what do you mean by "store a list of embedded objects"? if you're storing in the datastore, you have to have a way to serialize whatever you got into one of the supported storable types. If you want to be able to query on the embedded instances then you

[appengine-java] Re: Is it possible to have collections of embedded objects?

2010-04-07 Thread Tristan
what do you mean by "store a list of embedded objects"? if you're storing in the datastore, you have to have a way to serialize whatever you got into one of the supported storable types. On Apr 7, 11:04 am, tempy wrote: > I have been dealing with lots of varying exceptions trying to > implement/

[appengine-java] com.google.apphosting.api.ApiProxy$ApiDeadlineExceededException: The API call mail.Send() took too long to respond and was cancelled.

2010-04-07 Thread Tristan
Hi, I get that ApiDeadlineExceededException happens sometimes, no problem (I am not exceeding 30s, exception happens after 6 seconds). The question I have is: When I use com.google.appengine.api.mail.MailService.send() and I receive the exception com.google.apphosting.api.ApiProxy $ApiDeadlineExc

[appengine-java] Re: List of sub entities does not obay list order

2010-04-07 Thread Gunnar
Hi, Here are code for the entities MyEntity and SubEntity. Is anything wrong with the code? /Gunnar package appengine.test; import java.io.Serializable; import java.util.ArrayList; import javax.jdo.annotations.Element; import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGenera

[appengine-java] Is it possible to have collections of embedded objects?

2010-04-07 Thread tempy
I have been dealing with lots of varying exceptions trying to implement/store a list of embedded objects. I found one post on this group claiming that this isn't supported (but the claim didn't come from someone at Google), and I saw no mention of lists of embedded objects in the google docs... So

[appengine-java] Re: A catch-all servlet?

2010-04-07 Thread Mark
John, thanks so much, this works. I added this as the filter: forwardFilter com.markww.usermaps.server.ForwardFilter target UserMaps.jsp forwardFilter /* test is working here: http://usermaps.appspot.com/ just forwards all urls like: http:

[appengine-java] Re: Java Mail Service

2010-04-07 Thread moissinac
A trace on the code shows me that the line in the previous code > ms.sendToAdmins(msg); fails So, my hypothesis is that a prerequisite is not fulfilled In the code, I use the Low Level API, which doesn't need a specific configuration (I believe it) In the log, I see 2585cpu_ms with a w

[appengine-java] Re: Java Mail Service

2010-04-07 Thread moissinac
Tried the following code MailService ms = MailServiceFactory.getMailService(); MailService.Message msg = new MailService.Message(); msg.setSubject("Tu as réussi cette étape"); ms.sendToAdmins(msg); without more result. The code is executed i

[appengine-java] Re: Using app's ELResolver class

2010-04-07 Thread alesj
While this finds the right jar URL url = cl.getResource("META-INF/maven/javax.el/el-api/ pom.properties"); String info = url.toExternalForm(); System.out.println("info = " + info); // jar:file:/foobar/projects/foobar/trunk/server/target/ foobar-server-0.0.1-SNAP

[appengine-java] Using app's ELResolver class

2010-04-07 Thread alesj
I'm trying to use new EL api - version 2.2. - which knows how to deal with parameterized invocations; e.g. #{FooBarDAO.getInfos('alesj')}. Hence I'm bundling this new EL jars with my app. At runtime I get this java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ ELContext;Ljava/lang

[appengine-java] ANN: Firefox add-on for tracking GAE estimated cost

2010-04-07 Thread radomir
Hi, I made a Firefox extension that collects estimated cost from App Engine response headers and shows the total in the Firefox status bar. If anyone's interested, the add-on can be downloaded from: http://radomirml.com/2010/04/06/track-appengine-estimated-cost-with-firefox-add-on Radomir -- Yo

[appengine-java] java.awt.Color is a restricted class

2010-04-07 Thread CodeMan
Hi, I am using JSF2.0 on AppEngine. I get the error below when I try to use a colorpicker utility. Is there a work around this error? Cheers CHINUA WARNING: /pages/addtemp.faces java.lang.NoClassDefFoundError: java.awt.Color is a restricted class. Please see the Google App Engine developer's gu