Re: [appengine-java] parameter values in taskqueue that contain '' gets cut
- how have you url-encoded the parameters? Can you share the code? - have you tried Method.POST instead of GET? fabrizio On Mon, Sep 20, 2010 at 7:45 AM, mar_novice mariocape1...@gmail.com wrote: When using task queue and the parameters contain an ampersand, it gets cut off when you try to its value. example: Queue queue = QueueFactory.getDefaultQueue(); queue.add( url(/mailer) .param(msg,you me) .method(Method.GET) ); and in mailer servlet, when you try to get the value of msg ... msg = request.getParameter(msg); ... what i get is you only. The characters starting from the to the end gets cut off. I even tried to url encode first the message.. but still it gets cut off.. Is this a bug? -- 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.
[appengine-java] Re: Channel API still not live...
Hello there, We need channel api, too. Can we use it? Greetings, Heiko. -- 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] Managing file upload and form parameters at the same time
According to the FAQ we are suppose to handle file uploads using the given example. I added some code in the isFormField block to attempt to capture input parameters. However this caused org.apache.commons.fileupload.FileItemStream.ItemSkippedException. Anyone is able to this successfully? import org.apache.commons.fileupload.FileItemStream; import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.InputStream; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { private static final Logger log = Logger.getLogger(FileUpload.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { FileItemStream item = iterator.next(); InputStream stream = item.openStream(); if (item.isFormField()) { log.warning(Got a form field: + item.getFieldName()); //i added this if(item.getName().equals(myInputParam)) { String myInputParam = Streams.asString(stream); } } else { log.warning(Got an uploaded file: + item.getFieldName() + , name = + item.getName()); // You now have the filename (item.getName() and the // contents (which you can read from stream). Here we just // print them back out to the servlet output stream, but you // will probably want to do something more interesting (for // example, wrap them in a Blob and commit them to the // datastore). int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) != -1) { res.getOutputStream().write(buffer, 0, len); } } } } catch (Exception ex) { throw new ServletException(ex); } } } -- 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] GAE showing more files in application than there actually are
Hi, I am developing an application using GWT and GWT Ext. The total number of files in the folder, including the ExtJS JavaScript and CSS files is about 2900, but when I try to deploy the application using Eclipse plug-in, I get an error that there are 5800 files and more than 3000 aren't allowed. Why is it happening, does GAE extracts files from JAR files and count them as individual files? Please help me out, I am stuck on it. Regards Nitin -- 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] preferred method of deleting child objects (quota/fees)
I wasn't aware setting the child objects to Null actually deleted objects - doesn't that just orphan the child objects? Either way, there should be no real difference in datastore CPU costs. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Sun, Sep 19, 2010 at 1:07 PM, haole mejoe...@gmail.com wrote: say i have a persistent parent class, Employee, with a collection of child objects, PhoneNumber: @PersistenceCapable(identityType = IdentityType.APPLICATION) class Employee implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) Long id; @Persistent(mappedBy = employee) ListPhoneNumber phoneNumbers; } @PersistenceCapable(identityType = IdentityType.APPLICATION) class PhoneNumber implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) Key key; @Persistent(mappedBy = phoneNumbers) Employee employee; @Persistent Integer phoneNumber; } when deleting all child objects (PhoneNumber), there are two possible ways to do this: (1) set the collection of child objects on the parent object to an empty collection (or null): static void deletePhoneNumbers( Long p_employeeId, PersistentManager p_manager ) { Employee l_employee = p_manager.getObjectById( Employee.class, p_employeeId ); l_employee.phoneNumbers = new ArrayListPhoneNumber(); p_manager.makePersistent( l_employee ); } or (2) delete all child objects belonging to the parent object: static void deletePhoneNumbers( Employee p_employee, PersistenceManager p_manager ) { Query l_query = p_manager.newQuery( PhoneNumber.class ); l_query.setFilter( employee == p_employee ); l_query.declareParameters( Employee p_employee ); l_query.deletePersistentAll( p_employee ); } both ways seem to have the same effect. as one might expect, the collection of child objects in the parent array are removed and the child objects themselves are removed from the data store. my question is: as far as hits on the data store (and the quota/fees associated with those hits) are concerned, which incurs a greater number of calls against the datastore (and, subsequently, incurs more fees)? when you look at what's happening in the low-level API, do both ways of deleting child objects result in the same number of calls against the data store or is one way less costly than the other? -- 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: Channel API still not live...
Channel API is not available yet. You can sign up for trusted tester here: https://spreadsheets.google.com/a/google.com/viewform?formkey=dGFxQ1A4T1BSYWxNdFlYVFhUcmg2amc6MQ On Mon, Sep 20, 2010 at 2:38 AM, Heiko Roth r...@egotec.com wrote: Hello there, We need channel api, too. Can we use it? Greetings, Heiko. -- 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] GAE showing more files in application than there actually are
Are you using SVN? Are there hidden files? These should be ignored by the deploy process but it's a good sanity check. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Mon, Sep 20, 2010 at 2:40 AM, Nitin Tomer n.to...@gmail.com wrote: Hi, I am developing an application using GWT and GWT Ext. The total number of files in the folder, including the ExtJS JavaScript and CSS files is about 2900, but when I try to deploy the application using Eclipse plug-in, I get an error that there are 5800 files and more than 3000 aren't allowed. Why is it happening, does GAE extracts files from JAR files and count them as individual files? Please help me out, I am stuck on it. Regards Nitin -- 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.
[appengine-java] MVC framework engineered specifically for GAE/J
I am looking for a lightweight MVC framework specifically engineered for GAE/J, preferably using Guice. I am aware of google sitebricks but I am wondering if there are other alternatives. regards, -g. -- 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] MVC framework engineered specifically for GAE/J
Slim3 is very popular: http://sites.google.com/site/slim3appengine/ I don't think there's DI out of the box, but the testing piece was fairly well thought out. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Mon, Sep 20, 2010 at 1:22 PM, George Moschovitis george.moschovi...@gmail.com wrote: I am looking for a lightweight MVC framework specifically engineered for GAE/J, preferably using Guice. I am aware of google sitebricks but I am wondering if there are other alternatives. regards, -g. -- 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.
[appengine-java] Mvenizing GAE/GWT project
Hi All, I am trying to maenize my exisitng GAE-GWT project. So first i started with a sample new project as mentioned here http://code.google.com/p/maven-gae-plugin/ I created a project with this command as mentioned on this page mvn archetype:generate -DarchetypeGroupId=net.kindleit -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 -DgroupId=com.myapp.test -DartifactId=testapp And then i imported this project in eclipse(Galileo) And nothing worked.(I did expected that it will work ) Version variables are defined like this $${Gae.version}}, which looks absurd and feel like this plugin is not good enough to start with. even after fixing these problems, it didint work at all. Does any one have any sample example/steps for GAE-GWT project with maven. 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 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] Cache questions
I have a couple of questions wrt Memcache. 1. Where do I find the javadoc for jcache ? The document seems woefully out-of-date The examples: http://code.google.com/appengine/docs/java/memcache/usingjcache.html refer to a package net.sf.jsr107.Cache. However, I find that the actual package is net.sf.jsr107cache.Cache. Where do I find the javadoc for net.sf.jsr107cache.Cache ? 2. In my application, I create a cache with the following property: props.put(GCacheFactory.EXPIRATION_DELTA,3600); Yet, I find that my cache does not expire after an hour. As a matter of fact, it does not seem to expire at all ! Objects put in the cache stay forever. Is there something I am missing ? Regards, Navaneeth -- 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] MapReduce - Active shards
What drives the number of active shards in a mapreduce job ? In my case, mapreduce jobs execution usually work fine, but only ONE shard actually processes entities, the 3 others don't. Any clue ? On 14/09/10 00:06, Benjamin bsaut...@gmail.com wrote: OK thanks Ikai, I was trying to avoid that but see no problem with it. Ben On Sep 13, 5:15 pm, Ikai Lan (Google) ikai.l+gro...@google.com wrote: You can't. Empty properties are the equivalent of unindexed properties. You'll need to iterate over all the Entities in your datastore and update them. The Mapper API is a very good tool for this: http://code.google.com/p/appengine-mapreduce/ On Mon, Sep 13, 2010 at 12:20 PM, Benjamin bsaut...@gmail.com wrote: Brain freeze guys - I added a property to my object and persisted in the datastore. The older object have now have a column that when viewed in the control panel have a value of missing. I need to query those objects so i can update them - propname == null , propname == - I can't seem to find the right syntax for this. -- 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%2B 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.
[appengine-java] Re: Class XXX has collection field x and this has no mapping in the table for the element class YYY owner field y
i had the same issue pop up after making some modifications to existing code that worked. turned out that one of the child classes was being referenced as a child from two different parent classes. this wasn't intended, it was just sloppy refactoring on my part. for example: Knife child of Kitchen but also child of Drawer. for each child class, search for all references to that class in your project. the other way to do it is to comment out one child member in the parent class at a time and recompile/retest. you can narrow down the culprit that way, even if it doesn't end up being the same problem that i had. unfortunately, datanucleus exceptions are vague and sometimes even misleading. -- 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] Problem with admin pages
Hi, I'm trying to use admin pages embedded in the Administration Console as described here http://code.google.com/appengine/docs/java/config/ appconfig.html#Administration_Console_Custom_Pages. The menu entry for the admin page is shown correctly, but when I call the page, I get the error: Error: Server Error The server encountered an error and could not complete your request. If the problem persists, please report your problem and mention this error message and the query that caused it. The logs show a warning entry: Authentication for the Google Apps domain cloudme.org can only be performed when requests are served from a subdomain of that domain or it has been approved through the Google Apps Control Panel. See http://code.google.com/appengine/articles/auth.html; In my application I'm using authentication for users of the cloudme.org domain only and I'm using the admin console at https:// appengine.google.com/a/cloudme.org. I tried before using authentication for all Google accounts, but that displayed the login screen on the admin page itself. Therefore I thought that using the domain authentication type would be more adequate for my setup. In my appengine-web.xml I have configured: admin-console page name=Dataload url=/admin/dataload / /admin-console and in the web.xml I have: security-constraint web-resource-collection web-resource-nameAdmin pages/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint Of course, the domain works on the development server. Any ideas what's wrong? Mo. -- 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: Mvenizing GAE/GWT project
Maybe the maven-gae-plugin group would be more helpful. But: In the dependencies section, you should use variables like $ {gae.version} (without quotes). When defining variables in the properties section you should use gae.version1.3.7/ gae.version (without quotes). I'd recommend that you use the latest version of the plugin and install the appengine sdk using mvn gae:unpack. Mo. On 20 Sep., 21:05, Ravi Sharma ping2r...@gmail.com wrote: Hi All, I am trying to maenize my exisitng GAE-GWT project. So first i started with a sample new project as mentioned here http://code.google.com/p/maven-gae-plugin/ I created a project with this command as mentioned on this page mvn archetype:generate -DarchetypeGroupId=net.kindleit -DarchetypeArtifactId=gae-archetype-gwt -DarchetypeVersion=0.7.1 -DgroupId=com.myapp.test -DartifactId=testapp And then i imported this project in eclipse(Galileo) And nothing worked.(I did expected that it will work ) Version variables are defined like this $${Gae.version}}, which looks absurd and feel like this plugin is not good enough to start with. even after fixing these problems, it didint work at all. Does any one have any sample example/steps for GAE-GWT project with maven. 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 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: Cache questions
As far as cache expiry is considered, its a guarantee that the cache won't expire before the set expiry date (it might still expire in case of failures etc). Basically, there's no real guarantee that the cache will expire after the time that you have set. It's just that it won't expire before the set time. -Nischal http://justunfollow.com On Sep 21, 1:24 am, Navaneeth Krishnan navaneeth.cont...@gmail.com wrote: I have a couple of questions wrt Memcache. 1. Where do I find the javadoc for jcache ? The document seems woefully out-of-date The examples:http://code.google.com/appengine/docs/java/memcache/usingjcache.html refer to a package net.sf.jsr107.Cache. However, I find that the actual package is net.sf.jsr107cache.Cache. Where do I find the javadoc for net.sf.jsr107cache.Cache ? 2. In my application, I create a cache with the following property: props.put(GCacheFactory.EXPIRATION_DELTA,3600); Yet, I find that my cache does not expire after an hour. As a matter of fact, it does not seem to expire at all ! Objects put in the cache stay forever. Is there something I am missing ? Regards, Navaneeth -- 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] IOException instead of 404
I'm using the URLFetchService to access some web services from my domain. Today I was testing the connection to one of my services, but I didn't realize that my app server was down. The expected behavior was that I would get a 404 in the HTTPResponse, but instead I'm seeing a java.io.IOException. Here's the top of the stacktrace. Hope this helps... Uncaught exception from servlet java.io.IOException: Could not fetch URL: https://.../google-dsapi-svc/addama/datasources/... at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java: 106) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java: 39) at org.systemsbiology.addama.coresvcs.gae.services.Proxy.doProxy(Proxy.java: 183) -- 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: App Engine Channel API release date on production?
Hooray! I'm eagerly waiting for Channel API to be enabled. I've been wanting to use it for two use cases (so far): - publishing events from services to users (job is finished, errors in analysis) - sending messages between applications (currently using polling to see if other application has submitted data) On Sep 13, 11:53 am, Ikai Lan (Google) ikai.l+gro...@google.com wrote: It's not ready yet. Our roadmap is here: http://code.google.com/appengine/docs/roadmap.html In general, we do not release ETAs for features until they are imminent. For instance, if you see something in a prerelease SDK, that's a sign it's likely going to happen (barring catastrophic issues). On Sun, Sep 12, 2010 at 6:30 PM, Daniel Guermeur superco...@gmail.comwrote: Hello there, I thought Channel API would be enabled with v1.3.6. We are now at v1.3.7, and I get an error when trying it: Uncaught exception from servlet com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The channel service is not enabled. Could anyone share some info regarding its release? Daniel -- 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.