[appengine-java] Re: String limit in JDO

2010-06-30 Thread Ian Marshall
You might want to try the persistent class com.google.appengine.api.datastore.Text as mentioned in http://code.google.com/intl/en/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types as this class has no specific character length limit. Of course, use of this must still satisfy

[appengine-java] Re: app upload issue

2010-06-30 Thread Szymon Malok
Change your app version and upload then. On 1 Lip, 04:47, Vik wrote: > Hie > > Can someone help me on how to resolve it? I understand what the error means > but dont know where to go to fix it > > Initiating update. > java.io.IOException: Error posting to > URL:https://appengine.google.com/api

Re: [appengine-java] name LIKE '%abc%'

2010-06-30 Thread RAVINDER MAAN
Please check http://groups.google.com/group/google-appengine-java/browse_thread/thread/56720b03aa0d76fd/be4a5b327dd4051c?hl=en&lnk=gst&q=like#be4a5b327dd4051c -- Regards, Ravinder Singh Maan -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java

[appengine-java] Re: BlobStore + Guice Servlets on Dev AppServer

2010-06-30 Thread Matt Mastracci
Hey all, I managed to solve it by adding Guice into the FORWARD dispatch chain as well. In dev mode, the blobstore service uses RequestDispatcher.forward() rather than an HTTP request: guiceFilter /* REQUEST

[appengine-java] name LIKE '%abc%'

2010-06-30 Thread gaenoob
I would like to do this: SELECT * FROM names WHERE name LIKE '%abc%'. How to do that in GAE's datastore? -- 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.

Re: [appengine-java] app upload issue

2010-06-30 Thread Don Schwarz
http://code.google.com/appengine/docs/java/tools/uploadinganapp.html#Command_Line_Arguments http://groups.google.com/group/google-appengine-java/browse_thread/thread/7beadad55307cca5 On Thu, Jul 1, 2010 at 2:47 AM, Vik wrote: > Hie > > Can someone help me on how to resolve it? I understand what

[appengine-java] Re: String limit in JDO

2010-06-30 Thread Didier Durand
Hi, why don't you use blobs ? http://code.google.com/appengine/docs/java/blobstore/overview.html didier On Jun 30, 6:59 pm, Developer wrote: > Hi! > > I'm developing blog engine using JSP, servletts and JDO (thru GAE). > And I've got a problem. > > For blog-posts I've developed persistance cla

[appengine-java] app upload issue

2010-06-30 Thread Vik
Hie Can someone help me on how to resolve it? I understand what the error means but dont know where to go to fix it Initiating update. java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=sakshumweb20&version=1&; 409 Conflict Another transaction by

[appengine-java] BlobStore + Guice Servlets on Dev AppServer

2010-06-30 Thread Matt Mastracci
Hi all, I'm running into an issue on the Dev AppServer where the redirect after blob upload doesn't work. I get a 404 error from Jetty when the upload completes, even though the URL is valid outside of the upload request. I believe this is because Guice handles all of the serving itself from a Gu

Re: [appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread Ikai L (Google)
That was referring to the bulkloader, which lets you do those things. App Engine's datastore isn't a relational database. We can't do a dump of all your data without iterating through all of your indexes, then retrieving your Entities. On Wed, Jun 30, 2010 at 4:02 PM, mscwd01 wrote: > Thanks for

[appengine-java] SDK 1.3.5 released!

2010-06-30 Thread Ikai Lan
Hey everybody, We've released the 1.3.5 SDK. Blog post here: http://googleappengine.blogspot.com/2010/06/app-engine-sdk-135-released-with-new.html The big announcements are the raising of the Task Queue rate, Python precompilation, and new Blob features. You can get it from the downloads page:

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread mscwd01
Thanks for replying Ikai. I assumed the "Datastore dump and restore facility" on the roadmap was referring to an import/export tool - a way for us to download the contents of the datastore for safekeeping and restoring it if needs be? Is this something different? Lastly, I would consider an import

[appengine-java] Re: Limiting the number of requests per IP each minute

2010-06-30 Thread mscwd01
Thanks for confirming that Ikai. Just a quick question, why append the IP address with time & date? I assume it's to determine when the last time the given IP was inserted into the memcache? I.e. Key = "2010,06,30,12 - 127.0.0.1" However, how would you perform a lookup for the key in the memcach

[appengine-java] Re: CloudCover: Cannot schedule instance of TestClass because of not an available class

2010-06-30 Thread luijar
I am seeing this however, Executing a simple query: Illegal argument javax.jdo.JDOFatalUserException: Illegal argument at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java: 344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:252) at This query

[appengine-java] Re: CloudCover: Cannot schedule instance of TestClass because of not an available class

2010-06-30 Thread luijar
I was seeing the same thing, I am using JUnit4. I fixed that by doing: TestSuite suite = new TestSuite(); suite.addTestSuite(MemcacheTest.class); return new JUnitTestRun(suite); On Jun 12, 11:57 pm, "Max Ross (Google)" wrote: > This most likely means that your tests aren't available as part o

[appengine-java] Why is Blobstore limited to content type multipart/form-data?

2010-06-30 Thread Mouseclicker
Hi, I would like to upload content using a "plain" http POST command sending images or other content. The only supported way to upload content >10MB is BlobStore, but this can only handle data encoded as multipart/form-data? Why is such a restriction enforced and even for a payed service? I trie

[appengine-java] Re: How to upload primary key as an id instead of name

2010-06-30 Thread Matthew Blain
The 1.3.5 bulkloader client will allow you to specify a numeric key; you must use the Key constructor explicitly to do this, integers will still be converted into strings. On Jun 30, 12:12 am, MANISH DHIMAN wrote: > Hi All > When I upload data using CSV file on G A E. Primary key is stored > ther

Re: [appengine-java] OAuth signed request still redirects protected URLs to signin page

2010-06-30 Thread Ikai L (Google)
No, signed requests will still be redirected. Auth-constraint only applies to Users logged in via the web or OpenID. This is a good feature request, however, and I will bring it up. On Wed, Jun 30, 2010 at 12:00 PM, Derek Battams wrote: > I am now using OAuth for authentication to my app. I've

Re: [appengine-java] Re: Limiting the number of requests per IP each minute

2010-06-30 Thread Ikai L (Google)
Yes, I have used your technique in the past. For the key, however, I've used this as the key: (Pseudocode): strftime("%Y %m %d %h") + ipaddress Memcache uses LRU to expire elements, so once the hour passes, the key will be quickly expired as it falls off the end of the list. On Wed, Jun 30, 201

Re: [appengine-java] Regarding Datastore

2010-06-30 Thread Ikai L (Google)
Yes, you can query using the low level API for a list of Keys, then call delete with that List. I'll be expanding my blog post series about the low-level API sometime soon. On Fri, Jun 25, 2010 at 4:28 AM, MANISH DHIMAN wrote: > Hi All > I have the following queries. > > -- I inserted a new enti

[appengine-java] OAuth signed request still redirects protected URLs to signin page

2010-06-30 Thread Derek Battams
I am now using OAuth for authentication to my app. I've protected some URLs in my web.xml with: * However, a signed OAuth request to one of these URLs still replies with a 302 redirect to the Google signin page for my app. Is this expected behaviour? I'd expect that a signed OA

Re: [appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread Ikai L (Google)
A web-based import/export tool is and was not ever on our roadmap: http://code.google.com/appengine/docs/roadmap.html The roadmap is not an all-inclusive list of features we plan to build, but rather, a list of features we have high confidence will ship in the upcoming 6 month timeframe. You are

[appengine-java] Re: Disable Single Property Indexes

2010-06-30 Thread James
(Clarification - I'm ok w/ disabling both composite and single-prop indexes, just wondering how) On Jun 30, 10:40 am, James wrote: > Thanks Nick, that's good to know. > > Is there a way to disable (single property + composite) indexes: > 1 - Using JDO > 2 - By applying this to existing data (vers

[appengine-java] java.security.AccessControlException

2010-06-30 Thread Adaptavant Cochii
Hi Techies , Am newbie to GAE and Restlet, am creating a Spring application with Restlet running in GAE where am invoking the Restlet Webervice. I have written sample code Spring + Restlet. Code : === try {

[appengine-java] Eclipse Content Assist Support For Facelets

2010-06-30 Thread Ömer GÖK
Hi all, I'm using Eclipse Helios and this version of Eclipse has Faceletes support for content assist. And it works well for standart "Dynamic Web Project". But I tried to create an app engine project with jsf support. It has been told at myfaces' web site (http:// myfaces.apache.org/core20/myface

[appengine-java] String limit in JDO

2010-06-30 Thread Developer
Hi! I'm developing blog engine using JSP, servletts and JDO (thru GAE). And I've got a problem. For blog-posts I've developed persistance class Posts with some fields and with main String-field "text" for content of post. The problem is the max lenght of this field: I can't add blog-posts larger

[appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-30 Thread James
Jake - Thanks for sharing that! Are you using it successfully w/ GAE? I'm having a problem using it w/ the dev appserver. I'm not the only one - http://code.google.com/p/projectlombok/issues/detail?id=112 I suspect it's just a config issue... lombok should probably only be in the buildpath, no

Re: [appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2010-06-30 Thread Sudhir Ramanandi
Same here.. With JDO/JPA you solve one issue/limitation and you encounter 2 another. On Wed, Jun 30, 2010 at 8:51 PM, Ian Marshall wrote: > Hello James, > > 4 hours? Is that all? I would be far too embarrassed to tell you how > long it took me! > > > On Jun 29, 8:13 pm, James wrote: > > I'd lov

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2010-06-30 Thread James
Well, the clock's still ticking... Some other points of confusion I've (finally) gotten over: - Directly accessing fields rather than using accessor methods - Entities that aren't marked as detachable can still be detached; wtf? - What if a base class is marked as detachable but subclass is not?

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread mscwd01
Can I attempt to get the attention of a Google employee to ask "When can we expect an in-built web based import/export tool for the GAE?" Thanks :P On Jun 30, 11:04 am, François Masurel wrote: > I dont think the bulkloader is really convenient for doing daily > datastore backups of several gigab

[appengine-java] Re: Limiting the number of requests per IP each minute

2010-06-30 Thread mscwd01
Thanks for replying. First question, how would sharding counters be useful for limiting people's requests? Secondly, the request cannot be interrupted by a captcha as the request wont be done in a browser and needs to be automatic - either it succeeds or fails. Any other ideas? More importantly

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

2010-06-30 Thread limcheekin
Hi jarent, Great to heard that you managed to run drools in google app engine. Any URL? -- 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 fr

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2010-06-30 Thread Ian Marshall
Hello James, 4 hours? Is that all? I would be far too embarrassed to tell you how long it took me! On Jun 29, 8:13 pm, James wrote: > I'd love to see Max Ross continue on these posts.  I've burned about 4 > hrs now trying to get JDO owned, bidirectional relationships working. > It seems like ev

[appengine-java] Re: Disable Single Property Indexes

2010-06-30 Thread James
Thanks Nick, that's good to know. Is there a way to disable (single property + composite) indexes: 1 - Using JDO 2 - By applying this to existing data (versus some sort of "delete/ recreate an entire Kind" approach) James On Jun 30, 10:23 am, "Nick Johnson (Google)" wrote: > Hi James, > > It'

Re: [appengine-java] Disable Single Property Indexes

2010-06-30 Thread Nick Johnson (Google)
Hi James, It's not possible to disable just the single property indexing. If you exclude a property from being indexed, it won't be included in these indexes, but it won't be included in any composite indexes, either. -Nick Johnson On Wed, Jun 30, 2010 at 3:04 PM, James wrote: > Is there a way

[appengine-java] Disable Single Property Indexes

2010-06-30 Thread James
Is there a way to disable the automatic single-propery indexes using JDO? Can they be disabled on data that already exists, or would I need to create an entirely new Kind? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to

[appengine-java] Local Unit Testing with UserService: userId==null problem

2010-06-30 Thread Dmitriy T.
I use Local Unit Testing and recently change auth system and start using userService.getCurrentUser().getUserId() for identification. Problem is that its always return null in Local Testing (federatedIdentity==null too). For many reasons that unacceptable for me. Is that unfixable, or exist someth

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread François Masurel
I dont think the bulkloader is really convenient for doing daily datastore backups of several gigabytes, and I'm not talking about exploding quotas. I would rather prefer some kind of snapshot mechanism on datastore side. François On 29 juin, 20:40, Matthew Blain wrote: > The bulk loader does i

[appengine-java] Re: Any ETA for a backup/restore facility?

2010-06-30 Thread Jan
Hi, I have successfully used the bulk loader from SDK v1.3.4 against the production server. Nevertheless, I am facing troubles importing using it against the local dev server. I would like to do local development using data I have downloaded from production. Did anyone manage to do that using the

[appengine-java] Re: Regarding Using Quartz Scheduler

2010-06-30 Thread TsEMaNN
Hi, is there a way to perform several hundreds of cron jobs simultaneously? I didn't find this on the specified URL. Best regards, tsemann On 1 Jun., 23:27, "Ikai L (Google)" wrote: > No, Quartz uses threads. For scheduled tasks, you'll want to use either Task > Queues or cron interface > > ht

[appengine-java] How to upload primary key as an id instead of name

2010-06-30 Thread MANISH DHIMAN
Hi All When I upload data using CSV file on G A E. Primary key is stored there as a name instead of id. Example. Format of .yaml is Given below transformers: - kind: City connector: csv connector_options: encoding: utf-8 columns: from_header property_map: - property: __key__