[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
E.  There is a lot of good information about > these properties in this > thread:http://groups.google.com/group/google-appengine/browse_thread/thread/... > > But in short, sequences are guaranteed to be unique but not monotically > increasing. > > Hope this helps, > Max

[appengine-java] Re: IdGeneratorStrategy.SEQUENCE

2009-12-21 Thread Philip Tucker
6 pm, "Max Ross (Google)" wrote: > Where are you reading the definition of the contract? > > > > On Mon, Dec 21, 2009 at 2:41 PM, Philip Tucker wrote: > > Thanks! > > > Unless I'm misreading the documentation for SEQUENCE, that breaks the > > contr

[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] 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] 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] 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] 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] 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 re

[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] 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] 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] 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] 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] 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] 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] 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: 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] 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-29 Thread Philip Tucker
> > property. In a relational database, when an index is not present, the > > > database will do a full table scan. > > > > A fetch by Key is always fast. Have you considered storing multiple games > > > inside a single Game instance? Or simply storing the data you need

[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: 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] 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] 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] __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] 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] "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