Re: [appengine-java] Threads

2011-09-19 Thread Prashant
On Mon, Sep 19, 2011 at 10:16 AM, HARISH S.C s.c.har...@gmail.com wrote: Hi, I would like to clarify some basic doubts. I am trying to port an existing app into google app engine . 1. When I have more than 1 servlet, it ll be executed in different thread in a single JVM or else how it will

[appengine-java] Re: Threads

2011-09-19 Thread HARISH S.C
@Prashant Thanks for the info. I was not very clear with my 2nd question My application creates thread n use synchronization. So Is rewriting my whole application is my only option or is there any other way? On Sep 19, 11:08 am, Prashant antsh...@gmail.com wrote: On Mon, Sep 19, 2011 at

[appengine-java] Re: Threads

2011-09-19 Thread Simon Knott
There is a very high possibility that your application will run in multiple JVMs, so you should avoid synchronizing between threads. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Re: Threads

2011-09-19 Thread de Witte
You can't create your own threads in GAE. Use task queue, backend, or cron jobs instead. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Re: Threads

2011-09-19 Thread HARISH S.C
@de Witte I thought of task queue, but the blocking issue there is, we wont get any response after the task is finished On Sep 19, 12:25 pm, de Witte jcreator.xi...@gmail.com wrote: You can't create your own threads in GAE. Use task queue, backend, or cron jobs instead. -- You received this

[appengine-java] Re: JDO and High Replication datastore

2011-09-19 Thread Ian Marshall
I do! Code-wise, there is no change that I am aware of. Conceptually, there are differences - such as potential delays between a write in one transaction and a subsequent read without using a transaction to see the newly-updated data. On Sep 17, 9:06 am, Shoubhik sbos...@gmail.com wrote:

[appengine-java] Re: You do not have permission to modify this app

2011-09-19 Thread Sudhakar Abraham
You can directly upload your application without using eclipse plugin. 1. Change your application version in appengine-web.xml. 2. Go to command prompt, point your app engine SDK version 1.5.0 (_your app engine SDK directory\appengine-java-sdk-1.5.0.1\bin) 3. Update your application using

[appengine-java] Re: JDO and High Replication datastore

2011-09-19 Thread Ian Marshall
I correct what I wrote below. I should have written: Conceptually, there are differences - such as the delay between a write and seeing the new data in a subsequent read without using a transaction. On Sep 19, 11:46 am, Ian Marshall ianmarshall...@gmail.com wrote: I do! Code-wise, there is

[appengine-java] Re: Writing to google spreadsheet from GAE

2011-09-19 Thread Daniel Florey
I've been able to access spreadsheets from GAE without problems. The only problem is the limited upload size for URLFetch that makes it impossible to upload large pre-populated sheets. Other than that it worked without problmes... -- You received this message because you are subscribed to the

[appengine-java] Re: Writing to google spreadsheet from GAE

2011-09-19 Thread niraj
Daniel , Would you mind posting the sample code. OR the link to the samples that helped you code the application On Sep 19, 7:24 am, Daniel Florey daniel.flo...@gmail.com wrote: I've been able to access spreadsheets from GAE without problems. The only problem is the limited upload size for

[appengine-java] Documentation Suggestion: More JDO ancestor query on collection documentation

2011-09-19 Thread Brandon Donnelson
May I suggest adding more query on ancestors (collecitons, lists, vectors...) documentation. Please combine owned relationships with a section on how to query the owned relationships, elaborating on it more than what's currently stated. For example, if my HashSetString list has {I,went,there}

[appengine-java] Re: Writing to google spreadsheet from GAE

2011-09-19 Thread Brandon Donnelson
The Java gdata works great as an api accessing the spreadsheet. If you only want access to your own spreadsheet you can hardcode your authentication, otherwise oauth is what you want. Here is one of my examples doing it. http://code.google.com/p/gwt-examples/wiki/DemoGwtGData Another great

[appengine-java] Re: JDO and High Replication datastore

2011-09-19 Thread Shoubhik
Thanks Ian, I tried it and it worked. The documentation in the Getting Started part should provide more info about using JDO! (instead of browsing to the Storing Data section. On Sep 19, 6:09 pm, Ian Marshall ianmarshall...@gmail.com wrote: I correct what I wrote below. I should have written:

[appengine-java] Re: You do not have permission to modify this app

2011-09-19 Thread Ken Bowen
Duh! Didn't realize I was incorrectly logged in to the Eclipse plugin. Sorry for the clutter. -- 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-java@googlegroups.com. To

[appengine-java] Using JDO updating entity groups advice

2011-09-19 Thread Alex
Hi all, I’m trying to model my domain to use GAE JDO. I have User and Event classes (see below). An Event is owned by a User and a User can participate in their and others Events. My issue is that I’m having trouble persisting the participate in another User’s Event. I keep getting:

[appengine-java] Private and public blobs

2011-09-19 Thread Stefanos Antaris
Hi to all developers, i am developing a new web application for a company and i am using blobs to upload and serve some files. However, i have noticed that if i already have the blob item's link i can download the file. As the enterprise's policy is to download the file whoever have already

[appengine-java] Newbie: java.lang.ClassNotFoundException

2011-09-19 Thread Arkaaito
Hello, all! A friend and I are dabbling in App Engine using the Java SDK. We've put together a Hello, World example with no problems; however, when we try to add code to make a simple call to a webservice using the classes in com.google.api.client.http, our code compiles fine but causes a

Re: [appengine-java] Newbie: java.lang.ClassNotFoundException

2011-09-19 Thread Bruno Fuster
Hi Did you try using URLFetch ? Check this post from Ikai http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/ Regards, On Sun, Sep 18, 2011 at 7:46 PM, Arkaaito alsti...@gmail.com wrote: Hello, all! A friend and I are dabbling in App Engine using the Java SDK.

Re: [appengine-java] Private and public blobs

2011-09-19 Thread Bruno Fuster
Hi! You can expose your own links instead (like /download/{clientid}/{fileid}). Check if the user is logged in as appropriate and then serve the blob: public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException { BlobKey blobKey = new

[appengine-java] JDO advise

2011-09-19 Thread Alex
Hi all, I'm using JDO for storage in GAE and would like some advice as I'm having trouble modelling my persistence objects. I have 2 classes, User and Event. A User owns an Event and can participate in others Events. My classes look roughly like this. @PersistenceCapable(detachable = true)

[appengine-java] blob storage restrictions

2011-09-19 Thread Stefanos Antaris
Hi to all, i am a newbie in Google Web Toolkit and Google App Engine Technology so i need your help based on blobs. I am developing a web application for a company which needs to upload some files and serve them to their customers. The problem is that when someone uploads an item to the

[appengine-java] java.lang.ArrayIndexOutOfBoundsException in org.datanucleus.state.AbstractStateManager.getFlagsSetTo

2011-09-19 Thread aschroder
I am getting this error: Uncaught exception from servlet java.lang.ArrayIndexOutOfBoundsException: 8 at org.datanucleus.state.AbstractStateManager.getFlagsSetTo(AbstractStateManager.java:1455) at

Re: [appengine-java] JDO advise

2011-09-19 Thread Ravi Sharma
ANy particular problem?? I would design these classes like this... @PersistenceCapable(detachable = true) public class User implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; private String email; private String firstName;

[appengine-java] unable to install google app engine plugin for eclipse(indigo)

2011-09-19 Thread raj
when i try to install google app engine plugin for eclipse it keeps giving below error message at about 47% installing software has encountered a problem. An error occured while collecting items to be installed An error occurred while collecting items to be installed session context

[appengine-java] Why are java_lang_Object Entities are being created?

2011-09-19 Thread IlyaE
I look at the Database Viewer and besides the models and _ah_SESSION i see there is a java_lang_Object entity that only has a ID/Name attribute. What is this and why are they being created? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: Developing Multilingual Web Applications

2011-09-19 Thread Nichole
and you'll probably want to add threadsafetrue/threadsafe to appengine-web.xml as appengine's frontend server will otherwise send requests serially On Sep 18, 6:25 pm, Nichole nichole.k...@gmail.com wrote: If you have a java web application that conforms to servlet spec 2.4, jsp spec 2.0 and

Re: [appengine-java] unable to install google app engine plugin for eclipse(indigo)

2011-09-19 Thread David Chandler
Hi Raj, Sometimes Eclipse gets hung up if there are network errors during a download. Close Eclipse, wait 5 min, and try again. This will clear the cache. If that still doesn't work, try a fresh install of Eclipse and post on the new group for GPE:

[appengine-java] GAE+GWT2.4 [ERROR] java.lang.NoClassDefFoundError: javax/validation/Path

2011-09-19 Thread John Howe
I thought this was going to be easy. I'm trying to move a working GAE java app up to GWT 2.4. But when I do, I see the following stack trace on the first RPC call. At least one other guy has seen this while doing same and posted a query at