[appengine-java] "built-in indices are not efficient enough for this query and your data"

2010-08-07 Thread Philip Tucker
I've just started getting the following error on my server. This query had been working fine for months, and I haven't changed the indexes lately. Are there some indexes that just buckle under heavy load or larger data sets? This particular table contains only 242,604 entries. The built-in indic

[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? 0

[appengine-java] __unapplied_write__?

2010-06-10 Thread Philip Tucker
I'm seeing some entities in my data store named __unapplied_write__. 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 google-appengine-j...@

[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 g

[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 google-app

[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 google-appen

[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 org.datanucleus.store.query.Query.getParameterMapForValues(Query.ja

[appengine-java] Re: slow responses for query

2010-05-29 Thread Philip Tucker
gt; getting out of sync can suck, but as long as it is recoverable you should be > okay. Contrast the performance of the query above with storing > PlayerGameStates inside User. You'd do this: > > - Get user by key > > That's it! This is really fast, so you don't hav

[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? com.honkentu

[appengine-java] Re: slow responses for query

2010-05-04 Thread Philip Tucker
On May 4, 3:28 am, "Ikai L (Google)" 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 only 5 in this c

[appengine-java] Re: slow responses for query

2010-05-04 Thread Philip Tucker
g? And have > you tried looking at what's happening via AppStats yet > (http://code.google.com/appengine/docs/java/tools/appstats.html)? > > > > > > On Fri, Apr 30, 2010 at 1:54 AM, Philip Tucker wrote: > > I've got a Game object that includes two PlayerGame

[appengine-java] Re: indexes

2010-05-04 Thread Philip Tucker
new > index it is "building", it's being applied to existing stuff. > > On Apr 30, 12:54 am, Philip Tucker wrote: > > > > > > > According to this, "The App Engine datastore maintains an index for > > every query an application intends to make.

[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 se

[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 q

[appengine-java] DB errors

2010-04-28 Thread Philip Tucker
I'm getting several of these errors on my server today. com.honkentuber.wordwise.GameServlet newJsonResponse: exception com.google.apphosting.api.ApiProxy$CapabilityDisabledException: The API call datastore_v3.Put() is temporarily unavailable. at com.google.apphosting.runtime.ApiProxyImpl

[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 unsub

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

2010-04-20 Thread Philip Tucker
vletContext ctx = getServletContext(); >     InputStream is = ctx.getResourceAsStream( resourceName ); > > Do not forget to declare the data file as the resource file in > appengine-web.xml > (if it is located outside of the WEB-INF directory): > >   > > > Vaclav > > On Apr 18,

[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 &quo

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

2010-03-15 Thread Philip Tucker
nce. > TRy to add a index's description. > > bye > > On 15 mar, 07:59, Philip Tucker wrote: > > > > > I have a Room class containing a list of Presence classes. Here are > > the annotations. > > > @PersistenceCapable(identityType = IdentityType.APPLI

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

2010-03-15 Thread Philip Tucker
nt.run(SelectChannelEndPoint.java: 396) at org.mortbay.thread.BoundedThreadPool $PoolThread.run(BoundedThreadPool.java:442) On Mar 14, 10:02 pm, "Max Ross (Google)" wrote: > Please post your model object definitions and the stack trace. > > Thanks! > Max > > > > On Sun, Mar 14, 2010

[appengine-java] error removing from a list

2010-03-15 Thread Philip Tucker
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 Logger LOG = Logger.getLogger(Room.class.getName()); @PrimaryKey @Persistent(valueStrategy = IdGenerator

[appengine-java] requestDispatcher vs resp.getWriter

2010-03-14 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] 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 bec

[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 wrote: > Hey all, > > Many of you have reported incompatibilities between the Google Plugin for > Eclipse and other build systems/project structures, most notab

[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 en

[appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
cleus/test/ 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:4

[appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
Google)" 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 SEQUENC

[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: Blacklist creation error on boot

2009-12-17 Thread Philip
I am experiencing the same thing and would like to hear the best way to resolve this as well. - Philip On Dec 12, 2:47 am, Yoichi wrote: > I have the same problem, after Apple's Software Update suggested that > a new update for Java 1.6.0 is available and I have told it to updat

[appengine-java] Re: What does true do?

2009-12-14 Thread Philip
orkspace (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)"