[appengine-java] Re: Unable to deploy to App Engine Anymore
you have 2 choice 1) wait like one day. than your opened connection will be closed by appEngine and you will be able to upload again. 2) command update tool to have a parameter to close that connection. On Feb 20, 3:00 pm, Henning henning2...@hotmail.de wrote: Hi, I had a connection error during a deployment so the thing did not go through. Now I have a connection again, but am not able to do any deployments anymore. It says: Scanning files on local disk. Initiating update. java.io.IOException: Error posting to URL:https://appengine.google.com/api/appversion/create?app_id=studyhebrew... 409 Conflict Another transaction by user henning2...@hotmail.de is already in progress for this app and major version. That user can undo the transaction with appcfg.py's rollback command. I don't have Python. How can I rollback now ? Regards, Henning -- 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 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: owned relationship ? - could it be a bug
Hello Aswath, What you are doing seems really odd to me. From my understanding a Datastore Key consists of multiple components. A complete key includes several pieces of information, including the application ID, the kind, and an entity ID - GAE Docs If you use encoded key strings, you can get access to these other pieces of information: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String encodedKey; @Persistent @Extension(vendorName=datanucleus, key=gae.pk-name, value=true) private String keyName; @Persistent @Extension(vendorName=datanucleus, key=gae.pk-id, value=true) private Long keyId; In this case, you have access to the name ID (keyName) and numeric ID (keyID) of the encoded key. Therefore, from my understanding, you can not change the name ID after you have persisted your first object. The first object determines the name ID for all remaining objects (from my understanding). This is why when you try to change it for the second object, you get an exception. Perhaps, you can better explain why you are using the gae.pk-name extension for the name. The context of your code is not clear! Thanks! On Feb 16, 11:38 pm, aswath satrasala aswath.satras...@gmail.com wrote: any help on this please... Thanks. On Fri, Feb 12, 2010 at 3:18 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikia As suggested by you in the thread 'Incorrect number of entities returned', I have attached the complete files in my previous email. Please let me know, what am I doing wrong here. Thanks -Aswath On Tue, Feb 9, 2010 at 3:06 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikai, Attached is the zip file that contains three files A.java B.java BTest.java Please load in your environment and test it. Thanks. -Aswath On Fri, Feb 5, 2010 at 4:36 PM, aswath satrasala aswath.satras...@gmail.com wrote: B list is missing from class A in my previous posting. Here is the complete A class... @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; @Persistent private ListB bList ; } On Fri, Feb 5, 2010 at 4:32 PM, aswath satrasala aswath.satras...@gmail.com wrote: This is a similar posting I had posted earlier incorrect number of entities returned. Hopefully, this posting may be more clean and I will get some replies. I have two classes 1) A 2) B A is in 1 to many relationship with B @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class B { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded-pk, value = true) private String id; @Persistent @Extension(vendorName = datanucleus, key = gae.pk-name, value = true) private String name; } public class BTest extends JDOTestCase { public void testB() throws Exception { A a = new A(); a.setName(a); B b = new B(); b.setName(b); a.getBList().add(b); beginTxn(); pm.makePersistent(a); a = pm.getObjectById(A.class, a.getId()); assertEquals(1, a.getBList().size()); commitTxn(); B b1 = new B(); b1.setName(b1); beginTxn(); pm.makePersistent(b1); b1 = pm.getObjectById(B.class, b1.getId()); b1.getId(); commitTxn(); } } The test fails at the last line b1.getId() If any of B entity is in relation with A earlier, then another entity of B cannot be persisted by itself. If I move the 2nd transaction to the beginning, the test passes. -Aswath -- 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 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] Discussion on will-it-play-in-app-engine
I have put together a template project for getting started with Wicket on Google App Engine. It's a re-implementation of the Guestbook demo. It also uses Guice. http://code.google.com/p/wicket-gae-template/ -- 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 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] Batch load from DataStore?
Is this the fastest way to load all of the Elements of a given type from the DataStore? @SuppressWarnings(unchecked) public static final ListPage loadAllPagesFromDataStore() { ListPage pages = new ArrayListPage(); PersistenceManager pm = PMF.get().getPersistenceManager(); Query query = null; try { query = pm.newQuery(Page.class); ListPage results = (ListPage)query.execute(); if(results.iterator().hasNext()) { IteratorPage it = results.iterator(); while(it.hasNext()) pages.add(pm.detachCopy(it.next())); } } finally { query.closeAll(); pm.close(); } return pages; } I ask because the datastore is meant to be very fast at reading huge amounts of data, but slow at writing huge amounts of data, yet this query is quite slow for only 100 elements. Thanks, Finbarr -- 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 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] Help needed with this error using GWT and Google AppEngine.
It is coming for a new domain object created on a GWT + AppEngine Project on Eclipse. 19:01:14.750 [ERROR] [cms] Line 3: The import com.google.appengine cannot be resolved Thanks, Shyam. -- 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 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] What is the purpose of keyName? (Low-level API)
Hi, What is the intended purpose of keyName when creating a new Key or new Entity in the low-level API? What are the proper use cases for keyName? Thanks! Chris -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: JPA with database
Beside useful hint from Jake, providing links by google search might be helpful to you http://tinyurl.com/cofmen Specifically, you might need to look into Get Started guide... On Fri, Feb 12, 2010 at 4:12 PM, maheswari maheswari rma...@gmail.comwrote: is their is any authentication required to run JPA Program that uses the Database as Google App Engine On Fri, Feb 12, 2010 at 11:40 AM, maheswari maheswari rma...@gmail.comwrote: hai Thanks for your reply But I didnot know where to create a new JPA Project to make databese connection with google app engine, which option i need go, JPA project,web application project or dynamic web project. Thanks in advance On Fri, Feb 12, 2010 at 4:13 AM, Jake jbrooko...@cast.org wrote: It's true that you should read the documentation. As a former newbie and teacher, though, I appreciate the need for some helpful hints: JPA is Java's Persistence (Saving) API found in the javax.persistence.* package. You can use JDO as an alternative, though, instead of JPA. I would recommend this simply because Google App Engine has better documentation for JDO. In the end, to the new user, they are essentially the same. JPA or JDO is how you will save full Java objects into the Google database. It is not difficult to make the database connection if you follow the tutorials. At this stage, it sounds like you will have more trouble creating a basic web application. So, I would start with that first - also in the tutorials. The App Engine SDK comes with a few sample projects that should work out of the box - see if you can get those up and running. Good luck! Jake On Feb 11, 1:38 pm, datanucleus andy_jeffer...@yahoo.com wrote: Really sounds like you ought to read the docs before using the softwarehttp://code.google.com/appengine/docs/ Omitting such a basic step is not advisable. -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: owned relationship ? - could it be a bug
Hello Payam Thanks for looking into this. Please see inline On Sun, Feb 21, 2010 at 3:25 PM, Payam pmoghad...@gmail.com wrote: Hello Aswath, What you are doing seems really odd to me. From my understanding a Datastore Key consists of multiple components. A complete key includes several pieces of information, including the application ID, the kind, and an entity ID - GAE Docs If you use encoded key strings, you can get access to these other pieces of information: @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String encodedKey; @Persistent @Extension(vendorName=datanucleus, key=gae.pk-name, value=true) private String keyName; @Persistent @Extension(vendorName=datanucleus, key=gae.pk-id, value=true) private Long keyId; In this case, you have access to the name ID (keyName) and numeric ID (keyID) of the encoded key. Therefore, from my understanding, you can not change the name ID after you have persisted your first object. The first object determines the name ID for all remaining objects (from my understanding). This is why when you try to change it for the second object, you get an exception. Your understanding is not documented. Please see 'encodedStrings' in http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Keys. Perhaps, you can better explain why you are using the gae.pk-name extension for the name. The context of your code is not clear! When using encoded key strings, you can provide access to an object's string or numeric ID with an additional field: I am using the gae-pk-name, so that I can identity the entity uniquely. - if it is associated with a parent, I do, KeyFactory.createKey (parentkey, kind, name) and then access the entity. - if it is not associated with the parent, I do KeyFactory.createKey(kind, name) and then access the entity. I use this entity to store default values for the entity in my application. Thanks, -Aswath Thanks! On Feb 16, 11:38 pm, aswath satrasala aswath.satras...@gmail.com wrote: any help on this please... Thanks. On Fri, Feb 12, 2010 at 3:18 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikia As suggested by you in the thread 'Incorrect number of entities returned', I have attached the complete files in my previous email. Please let me know, what am I doing wrong here. Thanks -Aswath On Tue, Feb 9, 2010 at 3:06 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikai, Attached is the zip file that contains three files A.java B.java BTest.java Please load in your environment and test it. Thanks. -Aswath On Fri, Feb 5, 2010 at 4:36 PM, aswath satrasala aswath.satras...@gmail.com wrote: B list is missing from class A in my previous posting. Here is the complete A class... @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; @Persistent private ListB bList ; } On Fri, Feb 5, 2010 at 4:32 PM, aswath satrasala aswath.satras...@gmail.com wrote: This is a similar posting I had posted earlier incorrect number of entities returned. Hopefully, this posting may be more clean and I will get some replies. I have two classes 1) A 2) B A is in 1 to many relationship with B @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class B { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded-pk, value = true) private String id; @Persistent @Extension(vendorName = datanucleus, key = gae.pk-name, value = true) private String name; } public class BTest extends JDOTestCase { public void testB() throws Exception { A a = new A(); a.setName(a); B b = new B(); b.setName(b); a.getBList().add(b); beginTxn(); pm.makePersistent(a); a = pm.getObjectById(A.class, a.getId()); assertEquals(1, a.getBList().size()); commitTxn();
[appengine-java] Re: wildcard *srt support?
And what do you exactly need ? If you need to enable GWT RPC mechanism to work with your DTO classes, then you just have to put the following lines into your appengine- web.xml: resource-files include path=**.gwt.rpc / /resource-files Vaclav On Feb 21, 7:59 am, Prashant Gupta nextprash...@gmail.com wrote: url-pattern*.gwtrpc/url-pattern doesn't seem to match any url. Is it not supported in appengine/jetty ? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: wildcard *srt support?
I want to pass all gwt modules' rpc request through a single servlet. So, that I need not to modify web.xml every time add or remove a GWT module. OR you can say there is only one common Impl servlet for all gwt services/modules, and I want to have only one entry in web.xml which will for all available and future GWT modules. On 22 February 2010 12:37, vbart vaclav.barta...@spolecne.cz wrote: And what do you exactly need ? If you need to enable GWT RPC mechanism to work with your DTO classes, then you just have to put the following lines into your appengine- web.xml: resource-files include path=**.gwt.rpc / /resource-files Vaclav On Feb 21, 7:59 am, Prashant Gupta nextprash...@gmail.com wrote: url-pattern*.gwtrpc/url-pattern doesn't seem to match any url. Is it not supported in appengine/jetty ? -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: wildcard *srt support?
If you use the command pattern as explained in Ray Ryans talk then you have only one Servlet to map for all commands. http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html We use an implementation that also takes care of retrying failures and ignoring out-of-sequence responses. On 22 Feb 2010, at 14:24, Prashant Gupta wrote: I want to pass all gwt modules' rpc request through a single servlet. So, that I need not to modify web.xml every time add or remove a GWT module. OR you can say there is only one common Impl servlet for all gwt services/modules, and I want to have only one entry in web.xml which will for all available and future GWT modules. On 22 February 2010 12:37, vbart vaclav.barta...@spolecne.cz wrote: And what do you exactly need ? If you need to enable GWT RPC mechanism to work with your DTO classes, then you just have to put the following lines into your appengine- web.xml: resource-files include path=**.gwt.rpc / /resource-files Vaclav On Feb 21, 7:59 am, Prashant Gupta nextprash...@gmail.com wrote: url-pattern*.gwtrpc/url-pattern doesn't seem to match any url. Is it not supported in appengine/jetty ? -- 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 . -- 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 . -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.