[appengine-java] Capabilities related tests

2010-10-04 Thread Guillaume Laforge
Hi all, I'd like to be able to test how my application is behaving in the case of some Capabilities are not enabled. For example, what happens when Capability.DATASTORE_WRITE has a status of DISABLED. I had another look at the testing jar and its various classes, but I didn't find a way to see

[appengine-java] Re: Looking for a JPA/Entity-Group Tutorial

2010-10-04 Thread Didier Durand
Hi Dave, try this for explanations on entity groups: http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths didier On Oct 3, 11:59 pm, Dave Hicks dh...@i-hicks.org wrote:   I'm having problems understanding how to get entities to play

[appengine-java] Re: JDO unique Long ID keys across entity groups

2010-10-04 Thread Fred
Thanks guys! Think I'll just concatenate parent and child ID for display purposes and keep the rest as it is. Fred On 1 Okt., 08:16, John Patterson jdpatter...@gmail.com wrote: You can use DatastoreService.allocateIds() to get a range of unique   keys that you can then assign to the children.  

[appengine-java] Re: allocateIds performance

2010-10-04 Thread dilbert
I have two classes. The first class contains a reference to the second. One service request might generate several such pairs. So I figured that I can batch store them at the end of the service request. To do that I need to generate ID-s for all the second classes. I thought that allocateIds was

[appengine-java] Re: problem with cache I suppose

2010-10-04 Thread Spiridon Kopicl
Thx Didier. -- 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

[appengine-java] Developing an AppStore for a GWT / App Engine application?

2010-10-04 Thread Ingo Jaeckel
hello everyone, i want to build an app store for a GWT application. users should open the app store from within the application, browse through apps and install them like they are used to it from other app stores e.g. apple app store or android market. i outlined my ideas about it in the wiki of

[appengine-java] Select query using LIKE

2010-10-04 Thread Ravi Dhanwate
Hi All, Please provide inputs if we can use LIKE in GQL query or if any alternative is available for this. Thanks. Ravi -- 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

Re: [appengine-java] Select query using LIKE

2010-10-04 Thread John Patterson
Use a GREATER_THAN_OR_EQUAL and a LESS_THAN filter to match a prefix - thats the best you can do for a single stored term. You will need to break the term up into multiple n-grams if you want to query for a partial match within a term. On 4 Oct 2010, at 16:25, Ravi Dhanwate wrote: Hi

[appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-04 Thread Ian Marshall
Mmmm: my link has been Googlised. If interested, try http://www.SwapPlace.co.uk instead. On Oct 4, 9:11 am, Ian Marshall ianmarshall...@gmail.com wrote: I disagree. I use Wicket and JDO on GAE/J; it works fine for me, including no serialisation problems. As a working example, I am

[appengine-java] Re: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-04 Thread Ian Marshall
I disagree. I use Wicket and JDO on GAE/J; it works fine for me, including no serialisation problems. As a working example, I am satisfied with my Wicket/JDO/GAE/J proof-of- concept web application at www.SwapPlace.co.uk. I am using the lessons learnt for my commercial web site development,

[appengine-java] Re: Looking for a JPA/Entity-Group Tutorial

2010-10-04 Thread Ian Marshall
Hi Dave, Have you tried the GAE/J persistence blog at: http://gae-java-persistence.blogspot.com by Max Ross of Google? I recommend it. It's got examples in both JDO (which I use) and JPA. Regards, Ian On Oct 3, 10:59 pm, Dave Hicks dh...@i-hicks.org wrote:   I'm having problems

Re: [appengine-java] Re: Capabilities related tests

2010-10-04 Thread Don Schwarz
Guillaume, this is a great idea. Please file an issue in our issue tracker and we'll follow up. On Mon, Oct 4, 2010 at 9:50 AM, Guillaume Laforge glafo...@gmail.com wrote: And I forgot a complementary question: Are there plans to add a mocked capabilities service in the testing jar?

[appengine-java] User Personal page

2010-10-04 Thread x_maras
Hi, I'm new to the cloud and not an experienced developer. For a course I have to make a web application using the GAE and I will also use JAVA for it. I did a few tutorials but I still have questions that don't let me start with my project. In my application I want people to be able to

[appengine-java] Tell data store not to selected index properties on bulkupload

2010-10-04 Thread Maxim Veksler
Hello, I would like to disable indexing for properties I know I won't be using for query filtering to save storage space. I have used bulkuploader to push ~500mb of data into the datastore. These Entities contain lot's of properties which won't be used for filtering, for ex. CountryName I would

Re: [appengine-java] Re: Capabilities related tests

2010-10-04 Thread Guillaume Laforge
Hi Don! Here it is: http://code.google.com/p/googleappengine/issues/detail?id=3821 I hope the description is okay? Guillaume On Mon, Oct 4, 2010 at 17:48, Don Schwarz schwa...@google.com wrote: Guillaume, this is a great idea.  Please file an issue in our issue tracker and we'll follow up.

[appengine-java] Re: Google App Engine MUD

2010-10-04 Thread 番頭Fattom
If the client access server with HTTP, GAE is definitely OK. But in my experience, Telnet is a better protocol for Mud/BBS. And I think GAE do not support socket function. If GAE support WebSocket, it will be a good way to approach that... (but I am not sure about this feature.) The most

Re: [appengine-java] Re: Capabilities related tests

2010-10-04 Thread Don Schwarz
Looks good. Thanks. On Mon, Oct 4, 2010 at 12:00 PM, Guillaume Laforge glafo...@gmail.com wrote: Hi Don! Here it is: http://code.google.com/p/googleappengine/issues/detail?id=3821 I hope the description is okay? Guillaume On Mon, Oct 4, 2010 at 17:48, Don Schwarz schwa...@google.com

Re: [appengine-java] Batch put for JDO objects

2010-10-04 Thread Ikai Lan (Google)
There is no way to write a JDO object with the low-level API. You need to convert it into an Entity and save the Entity. Can you post any code? -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine

[appengine-java] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

2010-10-04 Thread Deepika M
Hi, I have an entity called Node with attributes and the setters and getters for them: private int source; private int graphId; private SetInteger adjacentNodes; In my servlet I have the following query: Query query1= em.createQuery(SELECT x FROM pojos.Node x WHERE graphId=:graph1Id);

[appengine-java] Re: Tell data store not to selected index properties on bulkupload

2010-10-04 Thread Peter Ondruska
Just define entity properties with indexed=False, e.g. class Authorization(db.Model): domain = db.StringProperty(required=True) code = db.StringProperty(required=True, indexed=False) # update = db.DateTimeProperty(required=True, auto_now_add=True) and then bulkload On Oct 4, 6:26 

[appengine-java] I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-04 Thread Marcel Overdijk
http://janrain4j.appspot.com/ javax.servlet.ServletException: java.lang.RuntimeException: java.io.InvalidClassException: com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse; local class incompatible: stream classdesc serialVersionUID = -8862811237568844288, local class

Re: [appengine-java] I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-04 Thread Don Schwarz
This isn't the full stack trace so it's difficult to be sure, but do you store AbstractEngineResponses in an HTTP session? If so, it seems that the class is no longer compatible with the version stored in your session. If so, try clearing your cookies. This will create a new session for you.

[appengine-java] Object references imply ownership?

2010-10-04 Thread Dave Hicks
I'm using JPA, and I'm having a really tough time getting around this problem. It seems that when I try to refer to an object by way of a @ManyToOne, somehow DataNucleus wants to assume some kind of ownership and throws an exception. I have three kinds of objects: Person, Book, Rating.

[appengine-java] Re: Select query using LIKE

2010-10-04 Thread effpe
This test worked for me Query query = pm.newQuery(Employee.class); query.setFilter(lastName.startsWith(lastNameParam)); query.setOrdering(lastName, firstName, hireDate desc); query.declareParameters(String lastNameParam); ListEmployee results = (ListEmployee) query.execute(lastname); if

[appengine-java] Getting a LOT of mysterious 500 responses

2010-10-04 Thread Keith Lea
Hi, on our tiny little web service http://findbugs-cloud.appspot.com, we're getting a whole lot of 500 responses, with a mysterious message. It started a few months ago and has slowly but steadily gotten worse since. Since a 500 response makes our continuous build fail, it's getting irritating...

[appengine-java] Re: Downloading application logs from app engine

2010-10-04 Thread Matthew Blain
You can download them using the --severity flag http://code.google.com/appengine/docs/java/tools/uploadinganapp.html#Command_Line_Arguments On Oct 2, 5:25 am, Vikas Hazrati vhazr...@gmail.com wrote: I guess copy paste is the only way out ;) On Sep 30, 5:45 pm, Vikas Hazrati vhazr...@gmail.com

[appengine-java] Good wurfl example for mobile detection on app engine?

2010-10-04 Thread Shaun
Does any know of a good example and/or library to do WURFL mobile detection on App Engine or is there a better way to do it? Based on the users device I would like to serve a different interface Thanks! Shaun -- You received this message because you are subscribed to the Google Groups Google

[appengine-java] Will I be able to get more apps if needed?

2010-10-04 Thread Gal Dolber
-- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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

Re: [appengine-java] Object references imply ownership?

2010-10-04 Thread Hariharan Anantharaman
Hi, I have encountered similar error using JDO long time back. I firmly believe that if you use @ManyToOne or something it means a relationship amongst them. Though I don't remember exactly what I did ,Coupleof observations 1. In the rating class. Add annotation of rederenced by attribute in

[appengine-java] Re: Google App Engine MUD

2010-10-04 Thread MLS
Hi Fattom, Thanks for your response. I don't think most browsers support Websockets quite yet, and I don't want to tie people to a specific one. What is the most challenging part of writing a MUD for http aside from real time delivery, which I'm hoping Ajax push solves? Aside from that I believe

Re: [appengine-java] Object references imply ownership?

2010-10-04 Thread Dave Hicks
Hi Hari, I don't follow what you're saying in #1 below. #2 - This is just the way I have always modeled classes using JPA. In a relational database, the @ManyToOne would cause the key of the owning entity to be stored in the row. In this case, the Rating table would have a column to hold

Re: [appengine-java] Object references imply ownership?

2010-10-04 Thread Hariharan Anantharaman
On point #1, there is a way in JdO to say which attributes forms a relation or forms a join between two entities. It need not be the primarykey always. Also I don't think having more than 1 @ManyToOne relation should be a problem. I might need to look at my app code in the evening to see how did

Re: [appengine-java] Good wurfl example for mobile detection on app engine?

2010-10-04 Thread Gal Dolber
Hi, I used it long time ago, but not in appengine. You need to import the database and tweak a bit the java api. But it should work ok Best On Mon, Oct 4, 2010 at 7:16 PM, Shaun shaunc...@gmail.com wrote: Does any know of a good example and/or library to do WURFL mobile detection on App