[appengine-java] Re: permissions in multipart file upload

2009-11-10 Thread James H
Some have used GAEVFS as a replacement for direct access to local files. Just search threads for the details. On Nov 9, 7:38 am, Esteban Masoero emaso...@getsense.com.ar wrote: Have a look at this section:http://code.google.com/intl/en/appengine/docs/java/runtime.html#The_S... black_13

[appengine-java] Re: Session handleing example

2009-11-10 Thread IlyaE
Well as i found out, session attributes don't always guarantee that they are sent back to the same JVM thus i keep getting null objects in my view. While i saw a similar discussion before the only examples i found were for Python. I'm looking for a simple java example that saves an object in the

[appengine-java] Query by grandparent

2009-11-10 Thread Lucian Baciu
Is there a way to query for entities based on their grandparent? For example, suppose we have a root A entity, a B entity having A as parent, and a C entity having B as parent (A - B - C). Is is possible to query for all C entities in the database that have A entity as grand parent? Thanks

[appengine-java] Re: any plans for deferred.defer in Java?

2009-11-10 Thread Vince Bonfanti
I'm not sure about adding a TemporaryTaskFailure (TransientTaskFailure?) exception, but regardless of whether we do or not, it seems that the Deferrable.doTask method should be declared to throw Exception. Otherwise, implementations will be restricted to throwing only RuntimeException (or

[appengine-java] Regarding Relational Database Services for Appengine in the near future.

2009-11-10 Thread Shyam
Hi, Is a Relational Database Service on the roadmap for AppEngine anytime in the near future. Thanks, Shyam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group,

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread datanucleus
The list is not a basic ArrayList but a class of Datanucleus that is not serializable. Really ? You mean an org.datanucleus.sco.backed.ArrayList that simply extends java.util.ArrayList ... that implements Serializable ? Hence is Serializable. Perhaps if you actually define a testcase as per

[appengine-java] GAE Mail Problems

2009-11-10 Thread vincent chan
I using gae to send email.And the subject and content are chinese!But I got correct content in chinese and the subject in unknown encoding.Does anyone know how to solve this. Another question,the sender is encoded too,How to get the real sender?

[appengine-java] Problem with gdata services

2009-11-10 Thread Josh
Hi, I've been playing around with google app engine and I'm running into some problems with trying to to request a contact data feed. Here is a snippet of my code: String urlFromAuthSub = req.getQueryString(); String token =

[appengine-java] Struts 2.1.8 access denied exception

2009-11-10 Thread Eric Martin
OS: Windows XP IDE: Eclipse w/GAE plugin I'm playing around with GAE and wanted to test it out with Struts2. I've followed the various tutorials and everytime I try to test out my code, I get the following exception when I access my local dev site: java.security.AccessControlException: access

[appengine-java] Problem with gdata services

2009-11-10 Thread Josh
Hi, I've been playing around with google app engine and I'm running into some problems with trying to to request a contact data feed. Here is a snippet of my code: String urlFromAuthSub = req.getQueryString(); String token = AuthSubUtil.getTokenFromReply

[appengine-java] Re: AppEngine Java stability concerns

2009-11-10 Thread Roy
+1 It's critical that the GAE team take these concerns on board. The two selling points of GAE are performance and reliability, yet thanks to the aggressive unloading of idle instances and the constant glitches of the GAE infrastructure, GAE is dramatically underperforming against expectations

[appengine-java] Re: Session handleing example

2009-11-10 Thread Ikai L (Google)
Ilya, Are you looking to persist objects for a lifetime of a session, or are you looking to minimize the logic you are using in your JSPs? As a general design principle, we recommend that you minimize usage of session scope. Variables bound to session scope are serialized and stored to

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread Pierre
ok i have to learn to read at the console. Here is my log : The server is running at http://localhost:8080/ 10 nov. 2009 18:00:24 com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1257876024239000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread Pierre
ok i have to learn to read at the console. Here is my log : The server is running at http://localhost:8080/ 10 nov. 2009 18:00:24 com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1257876024239000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread Pierre
ok i have to learn to read at the console. Here is my log : The server is running at http://localhost:8080/ 10 nov. 2009 18:00:24 com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1257876024239000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC

[appengine-java] Re: No handlers matched this URL.

2009-11-10 Thread Dieter Hubau
Having the same problem: web.xml: servlet servlet-nametefe/servlet-name servlet-classorg.springframework.web.servlet.DispatcherServlet/ servlet-class /servlet servlet-mapping servlet-nametefe/servlet-name url-pattern*.do/url-pattern /servlet-mapping

[appengine-java] Re: Session handleing example

2009-11-10 Thread IlyaE
I'm looking to track a user session if they have logged in using my own user manager, but i was having trouble passing my user object back to the session once the app was deployed. I will give this a shot but i wonder if this was because i was redirecting instead of forwarding. I was doing this

[appengine-java] Re: any plans for deferred.defer in Java?

2009-11-10 Thread Vince Bonfanti
I've faxed over the CLA and created issue #2381 for this: http://code.google.com/p/googleappengine/issues/detail?id=2381 Here are the changes I've made since the original implementation: - The Deferrable.doTask method is now declared to throw Exception (instead of PermanentTaskFailure).

[appengine-java] Re: Jdo: detaching objects vs. merging transient objects

2009-11-10 Thread Rusty Wright
I'm finding that it's nearly impossible to work with the detaching objects style. I can't tell for sure what's happening other than when I add a PersistenceCapable object to another PersistenceCapable object's collection (i.e., the first one will be the child of the second one) that I get an

[appengine-java] Re: Struts 2.1.8 access denied exception

2009-11-10 Thread Rusty Wright
Could be this http://groups.google.com/group/google-appengine-java/search?group=google-appengine-javaq=strutsqt_g=Search+this+group Eric Martin wrote: OS: Windows XP IDE: Eclipse w/GAE plugin I'm playing around with GAE and wanted to test it out with Struts2. I've followed the various

[appengine-java] Re: any plans for deferred.defer in Java?

2009-11-10 Thread Nick Johnson (Google)
Hi Vince, Thanks for doing this! Could you upload your code to codereview.appspot.comand link to it from the issue? We can continue the discussion there. -Nick On Tue, Nov 10, 2009 at 9:37 PM, Vince Bonfanti vbonfa...@gmail.com wrote: I've faxed over the CLA and created issue #2381 for this:

[appengine-java] Re: Entity Group limitations

2009-11-10 Thread Ikai L (Google)
James, For all practical intents and purposes, there are no limits on the number of entity kinds per entity group or limits imposed by the underlying physical hardware. On Fri, Nov 6, 2009 at 6:56 PM, James H james.hollier...@gmail.com wrote: Is there any limit on number of entity kinds per

[appengine-java] Re: Singleton / Single Thread / Table Lock

2009-11-10 Thread Ikai L (Google)
Tim, It really depends on what you're doing. One of the challenges of developing on a distributed store like the App Engine data store is adjusting the way you approach persistence for objects. For instance, suppose you store favorite colors per application user. The canonical way of solving this

[appengine-java] Re: Can't send mail with attachment using JavaMail API

2009-11-10 Thread Ikai L (Google)
François, Do you have a code snippet, log entries or a stack trace? -- Ikai Lan Developer Programs Engineer, Google App Engine --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

[appengine-java] Re: Delete task queue

2009-11-10 Thread Ikai L (Google)
Peter, Were you able to delete the task queue? One thing you can try is using the update_queue command line tool with your XML file: ./appengine-java-sdk/bin/appcfg.sh update_queues myapp/war This is described here: http://code.google.com/appengine/docs/java/config/queue.html This should take

[appengine-java] Re: Problem with gdata services

2009-11-10 Thread Ikai L (Google)
Josh, This line: java.lang.NoClassDefFoundError: Could not initialize class com.google.gdata.client.http.GoogleGDataRequest Tells me that the issue is with your build environment not being able to resolve these files. Including JAR files in your lib directory ensures that classes in these JAR

[appengine-java] Re: where I should put the Task Queue code?

2009-11-10 Thread edarroyo
Is there any gae samples using task queues that we can look at? I am having a really hard time understanding how to use Task Queues. Thanks! On Oct 27, 6:18 pm, Vincent zhou.vi...@gmail.com wrote: Thanks , Jason. It's very helpful for me to understand how to use this new API.

[appengine-java] Chat Time transcript for November 4, 2009

2009-11-10 Thread Jason (Google)
This past Wednesday, 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 on Wednesday, November 18th from 9:00-10:00 a.m. PST in the #appengine channel

[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-10 Thread Ikai L (Google)
You may want to look here: http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#PostPhotos If you are looking to upload photos that a user has uploaded, you will not be able to save the image in the file system. You'll have to buffer the data in memory and post to

[appengine-java] Re: Delete without getting, using JDO

2009-11-10 Thread Peter Recore
Not really. Yeah, I was afraid of the relations part. In the use case I'm dealing with, there are no relations, but maybe the JDO layer can't infer that. For now I won't worry about it. If it turns out the fetches related to these deletes are a bottleneck, I will use the low level API.

[appengine-java] Re: why my app on GAE first access is so slow

2009-11-10 Thread zhiw...@gmail.com
i think the gae cloud envrionment does not have the region concept. every app run on a virtual server , the cron job is used to make the virtual server active. if the virtual server is active, when access the app, there is no need to reinit such as spring listener etc, so delay time is short,

[appengine-java] Re: Query by grandparent

2009-11-10 Thread Yasuo Higa
Hi Lucian, Is there a way to query for entities based on their grandparent? For example, suppose we have a root A entity, a B entity having A as parent, and a C entity having B as parent (A - B - C). Is is possible to query for all C entities in the database that have A entity as grand

[appengine-java] Re: Maven

2009-11-10 Thread Rusty Wright
I use the following pom to make a dependency pom. After you create a project with nothing but this pom.xml in it you then do mvn install. Then you can use it in your main pom with: dependency groupIdorg.objecteffects/groupId

[appengine-java] Re: How to use picasa upload api on Google App Engine

2009-11-10 Thread Kishore Jaladi
Hi Ikai, Thanks for the response. The protocol section describes format of the post body. But the Java guide does not explain how to send binary image data other than teh approach of creating MediaFileSource with the java.io.File as refered at

[appengine-java] How many cache can I create using JCacheFactory

2009-11-10 Thread jay
Hi friends, I want to use different cache save different sorts of Objects, so I create several caches in a HashMap. But when I debug my program, I realize only one cache in the lower layer... Is it true? private MapString, Cache caches = new HashMapString, Cache();

[appengine-java] Querying sub objects with JDOQL in GAE/J

2009-11-10 Thread enthusiast
I have a very basic question about JDOQL with GAE/J. Hope someone can shine light on this: I have modeled two persistent objects Employee and ContactInfo such that Employee contains an instance of ContactInfo, as follows: ContactInfo.java import com.google.appengine.api.datastore.Key; // ...