[appengine-java] queue task timeout

2010-02-01 Thread AJ Chen
I'm using queued tasks to fetch feeds, one feed per task. each task takes about a couple of seconds. but, the tasks get unexpected timeout easily with the following error message. any idea how task timeout happens? is it possible to control the timeout period? thanks, Feb 2, 2010 7:00:54 AM org.q

[appengine-java] Re: Spring MVC - File upload problem

2010-02-01 Thread Markus Paaso
Hi I tried it with Grails 1.2.0 and app-engine plugin 0.8.8 but got just an another error: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.fileupload.disk.DiskFileItem at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem (DiskFileItemFactory.j

[appengine-java] Struts Validator not working.,

2010-02-01 Thread sats
Am sure this is something that is known to someone in the community to tell me what am doing wrong. I have the struts validator framework defined. Appengine compiles, but when am trying to run the app in my local-host; The request dispatcher object in validator framework is comin back as a null. A

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
Oops; more stumbling. I think it's usually Commons Logging that causes problems with tomcat, and perhaps elsewhere, not log4j. slf4j is a Commons Logging alternative. Rusty Wright wrote: What I just wrote is probably confusing; I'm using slf4j with logback for logging, not log4j. You don't

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
What I just wrote is probably confusing; I'm using slf4j with logback for logging, not log4j. You don't need a logback.xml configuration file if you're using slf4j with log4j (but you will need a log4j configuration file). I prefer logback because with tomcat you can never be sure that any pro

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread Rusty Wright
I also vote for slf4j. If you need a "for example", here's my logback.xml file, which lives in the WEB-INF/classes directory: %5level: [%thread] %class.%method.%line: %message%n

Re: [appengine-java] Unsupported method while parsing expression:

2010-02-01 Thread Ikai L (Google)
It looks to me like you have the query reversed. Page contains a list of aliases, and you're looking to filter on Page entities to try to match all Page entities that have the target alias in the list. That is, say a page has the aliases "red" and "blue" - you'd want the code to return that page if

Re: [appengine-java] Log4j in production GAE

2010-02-01 Thread 杨浩
I use slf4j! use slf4j-log4j when development! use slf4j-jdk log when GAE Server!(change slf4j-log4j to slf4j-jdk-log before GAE appcfg update war) 2010/2/2 Alex > Hello, > > Has anyone tried to use Log4j in production GAE? Is it supported? > > According to Java GAE docs, only java.util.logging

[appengine-java] Re: Spring MVC - File upload problem

2010-02-01 Thread Sebastian Cartier
this works also for grails! Add the library to your lib directory and add to your applicationContext.xml For saving the image in a google blob i used the following functions: @Persistent Blob imageBlob byte [] getImage(){ if(imageBlob){

[appengine-java] Log4j in production GAE

2010-02-01 Thread Alex
Hello, Has anyone tried to use Log4j in production GAE? Is it supported? According to Java GAE docs, only java.util.logging is fully supported. See http://code.google.com/appengine/docs/java/runtime.html#Logging [...] Any logging framework (such as log4j) that logs to the output or error stream

Re: [appengine-java] change timezone of date that is already persisted

2010-02-01 Thread Ikai L (Google)
The way to do this is to create a series of tasks that update each entity one by one. The question I'd like to ask, however, is why you'd want to do this. It's typically best practice to store time information as UTC and convert as needed for display or computation due to weirdness with timezones,

[appengine-java] memcache SerializationException

2010-02-01 Thread chiappone
I have hit the wall in trying to figure out what I am doing wrong in my GAE GWT application. I am trying to use memcache to get a list of serializable objects out of the cache in a service. It seems to put them fine, and I can see them being pulled from cache in the debugger but I end up getting

Re: [appengine-java] production memcache grabTail namespace isolation broken

2010-02-01 Thread Ikai L (Google)
I'll raise the issue with some other members of the team, but it seems like this is working as expected. A memcache namespace is nothing more than a prefix applied to a memcache key. There's no true partitioning mechanism within memcache. grabTail simply returns the item that would be expired by th

[appengine-java] Re: NPE compiling a JSP

2010-02-01 Thread Nacho Coloma
For the record, one of the functions defined in the TLD was missing the function-class and function-signature, and that was causing the NPE. -- 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 googl

[appengine-java] Re: Does precompilation work ?

2010-02-01 Thread tomekc
Thanks for your reply. Unfortunately, the problem still occurs. The same error desription: 503 Service Unavailable... If precompilation is set to false then application is deployed without any problems. On Feb 1, 5:02 am, Peter Liu wrote: > In my experience deployment sometimes fail with variety

Re: [appengine-java] Secure JSP

2010-02-01 Thread Ikai L (Google)
You can do this with deployment descriptions or servlet filters. Here documentation about configuring web.xml to do this: http://code.google.com/appengine/docs/java/config/webxml.html On Sun, Jan 31, 2010 at 2:20 PM, Scott wrote: > I have 1 jsp in my app that I want to secure and make people lo

[appengine-java] NPE compiling a JSP

2010-02-01 Thread Nacho Coloma
Hi, my application deploys fine in the local environment but when trying to upload to AppEngine I get this stack trace [1] after compiling about 30 JSP files. The page with the bug is not being logged anywhere (the last one, detail.jsp, compiles OK). I had to guess based on a 'ls -U' order of fold

[appengine-java] Re: problem with Datastore quotas

2010-02-01 Thread dmakariev
Hi again, I've read the documentation. and cannot find anything related to my datastore growth :(, I'm not using indexes. It is quite simple application, demonstrating the usage of JSF 2. I'm using session, and I've included the SessionCleanupServlet in my web.xml. It is started every hour. So the

[appengine-java] How to build a java desktop client for my hosted app engine application ?

2010-02-01 Thread Guwalani Mahendra
How to build a java desktop client for my hosted app engine application ? I have tried to write a code using google client login using that I could authenticate google account and got auth token. but how should I use this token to authenticate my app engine application thanks Mahendra -- Yo

[appengine-java] Re: google docs error when trying to retrieve docs in GAE/J

2010-02-01 Thread Mini
Thanks zackmac , Your solution worked :) The change in the URL did the trick! On Dec 27 2009, 9:01 pm, zackmac wrote: > I've tried looping through the document list as you suggested in > number 2 by running the below code: > > for (int x = 0; x < 10; x ++) { >    try { >         DocumentListF

[appengine-java] Templating a web site

2010-02-01 Thread victor72
Hi, I am new to Google app engine, and willing to move from asp.net to Google App Engine / Java. While I have big experience in asp.net, c# i would like to learn GAE. My Qs: 1. How can I use page templates / equivalent to master pages in asp.net ? 2. How can I use multi-lingual texts in a an app.

[appengine-java] Re: Object state from a query

2010-02-01 Thread datanucleus
JDOHelper.getObjectState(obj) ? -- 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 unsubscribe from this group, send email to google-appengine-java+unsub

Re: [appengine-java] Re: Building Scalable Complex App

2010-02-01 Thread Duong BaTien
Please see the answer i sent out yesterday for a proper solution. Duong BaTien DBGROUPS and BudhNet On Sat, 2010-01-30 at 01:14 -0800, digitalsam007 wrote: > I failed to make this code work. It seems that the MessageIndex object > is not getting persisted when i call tx.commit(). > > Any help in

Re: [appengine-java] Re: Does precompilation work ?

2010-02-01 Thread Don Schwarz
The next release has a few additional fixes for precompilation stability. However, we also plan to turn precompilation on by default so I'd like to get to the bottom of any failures that you're having (especially if they are reproducible). Can anyone experiencing problems zip up their WAR directo

[appengine-java] Re: Spring MVC - File upload problem

2010-02-01 Thread Viðar Svansson
Hi You need the jar file, you can download it from: http://cloud.github.com/downloads/pjesi/springextras/springextras-1.1.jar Hope that helps, Viðar 2010/2/1 java : > Hello > > I am also using spring with appengine & I want to store a image into > datastore. I have written same code >     > cla

[appengine-java] Re: Object state from a query

2010-02-01 Thread Brandon
Can anyone help, plz? On Feb 1, 3:43 pm, Brandon wrote: > Hi, > > I am using JDO. I know that when querying a class of objects residing > in different entity group, the query should not be executed inside a > transaction. > > So, what are the state of the objects in the query result (persistent >

[appengine-java] Re: GAE For Java with struts2 And I am not able to access development admin console

2010-02-01 Thread andy.booth
This occurs with most frameworks that use a filter with a wildcard mapping to dispatch all requests, the Development server's admin Servlets are no longer found, and are instead being processed by the your framework (Struts). frameworkDispatcher /* I'm unsure on the best way to

[appengine-java] production memcache grabTail namespace isolation broken

2010-02-01 Thread phraktle
Hi, On production, grabTail returns objects from other namespaces. This is a significant problem that makes grabTail (thus queue-like usage) unusable. I filed this as a bug, with a very simple example here: http://code.google.com/p/googleappengine/issues/detail?id=2706 Can you please look into t

Re: [appengine-java] jython / modjy FileOutputStream exception

2010-02-01 Thread Alan Kennedy
[Riley] > I'm trying to get jython running with modjy.  Following instructions > from http://opensource.xhaus.com/projects/modjy/wiki/ModjyGoogleAppEngine > but I get the exceptions below.  It looks like python is trying to > write an initialization file or something.  I know a lot about Java > but

[appengine-java] Re: Questions about JDO/JPA versioning

2010-02-01 Thread Brandon
Thanks for all the answers. On Jan 29, 6:13 pm, datanucleus wrote: > > Question3: Given that A is annotated with @Version and the version > > field is protected, should a subclass of A needs to be annotated with > > @Version too in order to have the version managed by JDO/JPA? > > No. The field i

[appengine-java] Re: Check for Entity JDOObjectNotFoundException?

2010-02-01 Thread datanucleus
> Is there no other way, than catching the Exception It's the most efficient way (and JPA does a similar thing, returning null from that method). Obviously you could run a query but then that would have to be constructed and compiled etc. -- You received this message because you are subscribed t

[appengine-java] Check for Entity JDOObjectNotFoundException?

2010-02-01 Thread ChrisDane
Hi there! Using JDO on GAE/J PersistenceManager pm = PMF.get().getPersistenceManager(); Key key = KeyFactory.createKey(MyEntity.class.getSimpleName(), "t...@example.com"); MyEntity myEntity = pm.getObjectById(MyEntity.class, key); When there is no entity matching the key, it throws JDOObjectNo

[appengine-java] How to monitor restarts of GAE instances

2010-02-01 Thread Raphael André Bauer
Hi everybody, what kind of monitoring do you use to 1. monitor if an instance restarts. 2. if GAE runs on multiple instances. (A code snipplet would be really cool). I am using GUICE, and I am currently monitoring when the GUICE injector is created - according to my monitoring it is created alm

Re: [appengine-java] problem with Datastore quotas

2010-02-01 Thread John Patterson
On the page that shows those details is a link to a doc that explains where the extra space is used. Probably indexes could consume a lot. On 1 Feb 2010, at 16:29, dmakariev wrote: Hi all, I have the following problem : my quotas show the following : Total Stored Data26%

[appengine-java] problem with Datastore quotas

2010-02-01 Thread dmakariev
Hi all, I have the following problem : my quotas show the following : Total Stored Data26% 0.26 of 1.00 GBytes Okay at the same time Datastore Statistics is showing : Size of all entities: 5 MBytes Breakdown by Property Type Property Type Size Blob 5 MBytes String

Re: [appengine-java] appengine-java-io 0.1.0 released

2010-02-01 Thread Guillaume Laforge
Congratulations! On Mon, Feb 1, 2010 at 08:49, limcheekin wrote: > Hi, > > As we known Google App Engine doesn't support Java IO writing > operation natively. The VObject AppEngine? Java-IO is an open source > project that intend to port gaevfs to java.io API to enable java.io > classes support i

Re: [appengine-java] UserService and form data

2010-02-01 Thread Manny S
Ikai, Thanks, got it :). Misread your original post. . Too much coffee I guess... Manny On Sun, Jan 31, 2010 at 10:24 AM, Manny S wrote: > Ikai, > > Thanks for the suggestion. Problem is I don't want the sign in to be > mandatory. Users can post with or without signing in. The form is pretty > l

[appengine-java] Chat Time transcript for January 20, 2010

2010-02-01 Thread Jason (Google)
Two Wednesday back, the App Engine team hosted the latest session of its bimonthly IRC office hours. A transcript of the session and a summary of the topics covered is provided below. The next session will take place this coming Wednesday, February 3rd from 7:00-8:00 p.m. PST in the #appengine chan