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

2010-04-06 Thread John Patterson
You could create a filter that is mapped to "/*" and does a forward to your jsp. This one remembers the original path: public class ForwardFilter implements Filter { public static final String SERVLET_PATH = ForwardFilter.class.getName() + ".servletPath"; private String target;

[appengine-java] A catch-all servlet?

2010-04-06 Thread Mark
Hi, I'm using GWT and GAE. I want to serve my project's one and only jsp file no matter what url is entered by the user in their browser. So the web.xml file looks like this: UserMaps.jsp indexpage UserMaps.jsp indexpage /* when I run this locally, it works

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

2010-04-06 Thread Jeff Schnitzer
The most important number in my mind is the number of line items in an order. If you're seeing 20s+ queries, it must be a pretty large number. Objectify (and Twig) support queryable collections of embedded objects, so you can put all the line items in a single order object. There are some practic

Re: [appengine-java] JPA: Query contains stale data (bug or future)?

2010-04-06 Thread Ikai L (Google)
It looks like you are changing the elements of the List themselves and not the List. You'll have to mark the object as dirty: https://groups.google.com/group/google-appengine-java/browse_thread/thread/152cdafdded18611?pli=1&auth=DQAAALsysGgvSS7DADt9mTLjZVIfRcR3Ia0xnDJnZbMuAemwe776lEU-XNeYHi4XH

[appengine-java] Re: Trying a clean compile gives "The parameter is incorrect"

2010-04-06 Thread John V Denley
Thanks to the guys on the GWT forum for helping me solve this problem. It did turn out to be a classpath problem and there follows an explanation of the steps I took to discover the issue and how I solved it: To find out the classpath used: In Eclipse select Debug view by going to "Window|Open Per

Re: [appengine-java] appcfg.sh update keeping asking for email/password

2010-04-06 Thread Ikai L (Google)
Are you still having this issue? Does it give you an error trace? On Sun, Apr 4, 2010 at 1:17 PM, Bendanpa wrote: > I am very sure that I gave correct email/password. Anybody have the > same issue? > > Thanks, > Bendanpa > > -- > You received this message because you are subscribed to the Google

Re: [appengine-java] Blogger API

2010-04-06 Thread Ikai L (Google)
You'll want to read the GData docs here: http://code.google.com/apis/blogger/docs/2.0/developers_guide.html Here are the Java specific docs: http://code.google.com/apis/blogger/docs/2.0/developers_guide_java.html On Mon, Apr 5, 2010 at 3:04 AM, Jeevan wrote: > hello am developing an applicati

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

2010-04-06 Thread Steve Pritchard
Before proposing a solution, what is your expected active user base. 1000's or 1,000,000s or something in between. Steve On Apr 6, 3:50 pm, Matt Hall wrote: > Thanks for the response, could you point me to somewhere where I can > read about batched queries by key in JDO? Or do I need to go to the

Re: [appengine-java] elegant way of implementing sequence generator

2010-04-06 Thread Ikai L (Google)
Memcache data is never persisted to disk, so in the event of a Memcache server restart, you will lose all the data in Memcache. In addition, Memcache evicts items based on an LRU cache: if you don't use data for a while and space is needed, the item will be removed from your cache to allow for your

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

2010-04-06 Thread Matt Hall
Thanks for the response, could you point me to somewhere where I can read about batched queries by key in JDO? Or do I need to go to the low level API for that? I think the conclusion I'm coming to here is 1) I shouldn't have made the detail for each order as a separate object, (although this has

[appengine-java] Re: Initialize local datastore exception

2010-04-06 Thread antcasq
I know I haven't setup properly. But I don't want to do unit testing either. I would like some sample configuration file or steps in order to access the datastore outside the development server. What I have in mind is more like a batch file/operation :) Regards António Casqueiro On Apr 6, 5:00 am

[appengine-java] Re: URLFetch to localhost counts as out/inbound traffic?

2010-04-06 Thread Arny
Anyone did some testing whether it's increasing the in/outbound traffic? On Apr 5, 3:55 pm, Arny wrote: > Hi, > > are the URLFetches to localhost count as in/outbound traffic? > > Regards -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java"

Re: [appengine-java] is createFederatedLoginURL() working?

2010-04-06 Thread Viðar Svansson
Hi I just noticed createFederatedLoginURL() but could not find any documentation for it (except for JavaDoc). Is this intended for native support for Google Marketplace? Would really appreciate some documentation on this. I am trying this out in 1.3.2 but get an error, The API package 'user' or c

Re: [appengine-java] Re: Database cursor for "back" cursor?

2010-04-06 Thread Ikai L (Google)
"We get a list of Keys back and figure out keys." I just realized how confusing this is - we get a list of INDEX keys back. These don't have any value; we do all storage inside the Key. We extract the keys of the Entity from the returned Index keys and do a query. On Tue, Apr 6, 2010 at 11:42 AM,

Re: [appengine-java] Re: Database cursor for "back" cursor?

2010-04-06 Thread Ikai L (Google)
Offset doesn't fetch data - it does an index scan. Going to the 10,000th result using offset will require us to pass 10,000 results first in our index, but we won't be retrieving those objects. Here's a bit of a simplification of indexes, entities and how these queries work. As you know, Bigtable i

[appengine-java] Re: Funny behavior with memcache.increment() below zero

2010-04-06 Thread Nacho Coloma
Ok, thanks. I'm moving values to start at 10^8 instead of zero, and it seems to work fine. On Apr 6, 7:18 pm, "Ikai L (Google)" wrote: > I'm looking at the standard memcached documentation: > > http://github.com/memcached/memcached/blob/master/doc/protocol.txt > >

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

2010-04-06 Thread Gunnar
Hi, I need to have a one to many owned relationship and be able to reorder the list. The list is stored in the data store with new elements at the end although I add the sub entity first in the ArrayList. Any suggestions? This is the result from my test servlet. deleted all objects persisted enti

Re: [appengine-java] Re: JAXB Support

2010-04-06 Thread Toby Reyelts
It looks like you're bundling the latest 2.2 JAXB RI. Apparently they made a change in that release which requires access to the protected method, ClassLoader.findLoadedClass. This makes it incompatible with App Engine. If you can use the previous release (2.1.2), a built-in version of JAXB, or eve

Re: [appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Ikai L (Google)
I'm looking at the standard memcached documentation: http://github.com/memcached/memcached/blob/master/doc/protocol.txt "Note that underflow in the "decr" command is caught: if a client tries to decrease the value below 0, the n

Re: [appengine-java] How can I place JSession into cookie. Google app engine.

2010-04-06 Thread Ikai L (Google)
This seems redundant, even outside of App Engine. You wouldn't want to place a JSessionId into a cookie, since that is identified *by* a cookie. Likely what you are looking for is servlet session support. App Engine supports this, albeit with gotchas: http://code.google.com/appengine/docs/java/co

[appengine-java] changes regarding 1000-result query limit

2010-04-06 Thread AJ
hi, Does the 1000-query result limit still hold for an individual query? (I know that the use of query cursors now allows > 1000 results total to be fetched). Comments such as this: http://groups.google.com/group/google-appengine-java/browse_thread/thread/88bb6df3d8cf5f78/5a98f713e9bc665f?lnk=gst

Re: [appengine-java] Issue with google plugin for eclipse

2010-04-06 Thread Ikai L (Google)
What kind of project have you created? This looks like the issue filed here: http://code.google.com/p/googleappengine/issues/detail?id=2306 You'll have to provide more detail, though. How are you creating the project? On Tue, Apr 6,

Re: [appengine-java] uncaught exception from servlet

2010-04-06 Thread Ikai L (Google)
Can you post your project somewhere? On Mon, Apr 5, 2010 at 8:07 PM, Jeevan wrote: > Am developing an app for ma college called cloud based teaching system > and am making use of blogger data api. > > Am getting an severe error in the appengine Logs called uncaught > exception fron servlet > >

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

2010-04-06 Thread Ikai L (Google)
For speed, you'll get the most gains if you denormalize when possible - yes, the relational purists are going to riot, but you don't have many of the benefits of normalization anyway such as foreign key constraints or native joins. If that isn't an option - and I really do recommend looking into i

[appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Nacho Coloma
Hi all, I am trying to use memcache.increment to move to negative values, starting at 0. According to the javadoc[1]: "To facilitate use as an atomic countdown, incrementing by a negative value (i.e. decrementing) will not go below zero: incrementing 2 by -5 will return 0, not -3. However, due to

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

2010-04-06 Thread Keith
>From >http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/labs/taskqueue/Queue.html add(java.lang.Iterable taskOptions) Submits tasks to this queue. On Apr 6, 9:54 am, Seth Ladd wrote: > Aloha, > > The docs for the Java implementation of the Task Queue mention

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

2010-04-06 Thread Seth Ladd
Aloha, The docs for the Java implementation of the Task Queue mentions this: maximum number of tasks that can be added in a batch - 100 However, I can't find any reference to adding tasks in a batch. What does the above mean, and where can I find more information about it? I'd like to be able t

[appengine-java] Eclipse

2010-04-06 Thread 1900's
eclipse.buildId=unknown java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN Command-line arguments: -os win32 -ws win32 -arch x86 Error Tue Apr 06 14:38:47 CST 2010 Unable to update app: Failed to compile the generated JSP java fil

[appengine-java] How can I place JSession into cookie. Google app engine.

2010-04-06 Thread Alexander Rodnin
Сould you please tell me how to place the session identifier into the cookie, if  you are working with google app engine. Thanks. -- 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-appengi

[appengine-java] Issue with google plugin for eclipse

2010-04-06 Thread joradom
The plugin doesn't allow me to create a new Servlet, when calling the "create servlet" wizard the project field appears greyed and empty. I can create a class, or any file, but of course, much more things to write are needed. just curious to know if it's a normal behaviour or some bug? I'm using

[appengine-java] Re: JAXB Support

2010-04-06 Thread Brian
I've been working with the tutorial mentioned above and it runs fine in my local environment, but when I deploy to GAE JAXB is throwing the exception detailed above. I'm baffled as to why this is running locally but failing on GAE. I though the local environment was supposed to replicate the actual

Re: [appengine-java] Re: Best way to perform search on DataStore - Design Question

2010-04-06 Thread John Patterson
Yes full text search is on the road map. It can't be far away because some of the implementation has already slipped into the current release. See the protected method Query.setFullTextSearch() On 6 Apr 2010, at 16:04, Toby wrote: Hello, I am wondering if text search is actually on the o

[appengine-java] Re: Best way to perform search on DataStore - Design Question

2010-04-06 Thread Toby
Hello, I am wondering if text search is actually on the official road map and if so when it will be available. If not, would it make sense to start a google code project to do our own implementation? I am thinking of something simple and light without the need of lots of jar. I think it is quite