[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: 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

[appengine-java] What happens when I don't close persistenceManagers?

2010-04-28 Thread Jaroslav Záruba
What are possible consequences of having method like this? -- public Article getArticle(Key key) { return pManagerFactory.getPersistenceManager().getObjectById(Article.class, key); } -- Is it generally wrong? I.e. will I run out of available pManagers? And if it is OK, for how long can I

[appengine-java] New members approvals pending

2010-04-29 Thread Jaroslav Záruba
I've been asked to bump for %subj%... quote: Can you do me a favor? I have send numerous mails to the list yet and none shows up. According to the mailinglist description, new members need to be approved by the list admin, but he didn't approve them for ~3-4 Days now. I've even used the contact

[appengine-java] Re: Skipping files when deploying?

2010-05-02 Thread Jaroslav Záruba
Can you be more specific? I mean where does it say how to mark files do not upload this? Thank you. On May 2, 6:41 pm, Peter Ondruska peter.ondru...@gmail.com wrote: code.google.com/appengine/docs/java/config/appconfig.html On May 2, 5:38 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote

[appengine-java] Re: Skipping files when deploying?

2010-05-02 Thread Jaroslav Záruba
files are still uploaded. But maybe I'm still missing something...? On May 2, 8:36 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Can you be more specific? I mean where does it say how to mark files do not upload this? Thank you. On May 2, 6:41 pm, Peter Ondruska peter.ondru...@gmail.com

[appengine-java] How to make BlobServlet send non-empty response?

2010-05-03 Thread Jaroslav Záruba
I'm trying to use SWFUpload for uploading images in my application but either this particular component or Flash does not like empty responses. Is it possible somehow to get any content in the response-body from uploadUrl? Regards J. Záruba -- You received this message because you are

[appengine-java] Re: How to make BlobServlet send non-empty response?

2010-05-04 Thread Jaroslav Záruba
Or do you mean I should read the post data, send them to uploadUrl using another request I create, and then write response to the original one...? That might probably work... :P On May 4, 6:43 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Can you be more specific please? (After

Re: [appengine-java] Re: How to make BlobServlet send non-empty response?

2010-05-05 Thread Jaroslav Záruba
if it is the best) is to use the blobstore api to get the url to put in the form action. on the 1st servlet you get the blobinfo and what not, then you redirect to another servlet that can write to the form complete handler. I'll share some code later today. 2010/5/4 Jaroslav Záruba jaroslav.zar

[appengine-java] How to return entities A) with known parentKey B) with no parent?

2010-05-05 Thread Jaroslav Záruba
Hello I have a structure defined solely by the keys (i.e. no field for parentKey reference), and I can't figure out how to read A) _direct_ descendant of known parentKey or B) root entities only. I have found posts asking about this but no answer... Either the responses were suggesting to add the

[appengine-java] App Engine datastore does not support operator - .

2010-05-06 Thread Jaroslav Záruba
Hello App Engine datastore does not support operator - . ...this is what I get when trying to mimic the following query example from Uses For Transactionshttp://code.google.com/appengine/docs/java/datastore/transactions.html#Uses_For_Transactions . query = pm.newQuery(select from

[appengine-java] Deleted blob is... not deleted [Blobservice, Datastore]

2010-05-08 Thread Jaroslav Záruba
Hello I have deleted a blob but somehow it is still available: http://gae.mma.cz/image/images/JirkaRus.cz.png (Blob viewer shows I have 0 blobs in my datastore.) I have searched for some posts about this but people usually can not delete from console (+1). Maybe there is something wrong with

[appengine-java] Re: Deleted blob is... not deleted [Blobservice, Datastore]

2010-05-08 Thread Jaroslav Záruba
ah, it's gone now... quite a delay but i'm fine with that :) On May 8, 9:01 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hello I have deleted a blob but somehow it is still available:http://gae.mma.cz/image/images/JirkaRus.cz.png (Blob viewer shows I have 0 blobs in my datastore

[appengine-java] Re: App Engine datastore does not support operator - .

2010-05-08 Thread Jaroslav Záruba
i think i'm gonna reply to myself :) On May 6, 11:05 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Why does the example query above use parent-pk instead of customerKey? Is it a mistake or should the query/operator actually work somehow? still don't have a clue And why does

[appengine-java] Re: The website has a programming error.

2010-05-09 Thread Jaroslav Záruba
I would try to minimize the JSP-code to the point where it can be shown to other people to inspect it. :) And is this a message that is shown in your browser or is it what is in your Logs? On May 8, 3:25 pm, Jitu Surve jitusu...@gmail.com wrote: I have written simple web application using GAE

[appengine-java] Would Blob properties slow down my queries?

2010-05-09 Thread Jaroslav Záruba
Will a query be any faster/slower depending on whether the entities being queried/returned have any Blob properties? (Or is there no difference until I actually call a getter for such property?) Regards J. Záruba -- You received this message because you are subscribed to the Google Groups

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

2010-05-14 Thread Jaroslav Záruba
Does it mean Memcached === the Memcache we use within AppEngine? I'm particularly interested in whether AppEngine Memcache is shared among all the JVMs that have been started for my application. Based on this I assume yes: High performance scalable web applications often use _a distributed_

[appengine-java] Mailservice - creating a conversation

2010-05-15 Thread Jaroslav Záruba
Hello I'd like to send several mail messages so that they create a conversation in the recipient's mailbox. I assume this is accomplished by 'Message-ID', 'In-Reply-To' and maybe also 'References' headers. Unfortunately: For security purposes, the Mail service does not allow arbitrary headers on

[appengine-java] Persisting object with generic supertype

2010-05-18 Thread Jaroslav Záruba
Hello Following is what I get after adding new field to my class: -- org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class net.jzaruba.appengine1.Article is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in

[appengine-java] How to re-order items in a collection? Items becoming 'deleted'.

2010-05-23 Thread Jaroslav Záruba
Hello I want to change order of objects in a collection, and then to change some fields of those items. Unfortunately the items somehow become 'deleted'. This is what I do... -- if(someCondition) { // events in the original order (mainEvent is not instance of the Event sub/class BTW)

[appengine-java] Re: How to re-order items in a collection? Items becoming 'deleted'.

2010-05-23 Thread Jaroslav Záruba
I should have mentioned that the collection-property is not in default fetch group, if it makes any difference...? -- 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: Would Blob properties slow down my queries?

2010-05-23 Thread Jaroslav Záruba
frequently (every request) retrieving a large Blob, this shouldn't be *that* expensive. Small blobs shouldn't take that much longer. Your mileage may vary, so you'll have to do some benchmarking to see. What are you thinking of doing? On Sun, May 9, 2010 at 1:22 PM, Jaroslav Záruba jaroslav.zar

[appengine-java] Re: Persisting object with generic supertype

2010-05-23 Thread Jaroslav Záruba
Thank you for the reply. I'm seeing InheritanceStrategy.SUBCLASS_TABLE for the very first time, therefore most likely I didn't set up the storage strategy properly. I will get back to this approach soon, so I will definitely let you know whether it helped or not. Thanks again, regards J.

[appengine-java] How to change order of items in a collection property?

2010-05-24 Thread Jaroslav Záruba
Hello Could anyone please point me to a document that mentions what is the proper way of changing order of items in a collection? I ran out of ideas. When I assign the newly created collection everything seems OK, but after committing the transaction the collection is just gone. (With or without

[appengine-java] Impossible to re-arrange items in a collection?

2010-05-25 Thread Jaroslav Záruba
Would someone from Google please confirm that Datastore does not support changing the order of items stored in LinkedList or LinkedHashSet? (I.e. not adding/removing single item, just changing their arbitrary order.) According to what I have been able to find out (by testing and asking on

[appengine-java] Re: Eclipse plugin Subclipse issue

2010-05-25 Thread Jaroslav Záruba
Once I had to install Subclipse again after installing GWT, on Windows. No issues since then. On May 25, 1:42 am, a701440 alxfedo...@gmail.com wrote: I am running Eclipse 3.5 on Ubuntu 10.04 64 bit. I had subclipse subversion integration installed and working fine. I then installed the google

[appengine-java] Re: Persisting object with generic supertype

2010-05-26 Thread Jaroslav Záruba
... andhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html... I remember having such a problem before defining correct storage strategy. Let us know if it helps didier On May 18, 12:42 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hello Following is what I get

[appengine-java] 500 when web.xml contains certain kind of coments

2010-06-06 Thread Jaroslav Záruba
Hello GAE seems to have troubles parsing web.xml with what I believe are perfectly valid XML-comments: -- context-param param-nameintense-debate-account-id/param-name !-- site1: -- param-valuesite1accId/param-value !-- site2: -- !--

[appengine-java] datastore Category type/class... vs. String

2010-06-12 Thread Jaroslav Záruba
This is probably a silly question... few of them How does Category differ from good old String? Does it take less space in the datastore or is it stored as String? And if one had only tens of tags, would it be any good to tag entities rather using numbers and translate them afterwards? (Would it

[appengine-java] Re: Prerelease 1.3.4 SDK ready for download

2010-06-21 Thread Jaroslav Záruba
I'm trying to enable OpenID authentication for my app. With Google as IDP it works fine. With MyOpenId.com I get the 500 Error page after I approve authentication on their site. http://app-id.appspot.com/_ah/openid_verify?...tonsofparameters... I never knew I should take care about

[appengine-java] Re: Prerelease 1.3.4 SDK ready for download

2010-06-21 Thread Jaroslav Záruba
/ all goes smooth. Now I'm only dying of curiosity whether I was 'doing it wrong'? :P On Jun 22, 1:14 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: I'm trying to enable OpenID authentication for my app. With Google as IDP it works fine. With MyOpenId.com I get the 500 Error page after I

[appengine-java] TaskQueue: How reliable is ETA?

2010-07-03 Thread Jaroslav Záruba
Hi I knew that ETA does not guarantee exact time for a task to be run, but I was under impression that a task won't be run sooner than ETA. But now I'm adding task with etaMillis(31) and it is run right away, on a production server. Could anyone enlighten me, please? Regards J. Záruba --

[appengine-java] Re: TaskQueue: How reliable is ETA?

2010-07-03 Thread Jaroslav Záruba
Oh lord, seems like i'm ready to bed... etaMillis(long etaMillis) Sets the approximate absolute time to execute. vs. countdownMillis(long countdownMillis) Set the number of milliseconds delay before execution of the task. Nevermind. On Jul 3, 11:28 am, Jaroslav Záruba

[appengine-java] GAE + Server-side Speed Traces?

2010-07-03 Thread Jaroslav Záruba
http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html#ServerSideSpeedTraces With Speed Tracer 1.0 M1, you can now view sever-side timing data for apps running on Google App Engine... I have upgraded, re-deployed to GAE, but I can't see no Speed Trace above Summary in the Network

[appengine-java] Saving my own JSPs to blobs - URLFetch Timeout

2010-07-03 Thread Jaroslav Záruba
Hi I'd like to serve blobs created of JSPs. So the idea was to use TaskQueue+URLFetch on partcilar JSP whenever the blob should get updated. But only very rarely I succeed, usually I end with connection timeout. (Even when the timeout is raised to 10s.) When I call the JSP directly it loads way

[appengine-java] Re: 1.4 eclipse plugin

2010-12-05 Thread Jaroslav Záruba
Same error, syncing the JARs has not helped. :( It appears to me there's still hiding one incompatible (Jasper?) library somewhere. I guess I just have bad luck. Every time I upgrade GAE/GWT Eclipse plugin or SDK I end up doing clean install of Eclipse. :( On Dec 5, 7:36 pm, Rajeev Dayal

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
Thanks guys, moving AppEngine (and GWT) to the top in Order and Export really solved this. Thanks a lot :) On Sun, Dec 5, 2010 at 4:40 PM, Mike Friesen mfrie...@gmail.com wrote: I had the same problem and fixed it by: 1) Selecting project Root - Goto File-Properties 2) Select Java Build

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
What does the error message say? No hints in the Problems window? On Mon, Dec 6, 2010 at 5:42 PM, mscwd01 mscw...@gmail.com wrote: This still doesn't solve the issue for me, mapping a servlet url pattern to a jsp file always fails... On Dec 6, 1:33 pm, Jaroslav Záruba jaroslav.zar

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 592) Thanks On Dec 6, 4:52 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: What does

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
:03 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: seems like repackaged-appengine-jasper-6.0.29.jar is not where it is supposed to be...? On Mon, Dec 6, 2010 at 5:58 PM, mscwd01 mscw...@gmail.com wrote: No hints in the problems window that are of any help. The error I

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
6, 5:33 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: This JAR is where Eclipse reads the HttpJspBase type from. It is included in the AppEngine SDK Library. Project - Properties - Java Build Path - Libraries On Mon, Dec 6, 2010 at 6:28 PM, mscwd01 mscw...@gmail.com

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
the new 1.4 SDK. On Dec 6, 5:54 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Could it be it is only a missing import declaration in the *.java result of your *.JSP? On Mon, Dec 6, 2010 at 6:46 PM, mscwd01 mscw...@gmail.com wrote: Ah yes found it in the App Engine

Re: [appengine-java] Re: 1.4 eclipse plugin

2010-12-06 Thread Jaroslav Záruba
org.apache.jasper.runtime.HttpJspBase cannot be resolved to a type An error occurred at line: 8 in the generated java file org.apache.jasper.runtime.JspSourceDependent cannot be resolved to a type On Dec 6, 8:33 am, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Thanks guys, moving AppEngine (and GWT

[appengine-java] Deleting in batches of keys in a loop

2011-02-16 Thread Jaroslav Záruba
Hello If I delete 1000 objects in one iteration of a loop do I know for sure that in the next iteration I won't fetch their keys again when using the same query? I will use Mapper API so I'm rather curious. Regards J. Záruba -- You received this message because you are subscribed to the

[appengine-java] Working with JSON in client/server shared class

2011-03-20 Thread Jaroslav Záruba
Hi My Java class shared by client (GWT) and server (GAE/J) has field containing JSON-markup. Is it possible to parse/update/serialize this data using this very class? (I.e. without having to write separate client and server helper class.) Regards J. Záruba -- You received this message

Re: [appengine-java] Full Text Search Status?

2012-01-04 Thread Jaroslav Záruba
Any news/updates? :( -- 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 https://groups.google.com/d/msg/google-appengine-java/-/NcoX-BGLD2MJ. To post to this group, send email to