[appengine-java] Re: Tutorial for datastore with low-level api?

2009-10-22 Thread Richard
Hi Yasuo, The maximum number of entities in a batch put or batch delete is 500. The maximum number of entities in a batch get is 1000. That's true, but in this case I'm assuming not all keys have entries so I'll only get back the entities that exist. They keys that have no associated entities

[appengine-java] Re: Tutorial for datastore with low-level api?

2009-10-22 Thread Yasuo Higa
Hi Richard, On Thu, Oct 22, 2009 at 3:11 PM, Richard richard.wat...@gmail.com wrote: Hi Yasuo, The maximum number of entities in a batch put or batch delete is 500. The maximum number of entities in a batch get is 1000. That's true, but in this case I'm assuming not all keys have entries

[appengine-java] Re: AccessControlException (SerializablePermission enableSubclassImplementation) - Wicket on GAE

2009-10-22 Thread a.maza
I'll be happy to share the code as soon as it is running smoothly and I got rid of the above mentioned AccessControlException. Thus, I hope somebody could give me a hint what is causing the exception. Regards, andr On 21 Okt., 23:14, Esteban Masoero emaso...@getsense.com.ar wrote: a.maza:

[appengine-java] Re: Simple question: How to decrease a counter in a transaction

2009-10-22 Thread dflorey
Can someone help? What am I doing wrong? On 19 Okt., 11:04, dflorey daniel.flo...@gmail.com wrote: Hi all, I need help! I'm using concurrent tasks executed in a task queue. Let's say I want to spawn 100 concurrent tasks and do something once they are all done. I thought this is simple by

[appengine-java] Re: java.lang.NullPointerException cannot be cast to javax.servlet.ServletException

2009-10-22 Thread Marc Guillemot
Don, I've tried to produce a unit test to open an issue for Jasper... and failed. I'm now quite sure that this is a bug in the JVM used for GAE. The JavaDoc of AccessController.doPrivileged (which is a native method) says that it propagates unchecked exceptions and throws a

[appengine-java] SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Nacho Coloma
Hi all, We have been developing a persistence framework for the AppEngine Datastore based on the raw DatastoreService API. For our (simple) persistence case, both JDO and JPA were a bit overkill as we were spending a significant amount of time jumping through hoops to make our application roll,

[appengine-java] Re: about missing values

2009-10-22 Thread Alexander Arendar
Hi Jason, maybe my question is a trivial for you but still: how melodramatically should I detect when the value is NOT set? As you already explained i can't use ==null. What should I use instead? Sincerely, Alex On Oct 21, 9:36 pm, Jason (Google) apija...@google.com wrote: No. If an entity

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Richard
Sounds good. I also think I'll focus much of my attention on the low- level API, so this could be very useful! Regards, Richard On Oct 22, 11:37 am, Nacho Coloma icol...@gmail.com wrote: Hi all, We have been developing a persistence framework for the AppEngine Datastore based on the raw

[appengine-java] Re: Tutorial for datastore with low-level api?

2009-10-22 Thread Richard
You cannot specify more than 1000 keys in a batch get. If you specify more than 1000 keys in a batch get, you will encounter the following exception: java.lang.IllegalArgumentException: cannot get more than 1000 keys in a single call Aha, thanks Yasuo. Regards, Richard

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

2009-10-22 Thread Abhinav Lele
Hi, Here is the code that I am using upload.html html body form enctype=multipart/form-data method=POST action=/fs/upload input type=file name=uploadtest input type=submit value=upload /form /body /html Servlet code: ServletFileUpload upload = new ServletFileUpload(); // Parse

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Roy Smith
I did more or less the same thing for the same reasons, and with the same happy result.The only difference for me was instead of annotations, I generate my model from an RDBMS. This way I know I can port my app to an RDBMS world should GAE ever go the same way as Google Notebook. On Thu, Oct 22,

[appengine-java] Errors 500 and 409 while updating application

2009-10-22 Thread WSouza
Hello, Since about 15 mins ago, when I try to update my application, it is returning an error 500 (internal server error) and if i try again, error 409 (conflict) until I restart my eclipse, then it goes back to error 500 once and then 409 again. Did something happen and my application got

[appengine-java] Re: Errors 500 and 409 while updating application

2009-10-22 Thread Don Schwarz
The 500 errors in the Admin Console are a general issue that we're looking into. The 409's indicate that you have a pending update that needs to be rolled back (via appcfg.sh rollback) due to one of the 500 errors. After rolling the update back you can try to deploy again. On Thu, Oct 22, 2009

[appengine-java] Re: Errors 500 and 409 while updating application

2009-10-22 Thread WSouza
Ok. Thank you! On Oct 22, 1:10 pm, Don Schwarz schwa...@google.com wrote: The 500 errors in the Admin Console are a general issue that we're looking into. The 409's indicate that you have a pending update that needs to be rolled back (via appcfg.sh rollback) due to one of the 500 errors.  

[appengine-java] Authentication with Google Apps

2009-10-22 Thread sportrider
I am working to publish a site on App Engine and would like to authenticate users by using their Google Apps email rather than a gmail email. For example I'd like my users to enter their u...@mycompany.com email rather than someb...@gmail.com. Is this possible? I've tried adding mycompany.com

[appengine-java] Failing to load child objects from datastore

2009-10-22 Thread MCaraway
I have a JUnit which I'm testing storing and retrieving of objects into the datastore. So far I cannot get any of the one to one or one to many children objects to load. Am I doing something wrong? Below I've listed my simple test with snippets of the objects.

[appengine-java] External MySQL

2009-10-22 Thread seagull1
For my app, I need to access an external MySQL database and add data (this is a connection between my app and a project outside of my control). My app uses JDOs and all that what not. I see that java.sql is on the white list, but perhaps some other things are not (Drivers and ability to make

[appengine-java] Re: External MySQL

2009-10-22 Thread Richard
I think you'll need to build a web service in front of the MySQL db and call it from GAE's urlfetch. I don't see how you could connect directly. Regards, Richard On Oct 22, 7:54 am, seagull1 davidsei...@gmail.com wrote: For my app, I need to access an external MySQL database and add data

[appengine-java] Re: JDO persistent fields on superclasses bug resolved?

2009-10-22 Thread Max Ross
Sorry Erem, that was an earlier attempt to fix the problem in a quick and dirty way. It turned out to be far too quick and far too dirty. There is a newer bug to support inheritance that is currently open: http://code.google.com/p/datanucleus-appengine/issues/detail?id=25 I've merged the bug

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Raphael André Bauer
On Thu, Oct 22, 2009 at 7:55 PM, Diana Cruise diana.l.cru...@gmail.com wrote: What options do I have in GAE to allow Users to upload, store, and view media (photos, video, audio, etc) from my within my application? in short: it's not possible. (don't forget that there is a 1mb limit for

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Vince Bonfanti
Hi Diana, I've created GaeVFS to solve this problem: http://code.google.com/p/gaevfs/ You can view a demonstration here: http://gaevfs.appspot.com/ Note that the current released version (0.3) will only upload about 2.0MB before timing out; the latest code in SVN will support the

[appengine-java] Re: ClientLogin and user data

2009-10-22 Thread Jason (Google)
If you're trying to get your personal contact information using the Google Contacts data API, then you should be asking this in the Google Contacts API discussion group: http://groups.google.com/group/google-contacts-api If you're using ClientLogin with App Engine, you can submit the token to

[appengine-java] Re: Caching using static fields

2009-10-22 Thread Jason (Google)
You're welcome to file a feature request, although for the time being, memcache and the datastore will remain the only mechanisms for communicating across all instances of a running application. http://code.google.com/p/googleappengine/issues/list - Jason On Tue, Oct 20, 2009 at 10:20 PM,

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise
Vince, I was unable to upload small photos...getting error code 500! What is the basic principle behind this solution? It appears you are storing the file in datastore in increments of 1M or less...along the lines of what Raphael was getting at. How do you display a list of images from the

[appengine-java] JDO Collection Load Issue

2009-10-22 Thread jeffgnpc
I am having an issue loading Collections after they have been stored in the datastore. I have simplified this issue down to a simple example listed below. If I run with the current comments, everything works fine, and the Collections are loaded. If I uncomment foo1 or foo2, the Collections no

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise
Actually, I tried simple files without spaces also and they failed too. When I hit your photo I noticed execellent response time...have you noticed any particular degradation when displaying lists of photos, for example? On Oct 22, 3:58 pm, Diana Cruise diana.l.cru...@gmail.com wrote: Thanks

[appengine-java] Re: LIKE query workaround for the Low Level API

2009-10-22 Thread Nicholas Albion
I don't suppose it's possible to do: myString LIKE %,foo,% I'm surprised that the datastore used by a search engine doesn't have better support for string searching/comparison... --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Vince Bonfanti
Can you try a different browser? From the logs it looks like you're using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on Windows) and they all worked fine. Something about the path being sent by the browser is causing the error--if we can narrow it to IE7 then I can investigate

[appengine-java] Re: [Persistence] Problem with saving parent entity

2009-10-22 Thread Jason (Google)
As a quick sanity check, can you issue an ancestor query on the stored Source using the low-level datastore API? This will help verify whether all News entities are being saved in the same entity group as the Source entity, which is the implicit assumption here. Also, you should modify your

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise
Yes, that worked ok from another system so it must be an IE7 problem...good catch! On Oct 22, 5:55 pm, Vince Bonfanti vbonfa...@gmail.com wrote: Can you try a different browser? From the logs it looks like you're using IE7. I just tried with IE8, Chrome, and Firefox 3 (all on Windows) and

[appengine-java] Re: Photo and Video services

2009-10-22 Thread Diana Cruise
What is the nature of the 10Mb limit again? On Oct 22, 6:38 pm, Diana Cruise diana.l.cru...@gmail.com wrote: Yes, that worked ok from another system so it must be an IE7 problem...good catch! On Oct 22, 5:55 pm, Vince Bonfanti vbonfa...@gmail.com wrote: Can you try a different browser?

[appengine-java] Re: Casting Text to String exception

2009-10-22 Thread Yasuo Higa
Hi seungjin, On Thu, Oct 22, 2009 at 2:05 PM, seungjin seung...@seungjin.net wrote: I was trying to cast from Text (com.google.appengine.api.datastore.Text) to String with getValue() and toString() method but keep getting java.lang.ClassCastException: java.lang.String. You can convert Text

[appengine-java] Re: using contains(Key) in JDO query

2009-10-22 Thread Yasuo Higa
Hi king, On Fri, Oct 23, 2009 at 4:21 AM, king kingalpha...@gmail.com wrote: Thanks Yasuo, it works!  Do you know how I can set filter for multiple keys? that is, how I can do something like: query.setFilter(detailKeySet.contains(:keyList)); In case of a primary key field, you can use a

[appengine-java] How Task Queue dispatches each task to multiple JVMs

2009-10-22 Thread kaz
Hi all, I just posted my test result of Task Queue. Any feedbacks are welcome: http://kazunori279.blogspot.com/2009/10/how-task-queue-dispatches-each-task-to.html Thanks, Kaz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Roy Smith
My goal wasn't to economise on api _ms so I haven't done any comparisons. afaik, commit is done at an entity level, so I don't monitor individual fields for changes. If I'm wrong then it wouldn't be too difficult to build dirty flags into my DTO setters. My advice to anybody building apps for GAE

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Rusty Wright
The name initially confused me because it made me think of http://www.opends.org/ Nacho Coloma wrote: Hi all, We have been developing a persistence framework for the AppEngine Datastore based on the raw DatastoreService API. For our (simple) persistence case, both JDO and JPA were a

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-10-22 Thread Rusty Wright
Peter, it was gratifying to hear you say detach/attach is also problematic when dealing with caching and transactions because I've been banging my head against the wall trying to write integration tests with GAE's datastore, using JDO and Spring's transactions. I either get the is managed by

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

2009-10-22 Thread Prashant
good question ! i'm also waiting for it's answer. --~--~-~--~~~---~--~~ 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] Re: Can anyone provide me an example on add/remove tag to an Entity?

2009-10-22 Thread edarroyo
Me too! On Oct 20, 8:09 pm, Max Zhu thebb...@gmail.com wrote: 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

[appengine-java] Re: using contains(Key) in JDO query

2009-10-22 Thread datanucleus
query.setFilter(key == :keyList); ListMaster list = (ListMaster) query.execute(keyList); I'd like to know if that works with GAE/J, because it is illegal JDOQL syntax and would be a bug. JDOQL is supposed to follow Java syntax, and you simply cannot do Key == ListKey and get success in Java.