[appengine-java] Re: local datastore cleanup

2009-10-20 Thread Nikolay Gorylenko
This problem lasts for 3 weeks on Google AppEngine console. I switched to another applicationId, and everything was good for few moments - i was able to see my data. But now again - Server error and no way to see my data via admin console. --~--~-~--~~~---~--~~

[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-20 Thread dflorey
You'll need to add an index property to your entity and specify this index in your query. On 20 Okt., 07:48, Sreekanth Raju sraj...@gmail.com wrote: ok, let's say i want to retrieve entity from result list starting from index 1100 to 1150. how to achieve this ?

[appengine-java] Re: Selecting more than 1000 rows ?

2009-10-20 Thread leszek
1000 is a hard limitation on every query. So if you have 5000 entitties and use range 999-1500 you will get only one record. The only way is to iterate through entities using JDO extend. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-20 Thread Marcel Overdijk
Is there any other way to keep an instance warm? Startup of instance just takes to much time to have an effective GAE/J application... On 19 okt, 22:58, Jason (Google) apija...@google.com wrote: To answer your question, no, having a cron job run every minute to keep an instance warm will not

[appengine-java] Re: How to view log file locally?

2009-10-20 Thread Marcel Overdijk
It's not the question if it's worth learning Maven. It's the question how to read log files locally. Would it be possible to run the Google admin console locally and read the log files? On 15 okt, 20:48, Rusty Wright rwright.li...@gmail.com wrote: Think long term; maven is a mountain worth

[appengine-java] Re: Possible to Add Child to Owned One to Many Relationship Without Loading All Children?

2009-10-20 Thread leszek
I'm afraid that it is not possible. But if the purpose of your relationship is only to manage child class in a transactional way you don't need to keep them as a part of child relationship. Simply use Key type and set 'parent' part of the child' key being the same and you can manage them in the

[appengine-java] Re: about missing values

2009-10-20 Thread Alexander Arendar
People, it would be great for me to know this as well. Is there anyone who knows how to do this properly? On Oct 19, 4:09 pm, Prashant antsh...@gmail.com wrote: hi, i added a new column to my data table, as it is newly added it is showing missing as column values in datastore. now i want to

[appengine-java] Re: about missing values

2009-10-20 Thread Prashant
the only way i could find is to fetch each and every entity and check if column == null. i ran a cron which checks 1 entity per min so that initialization goes smoothly without putting extra load on app. --~--~-~--~~~---~--~~ You received this message because you

[appengine-java] Re: programatically upload files to datastore

2009-10-20 Thread Houston startup coder
I haven't actually tested this code yet since I got sidetracked with some other stuff. But I basically worked off of the example farther down this page: http://code.google.com/appengine/kb/java.html Then I just modified it to save the file data as an attribute to an object I want to persist to

[appengine-java] Re: programatically upload files to datastore

2009-10-20 Thread Alexander Arendar
Hi, it seems ok. I use the same way ApacheIO just I have regular UI form. But it's no matter if you fire POST http request from the HTML form or if that is done programatically. Just test and make sure it works. Sincerely, Alex On Tue, Oct 20, 2009 at 6:17 PM, Houston startup coder

[appengine-java] Re: JPA and Scala

2009-10-20 Thread Yegor
Hi, Chris, Scala is quite interoperable with Java. Wouldn't it make sense to write data objects in Java and use them from Scala? Or maybe wrap them into Scala classes to take advantage of Scala facilities? It is, of course, more work, but it will keep your design clean and should avoid any

[appengine-java] Discussion on will-it-play-in-app-engine

2009-10-20 Thread Nate Drake
OpenAMF is working for us in AppEngine. --~--~-~--~~~---~--~~ 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 unsubscribe

[appengine-java] Can fliter the child class based on parent class's property?

2009-10-20 Thread Vincent
for example: parent class is Classroom and clid class is Student; this is one to many owned relationship. if I need find all the students under classroom 101, can I query in below way? query = pm.newQuery(Student.class); query.setFilter(student.getClassroom().getClassroomName() ==

[appengine-java] Re: Unable to start embedded HTTP server error

2009-10-20 Thread Kris Carle
The solutions is in this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/df660675d21c64f0 SDK 1.2.6 requires the JVM argument -javaagent:sdk_root/lib/agent/ appengine-agent.jar If you are using the Eclipse plugin, the upgrade to 1.2.6 doesn't automatically add

[appengine-java] Re: Eclipse start server error after update to 1.2.6

2009-10-20 Thread Kris Carle
Hi Keith and Peter, This helped me, thanks. It would help others if the release notes of the eclipse plugin http://code.google.com/eclipse/ mentioned that upgrading would break existing projects. I was assuming that I had broken something until I remembered that I upgraded recently. In case it

[appengine-java] Help me in Guestbook googlecode.

2009-10-20 Thread Jefferson
Hello everybody I am using the example that is in the Guestbook googlecode, I'm trying to get him to catch all the messages that are in the name of the User logged in, I could not do this with an if and not modifying the sql file in guestbook.jsp Any solution?

[appengine-java] Increasing Jetty max form size for JSF application

2009-10-20 Thread Scott Stevenson
I'm hitting problems with the maximum form size imposed by Jetty. By default it is set to 200,000 which doesn't seem to be enough for my client-side state saving JSF 2.0 application. java.lang.IllegalStateException: Form too large25742320 [java] at

[appengine-java] Re: Can anyone provide me an example on add/remove tag to an Entity?

2009-10-20 Thread Jason (Google)
Hi Max. This is currently the only reference available: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Category.html Do you have any specific questions around it? - Jason On Sat, Oct 17, 2009 at 10:02 AM, Max thebb...@gmail.com wrote: I am not able to

[appengine-java] Re: JDO/JPA Snippets That Work: Change of venue!

2009-10-20 Thread Jason (Google)
Hi Jorge. Have you seen the App Engine Cookbook? Users are free to post and search for code snippets: http://appengine-cookbook.appspot.com/ - Jason On Sat, Oct 17, 2009 at 5:26 AM, Jorge athenas...@gmail.com wrote: Thanks Max for sharing your experience and conclusions about this

[appengine-java] Re: Debate sobre will-it-play-in-app-engine

2009-10-20 Thread Steve B.
I recently got velocity working with my own webapp. There was a wrinkle that had something to do with logging - I do not recall the details since it is now fixed. I use velocity to allow users to define email templates (as oppose to using the servlet to create html pages). Not sure if this

[appengine-java] Role: Sr. Oracle PL/SQL Developer - Direct Client Requirement

2009-10-20 Thread Suren
Hi, This is Surendra with Infowave Systems and presently we have an Immediate Requirement and Let me know if you are interested in the Below Position. Role: Sr. Oracle PL/SQL Developer Location: Holyoke, MA Duration: 6-12 Months NOTE: Prefer MASTER’S in US Job Description • Senior Level

[appengine-java] Re: javax.jdo.JDOFatalUserException

2009-10-20 Thread Jason (Google)
Hi Jorge. Can you post your persistent classes and the code you're using to store and retrieve your entities? Also, can you post the contents of your jdoconfig.xml file and tell me where it's located (it should be in war/WEB-INF/classes/META-INF)? Also, which version of the SDK are you using? -

[appengine-java] Re: Persisting java.util.TimeZone

2009-10-20 Thread Jason (Google)
Have you tried storing it as a serialized property? http://gae-java-persistence.blogspot.com/2009/10/serialized-fields.html If so, then please post your implementation that doesn't work and any log details re: the failure. - Jason On Fri, Oct 16, 2009 at 7:07 AM, aldrinm aldr...@gmail.com

[appengine-java] Re: Possible to Add Child to Owned One to Many Relationship Without Loading All Children?

2009-10-20 Thread lent
Thanks leszek. We are going do what you suggest (the JPA equivalent). In order to generate the unique part of the child's key, I'm wondering if there is a way to use sequence in JPA. In JDO, I think you can do something like: Sequence seq = pm.getSequence(child.sequence); long id =

[appengine-java] Re: cache in serlvet

2009-10-20 Thread Jason (Google)
Application instances are automatically created and spun down as needed given the level of traffic to your application. If you have multiple instances of your application running, you will need to recreate your cache for each instance since static members aren't shared between instances. You can,

[appengine-java] Re: How much time should it take to upload(deploy) a new version of an application?

2009-10-20 Thread Jason (Google)
That is definitely unusual, even over a slow connection. In general, it takes me 10-20 seconds or so depending on the number of modified files (using broadband). I haven't heard of any similar issues from other developers -- are you sure it's not your network connection/proxy? Can you try

[appengine-java] Re: Servelts versus JSPS

2009-10-20 Thread Jason (Google)
JSPs are much easier to work with in the presentation layer -- you can use raw markup instead of enclosing all output in response.getWriter.println(...). Since you can include raw Java in JSPs as well, you technically don't need servlets to build a full Java application. That said, servlets are

[appengine-java] Re: java.lang.AbstractMethodError at com.google.appengine.tools.development.DevAppServerImpl.getUserPermissions() moving from SDK 1.2.5 to 1.2.6

2009-10-20 Thread Esteban Masoero
Toby: Any comments about this? An issue about it was created here: http://code.google.com/p/googleappengine/issues/detail?id=2280 Thanks, Esteban Miguel Méndez escribió: You have the javaagent on the command line so that it's definitely not missing. It looks like you have your project

[appengine-java] Re: Role: Sr. Oracle PL/SQL Developer - Direct Client Requirement

2009-10-20 Thread Peter Ondruska
Please, would you turn on moderation for new posts. More and more spam is coming, it is really getting annoying. Thanks On Oct 20, 7:53 pm, Suren recruiter.suren...@gmail.com wrote: Hi, This is Surendra with Infowave Systems and presently we have an Immediate Requirement and Let me know if

[appengine-java] Re: Role: Sr. Oracle PL/SQL Developer - Direct Client Requirement

2009-10-20 Thread Andrew Badera
And, ban this repeat offender Suren already. ∞ Andy Badera ∞ +1 518-641-1280 ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Tue, Oct 20, 2009 at 4:07 PM, Peter Ondruska peter.ondru...@gmail.com wrote: Please, would you

[appengine-java] Re: Gradual move from XAMPP to app engine

2009-10-20 Thread Jason (Google)
You're talking about using two or more back-ends, one hosted on App Engine and the other on your existing Apache setup. Yes, this is possible, although you'll have to juggle multiple domains in your GWT client code since App Engine apps are hosted on appspot.com. It's not completely unusual to

[appengine-java] Re: Where to report an error?

2009-10-20 Thread Jason (Google)
Please include your application ID and the full stack trace. If you don't see a stack trace printed in the browser, check your error logs in your application's Admin Console. - Jason On Mon, Oct 19, 2009 at 6:43 AM, Joe bv.app.ser...@gmail.com wrote: I am getting this error since Friday Oct.

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-20 Thread Jason (Google)
No. The StreamingQueryResult class, which is a List used by DataNucleus to store query results, does not implement Serializable which is required for all objects stored in memcache. But you can create another List, i.e. an ArrayList, copy the (serializable) results into it, and cache this. You'll

[appengine-java] Re: Server error

2009-10-20 Thread Jason (Google)
Hi Connie. If you're still seeing this error, please reply with your application ID and any relevant stack traces you see in your logs, which you can access from your app's Admin Console. - Jason On Mon, Oct 19, 2009 at 4:26 PM, constance irwin javagir...@gmail.comwrote: I received the

[appengine-java] Re: Failing to retrieve child-objects in a one-to-many JDO relation in datastore

2009-10-20 Thread Jason (Google)
Max is right, although there's a small issue with the syntax: @Persistent(mappedBy=parent, defaultFetchGroup = true) public ListChild childs; - Jason On Mon, Oct 19, 2009 at 10:26 PM, Max Zhu thebb...@gmail.com wrote: Hi Lars, Try to annotate your relationship as follows:

[appengine-java] why dont my two longs equal each other?

2009-10-20 Thread John V Denley
OK so Im sending in an ID number (Long) and Im doing a query on the datastore, getting all the contacts in the database, using the getID function to get the StoredID and comparing the ID's. However for some reason the boolean test below never becomes true, despite after stepping through the

[appengine-java] Re: why dont my two longs equal each other?

2009-10-20 Thread nclemeur
Just use StoredID.equals(ID) These are objects in Java, so you need to use equals (or StoreID.longValue==ID.longValue) Cheers Nicolas On Oct 21, 12:39 pm, John V Denley johnvden...@googlemail.com wrote: OK so Im sending in an ID number (Long) and Im doing a query on the datastore, getting

[appengine-java] Re: Can anyone provide me an example on add/remove tag to an Entity?

2009-10-20 Thread Max Zhu
Hi Rusty, Thanks for your reply. I know that is a tag, but what I am looking for is how to implement using GAE. Hi Jason, I can not make my question more specific because I totally have no idea on it. :) Can I say we just simply put a SetCategory to an Entity? Then how can I make use of it

[appengine-java] Re: Caching using static fields

2009-10-20 Thread Adligo
Hi All, I also struggled with this topic a bit, and I am wondering why the google app engine doesn't have some api like; GWT RPC? public MachineMacOrSomething getRAMSessionMachineIdString session); regular http myapp.appspot.com/whatRAMSessionMachineId?jsessionId=/xyz It would also solve the

[appengine-java] AccessControlException on OutputStream#write(byte b[], int off, int len)

2009-10-20 Thread Thomas Wiradikusuma
Hi, The following Groovy snippet throws exception: byte[] responseData = byteOut.toByteArray() response.setContentLength(responseData.length) response.setContentType(application/octet-stream)