[appengine-java] task queues and retries

2010-07-18 Thread Philip Tucker
One of my tasks encountered a failure and wasn't retried. I think it's because the servlet returned a 200 response, but I don't know why it did since the exception bubbled all the way up to the base servlet. Do we need to explicitly return a 5xx error code in exception cases for retries to work?

[appengine-java] __unapplied_write__?

2010-06-10 Thread Philip Tucker
I'm seeing some entities in my data store named __unapplied_write__entity. I couldn't find any documentation on this. What is it? -- 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] indexes and Eclipse plugin

2010-06-07 Thread Philip Tucker
I'm getting some very confusing behavior regarding indexes in my app. Maybe someone can help me figure out what's going on. I have a persistent entity, GameDataV1. I'd pushed several versions of my app to appspot with no issues until last week. Then, after a push, all indexes for GameDataV1 were

[appengine-java] dashboard history

2010-06-03 Thread Philip Tucker
is it possible to see history beyond 18 hours in the dashboard? or at least to export data periodically so I can analyze longer trends? -- 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: JSP code debug: Compiled JSP location in local environment

2010-06-02 Thread Philip Tucker
FYI, on a Mac I found it in /var/folders/zz/zzzivhrRnAmviuee++-ZXU+ +NMs/-Tmp-/Jetty_127_0_0_1__war.g0qk00/jsp/org/apache/jsp -- 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] error message

2010-06-01 Thread Philip Tucker
a more descriptive error message would help here. I think the real issue is the class/type of the parameter. org.datanucleus.exceptions.NucleusUserException: Query requires 1 parameters, yet 1 values have been provided. at

[appengine-java] send mail failing

2010-05-29 Thread Philip Tucker
I've been seeing a handful of these each day on my app. These are very small messages going only to 1 recipient. I could move mail sending out of the normal request flow (I think cron jobs are the only option right now for background processing, yes?) - is that the recommended remedy?

[appengine-java] Re: slow responses for query

2010-05-29 Thread Philip Tucker
with storing PlayerGameStates inside User. You'd do this: - Get user by key That's it! This is really fast, so you don't have to go through doing an unnecessary query - you just pay your cost at write time, possibly asynchronously. On Tue, May 4, 2010 at 12:14 PM, Philip Tucker ptuc...@gmail.com

[appengine-java] Re: indexes

2010-05-04 Thread Philip Tucker
being applied to existing stuff. On Apr 30, 12:54 am, Philip Tucker ptuc...@gmail.com wrote: According to this, The App Engine datastore maintains an index for every query an application intends to make. http://code.google.com/appengine/docs/java/datastore/queriesandindexe... Does

[appengine-java] Re: slow responses for query

2010-05-04 Thread Philip Tucker
On May 4, 3:28 am, Ikai L (Google) ika...@google.com wrote: Query performance is generally a function of how many objects have to be returned in the simple case, which seems to be what you are doing here. How many PlayerGameStates exist per User? No more than 10 so far. Like I said, it was

[appengine-java] slow responses for query

2010-04-30 Thread Philip Tucker
I've got a Game object that includes two PlayerGameState objects. Both are persistence-capable. My query fetches all PlayerGameState objects for a particular user, then I get the associated game and other player. The initial fetch is always fast, and the entire operation is generally lass than a

[appengine-java] indexes

2010-04-29 Thread Philip Tucker
According to this, The App Engine datastore maintains an index for every query an application intends to make. http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Introducing_Indexes Does GAE just scan the app Java code for Query.setFilter, or do we need to do annotate

[appengine-java] cc sender

2010-04-27 Thread Philip Tucker
Is it possible to send an email via Transport.send without it sending a CC: to the FROM: address? -- 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

[appengine-java] Re: including data file in JAR

2010-04-20 Thread Philip Tucker
-files Vaclav On Apr 18, 4:00 am, Philip Tucker ptuc...@gmail.com wrote: I have a data file I need to access on the server. If I include it in my source path on the client I can load it via ClassLoader.getSystemResourceAsStream. But this breaks on the server (I'm not sure if the eclipse

[appengine-java] including data file in JAR

2010-04-17 Thread Philip Tucker
I have a data file I need to access on the server. If I include it in my source path on the client I can load it via ClassLoader.getSystemResourceAsStream. But this breaks on the server (I'm not sure if the eclipse plugin is even deploying it). What's the best way to do this? I don't want to incur

[appengine-java] User.nickName

2010-04-16 Thread Philip Tucker
When I access the nickName field of the userService.getCurrentUser() object, I don't get the nickName from Google profiles. For example, if I go to http://www.google.com/profiles/me/editprofile for my account (ptuc...@gmail.com) my nickName is Philip, but in AppEngine I get ptucker. -- You

[appengine-java] Re: error removing from a list

2010-03-16 Thread Philip Tucker
. TRy to add a index's description. bye On 15 mar, 07:59, Philip Tucker ptuc...@gmail.com wrote: I have a Room class containing a list of Presence classes. Here are the annotations. @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Room {   private final static

[appengine-java] requestDispatcher vs resp.getWriter

2010-03-15 Thread Philip Tucker
I have a servlet that returns a JSON string. For some reason it works fine when I dispatch to a JSP, but sometimes fails when I write directly to the response. this works: req.setAttribute(json, json.toJSONString()); req.getRequestDispatcher(json.jsp).forward(req, resp);

[appengine-java] Re: can not remove with @Order annotation

2010-03-15 Thread Philip Tucker
) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:442) On Mar 14, 10:02 pm, Max Ross (Google) maxr+appeng...@google.com wrote: Please post your model object definitions and the stack trace. Thanks! Max On Sun, Mar 14, 2010 at 8:51 PM, Philip Tucker ptuc...@gmail.com wrote: If I annotate

[appengine-java] can not remove with @Order annotation

2010-03-14 Thread Philip Tucker
If I annotate a dependent 1:many relationship with @Order(mappedBy = foo), I get a NPE when I try to remove something from the list. When I remove the annotation everything works fine. Is this a known limitation? If not I can post a stack trace and more details. -- You received this message

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

2010-02-05 Thread Philip
This sounds like a good plan and I look forward to testing the new plug-in. - Philip On Feb 4, 2:52 pm, Keith Platfoot kplatf...@google.com wrote: Hey all, Many of you have reported incompatibilities between the Google Plugin for Eclipse and other build systems/project structures, most

[appengine-java] Any examples for low level datastore? or suggest another way?

2010-01-14 Thread philip
Hi All, I want to use the low level datastore, I looked at the documentation and it looks ... complex. http://code.google.com/intl/zh-HK/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html Basically, I have a client program which needs to create tables and their

[appengine-java] IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
I'm using IdGeneratorStrategy.SEQUENCE for the primary key of a table, but it appears AppEngine bounces between 2 different sequence generators as I create new entries. IDs are unique, but not monotonically increasing. It's possible I've coded something wrong, but I'm oretty sure this is a bug.

[appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
+appeng...@google.com wrote: Hi Philip, IdGeneratorStrategy.SEQUENCE support is implemented on top of DatastoreService.allocateIds(), which is itself the mechanism that the datastore uses internally to assign ids.  So, all properties of datastore id allocation apply to SEQUENCE.  There is a lot

[appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
/ SequenceExamplesJDO.java), it seems if I specify a named sequence and set SequenceStrategy.CONTIGUOUS (NONCONTIGUOUS might work too, I'm guessing !TRANSACTIONAL is the key) that I get a monotonically increasing sequence. Does that seem right? Thanks for the input, Philip On Dec 21, 2:46 pm, Max Ross

[appengine-java] Re: What does precompilation-enabledtrue/precompilation-enabled do?

2009-12-14 Thread Philip
(DeployProjectJob.java:148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Am I missing something? - Philip On Dec 7, 6:18 pm, Ikai L (Google) ika...@google.com wrote: Yes