[appengine-java] BlobstoreService fetchData - 2 small fetches or 1 large fetch?

2010-04-27 Thread keyurva
I have an interesting problem with my blob store fetches - I need to fetch 2 chunks of data 5 bytes each that are 1000 bytes apart. From the perspective of the BlobstoreService, is it more efficient for me to make 2 fetchData calls of 5 bytes each or 1 fetchData call of 1010 bytes? Thanks, Keyur

[appengine-java] Updating data class resets data fields

2010-04-27 Thread kghate
I am storing some persistent data and all is working fine, I have a simple data class per examples provided in the Storing Data section. However, I noticed that all my stored data got reset to null when I added a couple new fields to be stored. To give an example, my employee data class was

[appengine-java] Freemarker - java.lang.VerifyError

2010-04-27 Thread Sudhir Ramanandi
I am using freemarker-gae-pre2.jar and I get following error when I deploy to GAE. Its working fine on my local machine I am using spring MVC + freemarker. java.lang.VerifyError: (class: freemarker/ext/jsp/FreeMarkerJspApplicationContext, method: init signature: ()V) Incompatible argument to

Re: [appengine-java] Freemarker: Run local: OK. Run on cloud: Error

2010-04-27 Thread Sudhir Ramanandi
Aah, freemarker-gae-pre2.jar won't work either. I got the same error. Asked to freemarker mailing list. Lets see what comes up. Does any one else has any idea? Thanks SN On Tue, Apr 27, 2010 at 11:29 AM, Sudhir Ramanandi sramana...@gmail.comwrote: First of all, Currently normal release of

Re: [appengine-java] Freemarker: Run local: OK. Run on cloud: Error

2010-04-27 Thread Sudhir Ramanandi
Aah, freemarker-gae-pre2.jar won't work either. I got the same error. Asked to freemarker mailing list. Lets see what comes up. Does any one else has any idea? Thanks SN On Tue, Apr 27, 2010 at 11:29 AM, Sudhir Ramanandi sramana...@gmail.comwrote: First of all, Currently normal release of

[appengine-java] Owned one to many relationship problem when parent was already existed.

2010-04-27 Thread ylmz
Hi. I got tree classes that has one-to-many relationship with each other. A has a child class B (one to many) B has a child class C(one to many) @PersistenceCapable class A { @PrimaryKey @Persistent public Key key; @Persistent(mappedBy = a) @Element(dependent = true)

[appengine-java] Re: owned one to many relationship problem

2010-04-27 Thread ylmz
unfortunately I still am having problem. if parent is already persisted it does not work. I have a different post for that one. http://groups.google.com/group/google-appengine-java/browse_thread/thread/a9955f8944a8c520 On Apr 19, 12:27 am, ylmz yilmazhuse...@gmail.com wrote: Hi every body. I

[appengine-java] Re: Single Sign on between applications

2010-04-27 Thread Patou
With a Google Apps Domain (login with user in the domain), it's possible, but for all public application (with google account) the user must sign in for all application. On Apr 26, 11:42 pm, nearm...@gmail.com wrote: You may be able to accomplish this by using sub-domains. For example:

[appengine-java] Re: How to deal with large collections of objects?

2010-04-27 Thread ailinykh
define Cow as class Cow { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent @Extension(vendorName=datanucleus, key=gae.parent-pk, value=true) private Key farmKey; } If you set farmKey to farm id then both farm and cow will

[appengine-java] Re: Freemarker: Run local: OK. Run on cloud: Error

2010-04-27 Thread Phuong Nguyen
The fix provided in the blog above some how shoots (or hide???) the inner problem. But the outer problem (cannot create PageContextFactory) is still there. I get this exception after deploy the *fixed* version to the cloud: java.lang.NoClassDefFoundError: Could not initialize class

[appengine-java] Re: How to deal with large collections of objects?

2010-04-27 Thread Mark
Thanks Andrey, that works perfectly. I wasn't understanding the example in the docs about this: http://code.google.com/appengine/docs/java/datastore/transactions.html section titled Creating Entities With Entity Groups. Your example makes it clear, Thanks On Apr 27, 6:04 am, ailinykh

Re: [appengine-java] Re: Freemarker: Run local: OK. Run on cloud: Error

2010-04-27 Thread Sudhir Ramanandi
Attila has created an issue here http://code.google.com/p/googleappengine/issues/detail?id=3157 Vote for it. Thanks SN On Tue, Apr 27, 2010 at 6:55 PM, Phuong Nguyen phuongn...@gmail.com wrote: The fix provided in the blog above some how shoots (or hide???) the inner problem. But the outer

[appengine-java] Manually restart GAE on the cloud

2010-04-27 Thread Phuong Nguyen
Is there any way to manually restart GAE on the cloud? -- 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

Re: [appengine-java] Manually restart GAE on the cloud

2010-04-27 Thread Romain Pelisse
:D I actually saw a comic strip a while ago about how people will have to change their behavior (ie stop rebooting when they fail to fix something), but I never expected to actually see somebody ask about that. You can't reboot the cloud. Simply redeploy a new version of your application if you

[appengine-java] App Engine Down?

2010-04-27 Thread luijar
We just experienced an outtage that seems to be from Google App Engine for one of our registered app ID's. It lasted for several hours and it seems to be back up again without us making any changes. Has anyone else experienced this? If so, what was the cause? -- You received this message because

[appengine-java] Re: App Engine Down?

2010-04-27 Thread luijar
8:55AM Pacific was the last error we saw. Basically, it was throwing DeadlineExceededExceptions quickly all of the time. On Apr 27, 12:11 pm, luijar luis.j.aten...@gmail.com wrote: We just experienced an outtage that seems to be from Google App Engine for one of our registered app ID's. It

[appengine-java] Re: gql fetch performance

2010-04-27 Thread mandar khadilk
This is after deployment and not local. The locals fly fast. No issues there. As to your second point- I set the prefetch to 50/100 etc and also chunk size. The limit for the qry is also set to large value. But as you suggested, I will do app stat. On Apr 26, 4:17 pm, Ikai L (Google)

[appengine-java] Re: JSP showing new DB data problem.

2010-04-27 Thread seleronm
Hi, If the previous data is displayed, I clear the browser cash when simply thinking. They might be other causes. I think that it is useful to check the content by log adminconsole. thanks. When data is changed from the DB the JSP shows it to the user. The problem is that the JSP doesn't

[appengine-java] AJAX on Google App Engine using JAVA

2010-04-27 Thread Thato Selebogo
Has anyone used AJAX to enable client RPC requests using JAVA. On the Google App Engine website Paul Peavyhouse does exactly the same thing but he is using Python. Does anyone know how to do the same thing but using JAVA? -- You received this message because you are subscribed to the Google

[appengine-java] Writing to a local file in development environment

2010-04-27 Thread Jaroslav Záruba
Due debugging purposes, and only in development environment, I need to manipulate with a text-file. Obviously I ran into following message... access denied (java.io.FilePermission F:\workspace\AppEngine1\war\js\main.js delete) I thought adding the permission to java.policy would cure this, so

[appengine-java] Re: WARNING: This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take

2010-04-27 Thread AndiMullaraj
Hi Ikai, where can I get a more specific response to this issue? I find it odd something like this would happen in first place (my app hangs for about 7 seconds awaiting for the process to fire up). I tried pinging my app every 2 minutes hoping the process would not go to sleep ... to no effect.

[appengine-java] Re: apparent appstats bug

2010-04-27 Thread Dick Johnson
As an addendum to my previous note-- when an app is deployed to App Engine, I don't get the appstats 'hang' behaviour of my previous post, in that the servlet response does finish rendering. But, just as with the local development version, the servlets that caused issues with Appstats are not

[appengine-java] Re: Cold starts

2010-04-27 Thread Jake
Star this? :) http://code.google.com/p/googleappengine/issues/detail?id=2931 On Apr 27, 4:33 am, Richard richard.wat...@gmail.com wrote: My app has a *lot* of cold starts. Sometimes after 2 or 3 minutes, which seems very aggressive. I've let it go, tried to be good and waited for it to

Re: [appengine-java] Writing to a local file in development environment

2010-04-27 Thread Patrick Cornelißen
Hi! 2010/4/27 Jaroslav Záruba jaroslav.zar...@gmail.com Due debugging purposes, and only in development environment, I need to manipulate with a text-file. Obviously I ran into following message... access denied (java.io.FilePermission F:\workspace\AppEngine1\war\js\main.js delete) I

[appengine-java] Re: Writing to a local file in development environment

2010-04-27 Thread Jaroslav Záruba
On Apr 27, 7:39 pm, Patrick Cornelißen corne...@pcornelissen.de wrote: You could also start a dedicated tomcat yes, the workaround here is easy... but so far i'm looking for a solution, also i must!!!11 know why this is not working, i guess you know that feeling :P thank you anyways Patrick

Re: [appengine-java] AJAX on Google App Engine using JAVA

2010-04-27 Thread Patrick Cornelißen
Hi! 2010/4/27 Thato Selebogo mahla...@gmail.com Has anyone used AJAX to enable client RPC requests using JAVA. On the Google App Engine website Paul Peavyhouse does exactly the same thing but he is using Python. Does anyone know how to do the same thing but using JAVA? Maybe I am not

Re: [appengine-java] Re: Writing to a local file in development environment

2010-04-27 Thread Patrick Cornelißen
Hi! 2010/4/27 Jaroslav Záruba jaroslav.zar...@gmail.com On Apr 27, 7:39 pm, Patrick Cornelißen corne...@pcornelissen.de wrote: You could also start a dedicated tomcat yes, the workaround here is easy... but so far i'm looking for a solution, also i must!!!11 know why this is not

Re: [appengine-java] Re: Can't decide: JDO, Twig-Persist or Objectify?

2010-04-27 Thread Jeff Schnitzer
The advantage of Objectify's key management is the generified Key? class, which helps keep your code straight. Jeff On Mon, Apr 26, 2010 at 5:16 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: I didn't try, but I'm sure that if you set a Key field that doesn't exist in the

[appengine-java] Re: apparent appstats bug

2010-04-27 Thread Jens Scheffler
Hi, If you look at the logs of your deployed application, do you see any errors, such as an OutOfMemoryError? My current suspicion is that app stats collects so much data (and keeps it in memory) for this request that it runs out of memory before it can persist it. If that is the case, we might

[appengine-java] Re: WARNING: This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take

2010-04-27 Thread Tristan
Hey Andi, It goes something like this as far as I understand it. Your app lives in a process. When requests come in, those requests are handed to the app process to do what it needs to do and send a response. When request A comes in and there are no active processes, the app process starts up

[appengine-java] Re: Efficient One to Many Relationship

2010-04-27 Thread Tristan
1) yes, that should work just fine (at least in low-level datastore API it does) 2) your key should not be your security / accessibility mechanism, so yes, it should be fine (although using a Long id vs. keyAsString would be prettier). also, you want to make sure you restrict access to your

[appengine-java] Re: Can't decide: JDO, Twig-Persist or Objectify?

2010-04-27 Thread jbdhl
For your information I ended up choosing Objectify. I picked that because... * of its very informative, yet short and elegant, documentation. In fact, it is a far more precise and explanatory description of datastore than in Google's own GAE documentation; * the simple, yet powerful API. I

[appengine-java] Re: Updating data class resets data fields

2010-04-27 Thread kghate
any ideas on what I am doing wrong? Please help! On Apr 27, 12:31 am, kghate kgh...@gmail.com wrote: I am storing some persistent data and all is working fine, I have a simple data class per examples provided in the Storing Data section. However, I noticed that all my stored data got reset to

[appengine-java] Re: Uploading blobs and authentication

2010-04-27 Thread keyurva
Submitted a new feature request for this: http://code.google.com/p/googleappengine/issues/detail?id=3160 == Keyur On Apr 26, 1:57 pm, keyurva keyu...@gmail.com wrote: Currently to upload blobs, the blob store service creates a unique one- time URL that a user can post blobs to. My requirement

Re: [appengine-java] Re: Updating data class resets data fields

2010-04-27 Thread Ikai L (Google)
No, this is not expected behavior. Try rolling back your application and seeing if this still occurs. I suspect something else is wrong - you just need to narrow down the version of your application that causes this to happen. 2010/4/27 Marcos Vinícius Soares mavsoa...@gmail.com I believe this

[appengine-java] Questions about BlobstoreService fetchData and serve

2010-04-27 Thread Rahul Ravikumar
The BlobstoreService has two method using which one can fetch data. The first one being fetchData(blobKey, start, end) = which fetches the subset for a blob. The second being serve(blobKey) Is there a reason why the serve method, does not maintain the same contract as that of fetchData(...) ?

[appengine-java] about count query

2010-04-27 Thread Joe Fawzy
Hi all i am using JDO and i want to count the number of entities so which is more efficient using a count quert, eg: select count (this) from User or key only query select id from User then get the count using resultList.size(); by the way , i know that the recommended way on appengine is to

[appengine-java] persisting primitive list using JPA

2010-04-27 Thread Joe Fawzy
Hi all GAE JPA implementation level is version 1 which does not support list of primitives and i want to port my JDO code to JPA so how can i convert @Persistent private ListString tags; to its JPA counterpart which work on appengine as a list property not a blob(not using serialization) and if

[appengine-java] maximum size of a datastore API call response

2010-04-27 Thread Joe Fawzy
Hi all in the doc , section Quotas and Limits i found maximum size of a datastore API call response= 1 MB what does this mean? does it mean that the query result cannot exceed 1 MB , so what about the rest of the result, does the JDO layer take care of this and handle it transparently or what? do

[appengine-java] Re: Inheritance hierarchy and getExtent

2010-04-27 Thread Maxim Cherednik
Hey Simith, I am struggling exactly with the same problem. I read manual about inheritance here http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Inheritance So I was pretty sure that JDO inheritance on App Engine works as described in the DataNucleus documentation. First of

[appengine-java] Specifying a date filter in a query

2010-04-27 Thread Vinay
Hi, I am new to Java and App engine. I am trying to query data that has been written to the datastore using JDO. I am getting an exception when I try to filter on a Date property: Query query = pm.newQuery(DataPoint.class); query.setFilter( m_tradeDateTime DATETIME(2010,

[appengine-java] Which is more efficient? single query or a key only query followed by batch get

2010-04-27 Thread Joe Fawzy
Hi all the title says it all... which one is more efficient in: cpu usage time consumption thanks Joe -- 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.

[appengine-java] Re: Does AppEngine really include JPA Support

2010-04-27 Thread Joe Fawzy
Hi dear it seams that u r new to appengine please take enough time to understand the datastore concepts as it is not a RDBMS and yes appengine JPA code is not 100% portable, you have to do some work (both on the domain layer and the dao layer) to port RDBMS jpa code to appengine and the reverse

[appengine-java] App Engine downtime TOMORROW, Wed Apr 28 1-2p PDT

2010-04-27 Thread Wesley C (Google)
App Engine downtime TOMORROW, Wed Apr 28 1-2p PDT (GMT-7) and same time next Wed, May 5 http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9 please join the downtime notification group to be alerted on all such planned downtimes. all apps will go

[appengine-java] Re: Efficient One to Many Relationship

2010-04-27 Thread Pk
Thank you so much Tristan. I have another question on top of #3. I can query on listitem parentkey = listcontainerkey and isproccess = true. it is easier, yes. but I expect the data to be growing. there;ll be lot of users with all their listitems stored in a single big list, the processed and

[appengine-java] Re: Efficient One to Many Relationship

2010-04-27 Thread Pk
Btw, I am not going to get all the isprocessed=true records at once. I'll get only the top 100 at any given time. On Apr 28, 7:05 am, Pk prakash...@gmail.com wrote: Thank you so much Tristan. I have another question on top of #3. I can query on listitem parentkey = listcontainerkey and

Re: [appengine-java] Specifying a date filter in a query

2010-04-27 Thread Chau Huynh
http://www.datanucleus.org/products/accessplatform_2_0/jdo/jdoql.htmlExample 3 is the right answer for you. It might be better if you could go through document to have an understanding on its concepts first. Thanks. On Wed, Apr 28, 2010 at 1:36 AM, Vinay vinaytand...@gmail.com wrote: Hi, I am

Re: [appengine-java] Which is more efficient? single query or a key only query followed by batch get

2010-04-27 Thread 风笑雪
In my previous test, query is faster. -- keakon 2010/4/28 Joe Fawzy joewic...@gmail.com: Hi all the title says it all... which one is more efficient in:   cpu usage   time consumption thanks Joe -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: Manually restart GAE on the cloud

2010-04-27 Thread Phuong Nguyen
:)) Sorry if I used the wrong word. I mean restart my JVM. Since each app will be allocated some JVMs, which run on some servers, I wonder if I can reboot them. It is not an ideal solution, certainly, when you are talking about error-tolerance and scaling. However, during some phase of

Re: [appengine-java] about count query

2010-04-27 Thread Chau Huynh
On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote: select count (this) from User Since when app engine support group operation? ;-) On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote: Hi all i am using JDO and i want to count the number of entities so which

[appengine-java] Re: Manually restart GAE on the cloud

2010-04-27 Thread Thomas
In the Admin Console you can disable your application and re-enable it. I think it is much like a JVM reboot. -- 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

[appengine-java] Re: Manually restart GAE on the cloud

2010-04-27 Thread Phuong Nguyen
I think disable/enable your app doesnot reboot JVM. I'm trying FreeMarker. If JVM process a class for the first time, then VerifyError is thrown. On second time, it throw NoClassDefFoundError. When I disabled and reenabled, JVM still throws NoClassDefFoundError. So I guess JVM is not restarted.

Re: [appengine-java] Re: Manually restart GAE on the cloud

2010-04-27 Thread Chau Huynh
Delete the version and redeploy, maybe? Or should Google hep you look into your case, as App Engine user do not have such direct control on their system to reboot. On Wed, Apr 28, 2010 at 10:54 AM, Phuong Nguyen phuongn...@gmail.comwrote: I think disable/enable your app doesnot reboot JVM.

[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

[appengine-java] VerifyError on no-op default constructor

2010-04-27 Thread Sudhir Ramanandi
Can anyone from google explain what java.lang.VerifyError: (class: freemarker/ext/jsp/FreeMarkerJspApplicationContext, method: init signature: ()V) Incompatible argument to function, means? See the issue http://code.google.com/p/googleappengine/issues/detail?id=3157 I have attached the source of