[appengine-java] Re: Upgrade issue with Google SDK 1.2.5
Had the same problem, just remapping the SDK fixed it. This is under WIndow-Preferences-Google-App Engine. On Sep 6, 8:35 am, James H james.hollier...@gmail.com wrote: I used the Eclipse Soft Updates menu on Sep 4th to apply SDK 1.2.5 after noticing Red errors in the local runtime log telling me to do so. Actually, first I noticed my production app was failing to retrieve data so I figured I needed to first upgrade as instructed by the log message and then see if there were still any data issues. I had been running SDK 1.2.2 since July without problems locally or in production. The install of the upgrade ran without errors. Here is the Eclipse install history: Jul 12, 2009 1:24:28 PM file:/C:/homeGoogle/programs/eclipse/ site- install success Jul 12, 2009 1:49:03 PM Date / Time Target Action Status Jul 12, 2009 1:48:12 PM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- install success Jul 12, 2009 1:48:26 PM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- enable success Jul 12, 2009 1:48:26 PM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-install success Jul 12, 2009 1:49:03 PM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-enable success Jul 12, 2009 1:50:20 PM Date / Time Target Action Status Jul 12, 2009 1:50:06 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-install success Jul 12, 2009 1:50:20 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-enable success Jul 24, 2009 10:01:27 PM Date / Time Target Action Status Jul 24, 2009 10:01:01 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-install success Jul 24, 2009 10:01:27 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-enable success Jul 24, 2009 10:01:27 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-disable success Sep 4, 2009 6:27:25 AM Date / Time Target Action Status Sep 4, 2009 6:26:51 AM com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 feature- install success Sep 4, 2009 6:27:12 AM com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 feature- enable success Sep 4, 2009 6:27:12 AM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- disable success Sep 4, 2009 6:27:12 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 feature-install success Sep 4, 2009 6:27:25 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 feature-enable success Sep 4, 2009 6:27:25 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-disable success Sep 5, 2009 11:13:51 AM Date / Time Target Action Status Sep 5, 2009 11:12:38 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 feature-install success Sep 5, 2009 11:13:48 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 feature-enable success Sep 5, 2009 11:13:48 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-disable success At this point my Eclipse behaves as though the Google SDK is NOT installed. For example, the Google Icons are NOT displayed in the Toolbar, etc. From the above install history, it appears the following are enabled and the older version have been disabled: com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 How do I get this SDK working again? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: To specify Key or use auto generation
In 1, another problem is that I may not know the Keys of A and B at the point of creation. For example, lets say I am doing something like this: class Person { } class Group { @Persistent(mappedBy = group) ArrayListMembership memberships; } class Membership { Key person; Group group; } Now I would do: Group g = new Group(); while(...) { Membership m = new Membership(); g.memberships.add(m); } pm.makePersistent(g); Now, when I create membership, I dont have the Group key (I do have the person key), I can't really use it to create a new derived key for membership. Or am I missing something? On Sun, Sep 6, 2009 at 11:04 PM, Sam Walker am.sam.wal...@gmail.com wrote: Lets say there is a relationship between Entities A and B, and I want to model it with Entity C. Two ways: 1. Use concatenated Key of A and B for Key of C. Data model will ensure there are no duplicates. 2. Use autogenerated Key and make sure you do not duplicate A B relationship in code. Which one would you choose? In 1, is a simple concatenation the best way to go about it? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: I met an very strange thing when i try to persist entity and use jcache
And what state are the objects in when you put them in the cache ? and when you get them out ? JDOHelper.getObjectState(obj) tells you. This is the role of a JDO L2 Cache as per http://www.datanucleus.org/products/accessplatform_1_1/jdo/cache.html and you could easily use the javax.cache DataNucleus provider to do this automatically. --Andy (DataNucleus) --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Storing JDO extent in session - not serializable
My need is to implement database rowset paging behaviour. i.e I want to create an Extent when session created and then on page request browse the dataset from the last point. The problem: JDOExtent is not serializable and hence the code below throws an extent. Please suggest an alternative approach. public class AgentInfoDao { static final String q =SELECT FROM + AgentInformation.class.getName () + order by appointmentDate asc; ExtentAgentInformation extent = null; IteratorAgentInformation resultIterator; public void sessionCreated() { PersistenceManager pm = PMF.get().getPersistenceManager(); extent = pm.getExtent(AgentInformation.class, false); Query query = pm.newQuery(q); query.setCandidates(extent); CollectionAgentInformation result = (Collection)query.execute(); resultIterator = result.iterator(); } public ListAgentInformation fetchNextSet(int setCount){ log.info(Next Set of + setCount); ListAgentInformation set = new ArrayListAgentInformation(); int c=0; while(c setCount resultIterator.hasNext()){ // do something... } return set; } public void sessionDestroyed() { extent.closeAll(); } } --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Storing JDO extent in session - not serializable
Why should a javax.jdo.Extent be Serializable ? JDO doesn't define it to be so. Shouldn't be hard to put the objects of the Extent into a List ... --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: I met an very strange thing when i try to persist entity and use jcache
Or JPA L2 Cache also for that matter. Same applies --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] app engine stored data quota / datastore api / daily quota
hi everybody, to make it short: is the quota (Stored Data (billable)) of the datastore api a daily quota? so theoretically i could store 1gig of stuff each day? i am wondering - because my application uses around 100mb for 2 weeks each day - and i do not store anything new - what is at least a bit strang. can that come from the application i am uploading + indexes? thanks! ra! --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] JDO transaction does not start datastore's transaction.
Hi, here is introducing my JDO problem. Is it issue of datanucleus or me? Should I separate codes with txn when getting something from datastore with same PM? Thanks. --- ・What steps will reproduce the problem? 1.get PersistenceManager as pm. 2.invoke pm.getObjectById or iterate some query result outside txn. 3.txn.begin 4.invoke pm.getObjectById 5.change entity's properties. 6.txn.commit *Same issue occured if kind of entity is different between 2 and 4 or not. ・What is the expected output? What do you see instead? expected: It starts DatastoreService's transaction. instead: It does not start DatastoreService's transaction. (DatastoreXAResource#start is not invoked.) ・What version of the product are you using? On what operating system? SDK 1.2.5 on Windows XP/eclipse 3.4 ・Please provide any additional information below. If once invoke getObjectById or something outside txn, ManagedConnection instance is reused from ManagedConnectionPool at ConnectionManagerImpl by invoking allocateConnection. If that pooled connection was made at when it is not in txn, ConnectionManagerImpl#enlistResource is not invoked so it does not start Datastore's transaction. Also it does not register transaction listener so there is no way to remove this connection except Query#execute or closing PM. --- --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Master/Detail relations and redundant data handling
I'm not sure if your taking of the problem is correct. To my mind it runs: You have Company and Employee. Company has many Employees and Employee is working for one company. Normalized version looks like: class Company { @Persistent private String companyName; @Persistent private String businessArea; ... } class Employee { @Persistent private String name; @Persistent private String address; @ManyToOne private Company company; } If you want to get all Employess working for a company you should execute: SELECT * FROM Employee e WHERE e.company.companyName = :nameParam or if you want all Emloyees working for all IT companies you execute: SELECT * FROM Employee e WHERE e.company.businessArea = 'IT' ... But this query will not work in Google App Engine. The solution is to resolve this query programmaticaly by running several queries and filter it in memory or to denormalize this scheme by moving some fields from Company to Employee Something like: class Epmloyee { @Persistent String name; @Persistent String address; // copy of property fiels from Company @Persistent private String companyName; @Persistent private String businessArea; @ManyToOne private Company company; } and run SELECT Object(Employee) FROM Employee e WHERE e.companyName = :nameParam The first solution allows keeping normalized version but the cost is less effective query, the second requires to break strictly normalized pattern but the query is much more effective (I think that it can be 10 or more times more effective). Also the second solution requires more time while writing and updating. But it is up to you what is more important, it is classical dilemma: more reads or more writes. --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Upgrade issue with Google SDK 1.2.5
Actually, Google does NOT display as an option under Window- Preferences currently! Its like the plugin does NOT exist at all, yet the plugin is physically there under Eclipse/plugins. I noticed alot of these errors in the Eclipse log: !ENTRY org.eclipse.debug.core 4 5020 2009-09-06 10:17:28.020 !MESSAGE Launch configuration type id com.google.gdt.eclipse.suite.webapp does not exist. Possible causes: Missing specification of a launch type (missing plug-in) Incorrect launch configuration XML On Sep 7, 1:09 am, Sekhar sek...@allurefx.com wrote: Had the same problem, just remapping the SDK fixed it. This is under WIndow-Preferences-Google-App Engine. On Sep 6, 8:35 am, James H james.hollier...@gmail.com wrote: I used the Eclipse Soft Updates menu on Sep 4th to apply SDK 1.2.5 after noticing Red errors in the local runtime log telling me to do so. Actually, first I noticed my production app was failing to retrieve data so I figured I needed to first upgrade as instructed by the log message and then see if there were still any data issues. I had been running SDK 1.2.2 since July without problems locally or in production. The install of the upgrade ran without errors. Here is the Eclipse install history: Jul 12, 2009 1:24:28 PM file:/C:/homeGoogle/programs/eclipse/ site- install success Jul 12, 2009 1:49:03 PM Date / Time Target Action Status Jul 12, 2009 1:48:12 PM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- install success Jul 12, 2009 1:48:26 PM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- enable success Jul 12, 2009 1:48:26 PM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-install success Jul 12, 2009 1:49:03 PM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-enable success Jul 12, 2009 1:50:20 PM Date / Time Target Action Status Jul 12, 2009 1:50:06 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-install success Jul 12, 2009 1:50:20 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-enable success Jul 24, 2009 10:01:27 PM Date / Time Target Action Status Jul 24, 2009 10:01:01 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-install success Jul 24, 2009 10:01:27 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-enable success Jul 24, 2009 10:01:27 PM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.1.v200905131156 feature-disable success Sep 4, 2009 6:27:25 AM Date / Time Target Action Status Sep 4, 2009 6:26:51 AM com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 feature- install success Sep 4, 2009 6:27:12 AM com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 feature- enable success Sep 4, 2009 6:27:12 AM com.google.gdt.eclipse.suite.e33.feature_1.0.1.v200905131156 feature- disable success Sep 4, 2009 6:27:12 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 feature-install success Sep 4, 2009 6:27:25 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 feature-enable success Sep 4, 2009 6:27:25 AM com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.2.v200907131018 feature-disable success Sep 5, 2009 11:13:51 AM Date / Time Target Action Status Sep 5, 2009 11:12:38 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 feature-install success Sep 5, 2009 11:13:48 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 feature-enable success Sep 5, 2009 11:13:48 AM com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254 feature-disable success At this point my Eclipse behaves as though the Google SDK is NOT installed. For example, the Google Icons are NOT displayed in the Toolbar, etc. From the above install history, it appears the following are enabled and the older version have been disabled: com.google.gwt.eclipse.sdkbundle.e33.feature_1.7.0.v200907131018 com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.5.v200909021033 com.google.gdt.eclipse.suite.e33.feature_1.1.0.v200907291650 How do I get this SDK working again?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Master/Detail relations and redundant data handling
Right, denormalization is promoted by the Max Ross video as in your 2nd case so from a software design perspective can the copy fields in Employee be contained in their own class and referenced from Employee in a fashion that allows JDO to still work such as: class CompanyFK { // copy of property fiels from Company @Persistent private String companyName; @Persistent private String businessArea; @ManyToOne private Company company; } class Employee { @Persistent String name; @Persistent String address; CompanyFK compnayFK } This way all entities that include a FK to Company would use CompanyFK and denormalized relations such as this would be managable (ie rather than copy/paste of fields across many Entities). Does JDO allow this level of control? On Sep 7, 4:44 am, leszek leszek.ptokar...@gmail.com wrote: I'm not sure if your taking of the problem is correct. To my mind it runs: You have Company and Employee. Company has many Employees and Employee is working for one company. Normalized version looks like: class Company { �...@persistent private String companyName; �...@persistent private String businessArea; ... } class Employee { @Persistent private String name; @Persistent private String address; @ManyToOne private Company company; } If you want to get all Employess working for a company you should execute: SELECT * FROM Employee e WHERE e.company.companyName = :nameParam or if you want all Emloyees working for all IT companies you execute: SELECT * FROM Employee e WHERE e.company.businessArea = 'IT' ... But this query will not work in Google App Engine. The solution is to resolve this query programmaticaly by running several queries and filter it in memory or to denormalize this scheme by moving some fields from Company to Employee Something like: class Epmloyee { @Persistent String name; @Persistent String address; // copy of property fiels from Company @Persistent private String companyName; @Persistent private String businessArea; @ManyToOne private Company company; } and run SELECT Object(Employee) FROM Employee e WHERE e.companyName = :nameParam The first solution allows keeping normalized version but the cost is less effective query, the second requires to break strictly normalized pattern but the query is much more effective (I think that it can be 10 or more times more effective). Also the second solution requires more time while writing and updating. But it is up to you what is more important, it is classical dilemma: more reads or more writes. --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Tasks Rate and Bucket Size
Hi there, Can me mentally challenged or maybe its just monday but I'm having a hard time figuring out what the Bucket Size is and how/if its related to the rate for tasks. I've read the documentation here, http://code.google.com/appengine/docs/java/config/queue.html and the wiki article on token buckets http://en.wikipedia.org/wiki/Token_Bucket and also the python docs but I'm still not getting it., I wrote a simple test case and tried varying the bucket size between 1 and 10 but didn't notice any difference, maybe due to not having enough volume to see any difference?? thanks, Matt --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Can anybody tell me how to generate a WSDL
hi, Can anybody tell me how to deploy a soap based web service on Google App Engine. How to generate a WSDL. How does the app engine development server will recognise that a web service is being deployed. Please tell me some steps --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Eclipse 3.3 plugin missing from update site
When I try to install the Eclipse 3.3 plugin from update site http://dl.google.com/eclipse/plugin/3.3 I only see 2 features: Google App Engine Java SDK 1.2.5 and Google Web Toolkit SDK. There is supposed to be a 3rd feature: Google plugin for Eclipse. I checked the 3.4 update site, and that one contains all 3 features. Can anybody tell me what happened to the Eclipse 3.3 plugin? Is there perhaps an alternative update site that I can try? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Eclipse 3.3 plugin missing from update site
When I try to install the Eclipse 3.3 plugin from update site http://dl.google.com/eclipse/plugin/3.3 I only see 2 features: Google App Engine Java SDK 1.2.5 and Google Web Toolkit SDK. There is supposed to be a 3rd feature: Google plugin for Eclipse. I checked the 3.4 update site, and that one contains all 3 features. Can anybody tell me what happened to the Eclipse 3.3 plugin? Is there perhaps an alternative update site that I can try? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Eclipse 3.3 plugin missing from update site
Can you check to see if you had similar issues as I had - search for Upgrade issue with Google SDK 1.2.5 Options? I didn't realize the site was missing anything, but obviously noticed the SDK could NOT activate in my Eclipse 3.3. I may just load the latest Eclipse and be done with it, unless we can get some resolution here...hate when issues like this interrupt development time... On Sep 7, 8:52 am, Anne van der Bom annes.datam...@gmail.com wrote: When I try to install the Eclipse 3.3 plugin from update sitehttp://dl.google.com/eclipse/plugin/3.3I only see 2 features: Google App Engine Java SDK 1.2.5 and Google Web Toolkit SDK. There is supposed to be a 3rd feature: Google plugin for Eclipse. I checked the 3.4 update site, and that one contains all 3 features. Can anybody tell me what happened to the Eclipse 3.3 plugin? Is there perhaps an alternative update site that I can try? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Eclipse 3.3 plugin missing from update site
James, My situation is a bit different from yours. I did not upgrade. I installed the GWT SDK and Eclipse Plugin a week ago. Then ran into some problems and tried to uninstall the Google GWT features (all 3) to see if that would change the situation. When I tried to re-install them today, I noticed the missing plugin. --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: support for task queues in development environment?
Perfect! At least for initial debugging, that's actually better than having the tasks execute automatically--it makes it easier to see what's going on with multiple tasks being queued. Thanks. On Sun, Sep 6, 2009 at 7:05 PM, Max Rossmaxr+appeng...@google.com wrote: Hi Vince, In order to get the task queue into the 1.2.5 release we had to take a shortcut with the local development environment. Tasks execute automatically in production but not locally. However, in the local environment you can kick off your tasks manually by visiting the task queue admin console page, accessible via a link off of http://localhost:8080/_ah/admin We thought we had this properly documented but it appears we do not. I've filed a bug and we'll get this taken care of quickly. Sorry for the trouble. Thanks, Max --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Persistence problem of an entity with two List of the same type
Hello. Maybe, I'm missing something obvious in the documentation, but I can't figure out why I cannot properly persist an entity which has two list- fields of the same type properly. I have the following persisted class: @PersistenceCapable(identityType = IdentityType.APPLICATION) public final class A implements Serializable { @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @PrimaryKey private Key key; @Persistent private ListB list1 = new ArrayListB(); @Persistent private ListB list2 = new ArrayListB(); } where B is a very basic persisted class with only two persisted attributes (and of course, a key). Every time I persist an entity of A with 2 non-empty lists fields list1 and list2, once I request this instance (in another transaction), the list2 field is always empty. Does it mean that there are currently some restrictions on App Engine, which prevents to persist two collection attributes of the same type at the same time? Do I need to annotate the two fields in a specific way? I am running App Engine v1.2.5. Thank you so much for your help. Regards, Édouard --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Are 1.2.2 sdk jars available in a public maven repository?
Don't be ridiculous, of course Google provides a Maven repository. It's right here: http://code.google.com/p/google-maven-repository/ The problem is, that repo hasn't been updated since version 1.2.1. There's been two releases since then. I filed an issue on this a month ago, it's got 6 stars, we're still waiting on a response: http://code.google.com/p/googleappengine/issues/detail?id=1969 - Mark On Aug 25, 4:02 pm, Jason (Google) apija...@google.com wrote: It looks like you already found this thread:http://groups.google.com/group/google-appengine-java/browse_thread/th... In short, no, Google does not provide a Maven repository although there are user-provided Maven descriptors available. - Jason On Sat, Aug 22, 2009 at 12:45 PM, Marcel Overdijk marceloverd...@gmail.comwrote: Are 1.2.2 sdk jars available in a public maven repository? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Simplest web framework + ORM for GAE/J?
What's the simplest web framework + ORM combination that works well on GAE/J? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Simplest web framework + ORM for GAE/J?
What's the simplest web framework + ORM combination that works well on GAE/J? Why do you want an ORM exactly ? Object - Relational Mapping ? The datastore is BigTable. It isn't an RDBMS. GAE/J comes with JDO/JPA implementations for persistence to that datastore. --Andy (DataNucleus) --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] JDO Sequences in AppEngine
Hey guys, I wanted to use a JDO persistence-backed Sequence to provide monotonically increasing visitor #'s in my webapp. A static variable doesn't cut it because I want the number to survive redeployments, upgrades, etc. I didn't see any info on Sequence in the wiki Using JDO section so I did this. It works but it seemed kinda hacky. Is this the best way to configure a JDO-backed Sequence in AppEngine? (FWIW I'm using the eclipse plug-in.) (1) Make the following file: MyProject/META-INF/package.jdo * This directory should already contain a jdoconfig.xml. * Both files will be autoplaced into MyProject/war/WEB-INF/classes/ META-INF on deploy. (2) Paste the following XML into package.jdo: ?xml version=1.0 encoding=UTF-8 ? jdo xmlns=http://java.sun.com/xml/ns/jdo/jdo; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/jdo/jdo http://java.sun.com/xml/ns/jdo/jdo_2_2.xsd; !-- name the package whatever you want -- package name=MyProject sequence name=VisitorSequence datastore- sequence=VISITOR_SEQUENCE strategy=contiguous / /package /jdo (3) When you need the next value in your application, call: PersistenceManager pm = //...allocate pm //the sequence name is package name.sequence name //from the corresponding tags in package.jdo Sequence seq = pm.getSequence(MyProject.VisitorSequence); //If strategy from package.jdo was contiguous, this has to happen //in a transaction. long nextValue = seq.nextValue(); --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] testing persistence with one to many relashionship
Hi all, I am trying to test persistence, with: class Foo implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; } When I call makePersistent on an instance, the key value is created as expected. If I add a field: @Persistent private ListCategory children Then the key is still null after the call to makePersistent. I can see that in JDOStateManager, the creation of the pm is let to the datastore, then a value of: ___entity_write_delayed___=Entity [Category(no-id-yet)] but it ends without an id being set. What did I miss ? --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Spring configuration for static method injection - JDO
Hi all, I have some troubles running spring on GAE for a particular configuration. When I run this config on my local machine I have logs in the console that indicate that it works. When I deploy it on GAE I have a null pointer exception because PersistenceManagerFactory is null which is not the case on local. (logs are in the doPost method) Has someone already tried to use Spring MethodInvokingFactoryBean ? Here it the code, thanks for any help Loïc applicationContext.xml : context:component-scan base-package=com.mypackage.jdo/ context:spring-configured/ context:annotation-config / bean class= org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping / bean class= org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter / bean id=pmf class= org.springframework.beans.factory.config.MethodInvokingFactoryBean property name=staticMethod valuejavax.jdo.JDOHelper.getPersistenceManagerFactory/value /property property name=arguments valuetransactions-optional/value /property /bean bean id=persistenceManager class=com.mypackage.jdo.PersistenceContextManager constructor-arg ref bean=pmf/ /constructor-arg /bean where com.mypackage.jdo.PersistenceContextManager is: import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; public class PersistenceContextManager { protected PersistenceManager pm; public PersistenceManager getPm() { return pm; } public PersistenceContextManager() { super(); } public PersistenceContextManager(PersistenceManagerFactory pmf) { pm = pmf.getPersistenceManager(); } } then in a servlet I have: @Resource(name=persistenceManager) private PersistenceContextManager pmf; public void init(ServletConfig config) throws ServletException { super.init(config); ServletContext servletContext = config.getServletContext(); WebApplicationContext webApplicationContext = WebApplicationContextUtils .getWebApplicationContext(servletContext); AutowireCapableBeanFactory autowireCapableBeanFactory = webApplicationContext .getAutowireCapableBeanFactory(); autowireCapableBeanFactory.configureBean(this, persistenceManager); } public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException { ... ... if (pmf != null) { log.warning(pmf not null); } else { log.warning(pmf is null); } PersistenceManager pm = pmf.getPm(); Transaction tx = pm.currentTransaction(); try { tx.begin(); pm.makePersistent(myObjectToPersist); tx.commit(); } finally { if (tx.isActive()) { tx.rollback(); } ... } --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Struts 2 on App Engine
To get started on using struts 2 on google app engine please refer to a href=http://whyjava.wordpress.com/2009/08/30/creating-struts2- application-on-google-app-engine-gae/Struts2 on GAE/a On Aug 18, 11:20 pm, Jason (Google) apija...@google.com wrote: Hi dolsen. The only Struts2 issue I've seen recently concerns OgnlInvokePermission and reflection:http://groups.google.com/group/google-appengine-java/browse_thread/th... Let me know if you're able to determine the cause of your error message or run into any other errors. - Jason On Mon, Aug 17, 2009 at 10:43 AM, dolsen danec...@gmail.com wrote: It looks like with this exception I can still move forward with my app. I hate seeing it when I start the SDK but it is something I could live with. As long as it doesn't cause a problem on App Engine. On Aug 14, 6:37 pm, dolsen danec...@gmail.com wrote: I am trying to setup Struts with App Engine. However ,when I start up the SDK server I get the error shown below. Any ideas on how to get past this would be greatly appreciated. java.lang.Exception: Could not load javax/servlet/http/ HttpServlet.class at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef (ClassFinder.java:745) at com.opensymphony.xwork2.util.finder.ClassFinder.access$400 (ClassFinder.java:57) at com.opensymphony.xwork2.util.finder.ClassFinder $InfoBuildingVisitor.extractSuperInterfaces(ClassFinder.java:790) at com.opensymphony.xwork2.util.finder.ClassFinder $InfoBuildingVisitor.visit(ClassFinder.java:777) at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source) at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source) at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef (ClassFinder.java:740) at com.opensymphony.xwork2.util.finder.ClassFinder.init (ClassFinder.java:148) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions (PackageBasedActionConfigBuilder.java:295) at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs (PackageBasedActionConfigBuilder.java:277) at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages (ClasspathPackageProvider.java:52) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (DefaultConfiguration.java:200) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (ConfigurationManager.java:55) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (Dispatcher.java:360) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (StrutsPrepareAndExecuteFilter.java:48) at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java: 99) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:589) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89)
[appengine-java] Re: app engine stored data quota / datastore api / daily quota
On Mon, Sep 7, 2009 at 10:50 AM, Raphael André Bauerraphael.andre.ba...@gmail.com wrote: hi everybody, to make it short: is the quota (Stored Data (billable)) of the datastore api a daily quota? so theoretically i could store 1gig of stuff each day? i am wondering - because my application uses around 100mb for 2 weeks each day - and i do not store anything new - what is at least a bit strang. can that come from the application i am uploading + indexes? i just came across the answer: no: it is not a daily quota - it's a general quota not reset every 24h. http://code.google.com/appengine/docs/quotas.html @google team: it would be nice to make that more clear in the tutorial above (it is written under daily quota) and also in the appengine console (also under mentioned under reset every 24h). imho this is a bit misleading, but maybe i am wrong... thanks! r thanks! ra! --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: debugging exceptions
Are you running any other severs on the same port? Tomcat, JBoss, any other app server that may be defaulting to 8080? S On Sep 5, 12:43 pm, mahesh nimmala.anukar...@gmail.com wrote: hi, i am new to work with goggleappengine with java.i had downloaded thsoftwares as follows. java 1.6,eclipse 3.0,and i had downloaded google plugin with eclipse software updates.i read that appengine SDK comes along with google plugin.so i didnt installed SDK separately.i tried for sample application.but in the directory structure for package explorer under src folder server is not appeared.at the time of debugging the application the following errors are raised. 5 Sep, 2009 9:40:21 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed selectchannelconnec...@127.0.0.1:8080 java.net.BindException: Address already in use:bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) 5 Sep, 2009 9:40:21 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed ser...@1724a9d java.net.BindException: Address already in use:bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind (ServerSocketChannelImpl.java:119) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59) at org.mortbay.jetty.nio.SelectChannelConnector.open (SelectChannelConnector.java:211) at org.mortbay.jetty.nio.SelectChannelConnector.doStart (SelectChannelConnector.java:309) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.Server.doStart(Server.java:228) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:152) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:116) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:218) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:162) at com.google.appengine.tools.util.Parser$ParseResult.applyArgs (Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init (DevAppServerMain.java:113) at com.google.appengine.tools.development.DevAppServerMain.main (DevAppServerMain.java:89) Could not open the requested socket: Address already in use:bind Try overriding --address and/or --port.. so please give solution to my proplem. --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: how to query to implement auto suggest query...
By the way, i am using JDO. On Sep 8, 9:13 am, mar_novice mariocape1...@gmail.com wrote: Thanks for the tip Jason but i am looking for the app engine version of the mysql query like function just like below SELECT distinct(title) as suggest FROM page WHERE title like(' . $search . %') ORDER BY title Sorry, I didn't ask more specific from my previous post. On Sep 5, 7:06 am, Jason (Google) apija...@google.com wrote: By they shouldn't be too hard to find, I meant that any examples you find shouldn't be too hard to tailor for App Engine, even if they are RDBMS-based. - Jason On Fri, Sep 4, 2009 at 4:06 PM, Jason (Google) apija...@google.com wrote: There are numerous tutorials out in the wild for this. I don't know of any App Engine-specific examples, but they shouldn't be too hard to find. Since App Engine doesn't currently support full-text search, you'll only be able to match entities on their opening characters. http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-.html http://www.google.com/search?q=ajax+suggest - Jason On Thu, Sep 3, 2009 at 3:08 AM, mar_novice mariocape1...@gmail.comwrote: Hi, I dont know how to implement a back-end for an autosuggest query. The idea is if a user type sa, the servlet will query from the datastore, for example employee names that starts with sa. Any body knows how to implement this?? Thanks... -mar_novice --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: how to query to implement auto suggest query...
Thanks for the tip Jason. On Sep 5, 7:06 am, Jason (Google) apija...@google.com wrote: By they shouldn't be too hard to find, I meant that any examples you find shouldn't be too hard to tailor for App Engine, even if they are RDBMS-based. - Jason On Fri, Sep 4, 2009 at 4:06 PM, Jason (Google) apija...@google.com wrote: There are numerous tutorials out in the wild for this. I don't know of any App Engine-specific examples, but they shouldn't be too hard to find. Since App Engine doesn't currently support full-text search, you'll only be able to match entities on their opening characters. http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-.html http://www.google.com/search?q=ajax+suggest - Jason On Thu, Sep 3, 2009 at 3:08 AM, mar_novice mariocape1...@gmail.comwrote: Hi, I dont know how to implement a back-end for an autosuggest query. The idea is if a user type sa, the servlet will query from the datastore, for example employee names that starts with sa. Any body knows how to implement this?? Thanks... -mar_novice --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: how to query to implement auto suggest query...
Thanks for the tip Jason but i am looking for the app engine version of the mysql query like function just like below SELECT distinct(title) as suggest FROM page WHERE title like(' . $search . %') ORDER BY title Sorry, I didn't ask more specific from my previous post. On Sep 5, 7:06 am, Jason (Google) apija...@google.com wrote: By they shouldn't be too hard to find, I meant that any examples you find shouldn't be too hard to tailor for App Engine, even if they are RDBMS-based. - Jason On Fri, Sep 4, 2009 at 4:06 PM, Jason (Google) apija...@google.com wrote: There are numerous tutorials out in the wild for this. I don't know of any App Engine-specific examples, but they shouldn't be too hard to find. Since App Engine doesn't currently support full-text search, you'll only be able to match entities on their opening characters. http://www.dynamicajax.com/fr/AJAX_Suggest_Tutorial-.html http://www.google.com/search?q=ajax+suggest - Jason On Thu, Sep 3, 2009 at 3:08 AM, mar_novice mariocape1...@gmail.comwrote: Hi, I dont know how to implement a back-end for an autosuggest query. The idea is if a user type sa, the servlet will query from the datastore, for example employee names that starts with sa. Any body knows how to implement this?? Thanks... -mar_novice --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Tasks not executed
Hi all, I am just trying out the new Task Queue API for Java (many thanks) and the insertion of tasks into a queue seems to work fine, but I cannot see them being exectuted :-) Maybe I am not understanding a trivial thing here... This is the queue.xml: ?xml version=1.0 encoding=UTF-8? queue-entries queue nameupdateTweets/name rate5/s/rate /queue /queue-entries It shows up correctly in the dashboard. Next, I created a simple Grails action to insert a task into this queue: def triggerQueue = { Queue queue = QueueFactory.getQueue('updateTweets') TaskHandle handle = queue.add(url(/play/updateQueue).param (screenName, 'hansamann')) render Queued a new task for updateTweets queue... } This seems to work. I can call the triggerQueue action and it will render the specified string, meaning no exceptions were thrown. I can also see that the number of tasks in the queue in the dashboard has been increased. I can also call the task web hook /play/updateQueue directly, it works. This is the implementation of that action: def updateQueue = { mailService.sendAdminMail(queue test - screenName $ {params.screenName}, ${params.screenName}) render 'OK' } Once I call this manually, I get an email just as supposed. --- It is now about 30 mins since 2 tasks have been added to the queue, I got no emails. The logs do not show exceptions that are task-specific. The app-id is 'groovytweets'. Has anyone else successfully tried it out and can post a quick description? Cheers Sven --~--~-~--~~~---~--~~ 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 from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: XMPP Error
I've been getting the same error, on what seems like the first request since JVM-start/app-deployment. It doesn't seem fatal, but does use some CPU time (1000-7000 cpu_ms, where a typical request takes 100-200 cpu_ms), which is probably just because the jvm/deployment is starting up. On Sep 7, 3:27 pm, Dipu iqbalyusufd...@gmail.com wrote: Just could not resist myself from playing with XMPP but ran into problem. I don't know if I'm doing something wrong. I basically cut and paste Google's code snippet from getting started section. Here is the code snippet. A detail log output with exception will follow after code snippet. Thanks. package gobeshona.xmpp; import gobeshona.restlet.RestletTestsResource; import java.util.logging.Logger; import org.restlet.data.MediaType; import org.restlet.representation.Representation; import org.restlet.representation.StringRepresentation; import org.restlet.resource.Get; import org.restlet.resource.Post; import org.restlet.resource.Put; import org.restlet.resource.ServerResource; import com.google.appengine.api.xmpp.JID; import com.google.appengine.api.xmpp.Message; import com.google.appengine.api.xmpp.MessageBuilder; import com.google.appengine.api.xmpp.SendResponse; import com.google.appengine.api.xmpp.XMPPService; import com.google.appengine.api.xmpp.XMPPServiceFactory; public class XMPPTest extends ServerResource{ private static final Logger log = Logger.getLogger (RestletTestsResource.class.getName()); @Post public Representation sendMessage(Representation entity){ try{ log.info(entity.getText()); String chatMsg = entity.getText(); JID jid = new JID(iqbalyusufd...@gmail.com); String msgBody = Someone has sent you a gift on Example.com. To view:http://example.com/gifts/;; log.info(Message msg); Message msg = new MessageBuilder() .withRecipientJids(jid) .withBody(msgBody) .build(); boolean messageSent = false; log.info(get xmpp service); XMPPService xmpp = XMPPServiceFactory.getXMPPService(); if (xmpp.getPresence(jid).isAvailable()) { log.info(xmpp is available); SendResponse status = xmpp.sendMessage(msg); messageSent = (status.getStatusMap().get(jid) == SendResponse.Status.SUCCESS); log.info(xmpp sent successfully); return new StringRepresentation(Message sent: + chatMsg,MediaType.TEXT_PLAIN); } if (!messageSent) { // Send an email message instead... return new StringRepresentation(Could not send message,MediaType.TEXT_PLAIN); } return new StringRepresentation(Nothing happend no exception thrown :( , MediaType.TEXT_PLAIN); }catch (Exception e){ return new StringRepresentation(e : +e.getMessage (),MediaType.TEXT_PLAIN); } } } Error code: 09-06 10:17PM 34.711 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue $SystemLoader loadFinalizer: Not allowed to access system class loader. I 09-06 10:17PM 34.739 com.google.appengine.repackaged.com.google.common.base.internal.Finalizer getInheritableThreadLocalsField: Couldn't access Thread.inheritableThreadLocals. Reference finalizer threads will inherit thread local values. I 09-06 10:17PM 34.743 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created. java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-356fa45aaca862ea (Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:40) at com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.init (FinalizableReferenceQueue.java:124) at com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools $WeakInterningPool.clinit(InterningPools.java:104) at com.google.appengine.repackaged.com.google.common.labs.misc.InterningPools.newWeakInterningPool (InterningPools.java:48) at com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.clinit (ProtocolSupport.java:55) at com.google.appengine.api.xmpp.XMPPServicePb$PresenceRequest.init (XMPPServicePb.java:271) at