[appengine-java] asking question
Hi, In my GAE application(Implemented in java) when I insert record in datastore, ID(generated by datastore) gets repeated.Please tell me the solution for my problem. Thanks -- Regards, Sujata... -- 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: sending mail in google app engine in java
Hi Sreekanth, Thanks for your reply.Admin address means with which we enter in to admin console.Isn't it. That is my e-mail address, right.Even that too not working.can you tell me clearly,please. On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote: in order to send mail in app engine, from address should be either admin or developer email id -- 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] cron jobs
Hi, Please help me in cron jobs,in google app engine. My program main code is as follows. -- import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.List; import java.util.Timer; import java.util.TimerTask; import javax.jdo.PersistenceManager; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class RepeatedResults extends HttpServlet { public PersistenceManager pm=PMF.getInstance().getPersistenceManager(); ListManager list; public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); PrintWriter pw=resp.getWriter(); System.out.println(cron); } } this code i wrote for printing a word like cron nuber of times. My cron.xml is as follows. -- ?xml version=1.0 encoding=UTF-8? cronentries cron url/repeated/url descriptionrepeated every one minutes/description scheduleevery 1 minutes/schedule /cron /cronentries It was saved in war\WEB_INF My servlet for repeatedResults is as follws servlet servlet-nameRepeated/servlet-name servlet-classgoalsmanagement.RepeatedResults/servlet-class /servlet servlet-mapping servlet-nameRepeated/servlet-name url-pattern/repeated/url-pattern /servlet-mapping I access this url from a html file. but result is print only one time.not repeatedly. My cron job status in admin console is as follows cron Job Schedule/Last Run/Last Status (All times are UTC) /repeated repeated every one minutesevery 1 minutes (UTC) 2010-02-18 08:54:49 on time Success could you please help me what was my mistake. thanks, Lakshmi. -- 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: how to do initialization at startup?
A reliable, high available, scalable and failover tolerant application requires a distributed environment where various application server instances run in different Java VMs on different machines with some kind of loadbalancing in front. So many things that you have to rethink arise from this change from a single server / single Java VM approach to a distributed environment with different Java VMs that do not share the same memory - no matter if it is GAE, JBoss, Tomcat or whatever application server that supports clustering and distributed webapps. 2010/2/18 tsp...@green20now.com tsp...@green20now.com AJ, With GAE, many fundamental assumptions should be questioned. For example, why do you need a counter? Most developers use a counter for the key, jusst because they always have. With GAE you need to often challange the fundamental requirements and rethink the approach. Overall all I think it is good for many developers since thy get in a rut and aply the same solution to all problems (over using a design pattern cause it always worked before) Sent from my Verizon Wireless Phone - Reply message - From: AJ Chen ajc...@web2express.org Date: Wed, Feb 17, 2010 10:52 PM Subject: [appengine-java] Re: how to do initialization at startup? To: google-appengine-java@googlegroups.com There is significant difference between dealing with infrequent crash event and dealing with frequent shutdown by GAE. The difference is huge when you want to have some intermediate data in memory for performance reason. When there is a system crash, you just start over, which is tolerable in most cases. Restarting app by GAE is a total different story because it makes storing data in memory no longer a valid approach. For my google app, I see it is restarted by GAE even after a few minutes. My usual singleton object become useless because the data objects it holds are recreated every few minutes. This is why I think GAE's frequent restart behavior is a constraint forcing me (probably other developers) to change design pattern, which may be good or bad. In this case, the change is not good, I'm afraid. Let's look at the counter example. Normally it's trivial to keep a counter of some sort on the server. But in GAE, it's non-trivial. You can't get a total count from datastore easily and storing a counter in memory is not reliable. SO, you have to do some creative work-around as proposed in GAE documentation. Am I making sense? In any case, I'm hoping someone has an easy/reliable way to keep tracking a counter in memory within GAE. I'll appreciate any suggestion. -aj On Wed, Feb 17, 2010 at 1:56 PM, Stephan Hartmann hartm...@metamesh.dewrote: Hi AJ, Your consideration is not specific to GAE. You always have the potential risk that a server could crash and then all your unstored data changes will get lost. So for critical data you should use a write-through cache. However, in a distributed environment like GAE (but not specific to GAE, every standard conform servlet container will support this) you have to take special care to keep the caches of all nodes in sync, or just use a distributed cache like Memcache in GAE. Regards, Stephan 2010/2/17 AJ Chen ajc...@web2express.org yes, the new console is a good addition. however, because the app can be shutdown/restarted by GAE at any time, you would still need to put the initialization code in context listener (or similar place) so that it will be called automatically when the app is restarted. I just realize a potential major issue in GAE environment, which may require some paradigm shift in server programming (at least to me). Usually, one the server side, you may have a singleton class to keep some data objects closeby as well as updating the data at run time. The data may change so fast that they are conveniently kept in memory for some time before put into permanent storage. This is safe because the web server does not kill the app at will. Now that GAE may kill the app and restart it at any time, keeping data in memory becomes a big potential problem because the data will be gone after the app starting. This means you would have to save the new data into datastore immediately. If you have lots of intermediate data or temporary data, you have to save them to datastore immediately as well. This always-using-datastore situation created by GAE may slow down some applications in addition to a lot more coding for storage. Without knowing what exactly happens when GAE automatically shutdowns the app, my worry may be wrong. Does anyone see the similar issue? Any suggestion for safely keeping data in memory? -aj On Wed, Feb 17, 2010 at 10:00 AM, Vlad Skarzhevskyy skarzhevs...@gmail.com wrote: There is an Custom Admin Console pages in new SDK 1.3.1. I think the best place to preload the data to your application is using servlet/page exposed in this Console. -- You received this
Re: [appengine-java] Setting the key of a child entity
Got it. Thanks again Ikai. Manny On Thu, Feb 18, 2010 at 12:16 AM, Ikai L (Google) ika...@google.com wrote: There should be with KeyFactory's builder, but you may not want to go there: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html On Sun, Feb 14, 2010 at 10:16 PM, Manny S manny.m...@gmail.com wrote: Thanks Ikai, I am doing it the way you described and it does work. Just wanted to know if there is a way to set the child key explicitly as parent + const string. But I understood that will not work with datastore generated keys since the parent needs to be persisted in order to get a key. Apologies for the naive question :). Manny On Fri, Feb 12, 2010 at 1:41 AM, Ikai L (Google) ika...@google.comwrote: Are both the parent and child persisted at the same time? If so, you can add the child object as a child (not the Key) of the Parent object and call makePersistent on the Parent. On Thu, Feb 4, 2010 at 1:28 AM, Manny S manny.m...@gmail.com wrote: I am missing something simple here but can anyone point me to how I can set the child key before making the parent data persistent...(in a unidirectional one to one relationship) I create the parent data and the child data parentdata pdata = new parentdata('x','y', 'z'); pdata.setKey(null); childdata child = new childdata('A'); pdata.setChild(child); Now, I would like to set the child key as parent key + mystring When I try, String strparentKey = KeyFactory.keyToString(pdata.getKey()); String strchildKey = strparentKey + details; Key childKey = KeyFactory.stringToKey(strchildKey); it gives me an error as the parent data does not have a key yet (cause is null) In this case the key of the parent is generated only when I persist. But I need to set the child key before I make it persistent. My application cannot generate an unique app id and I rely on the datastore to do it. As far as I can tell the KeyFactory.Builder does not have an option to generate unique keys and relies on the app to provide it and so I cant use that either. Any help would be appreciated... Manny -- 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. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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: how to do initialization at startup?
Addressing the stable situation where the VM is shutdown by GAE, similarly to the Servlet context initialization you can call the Servlet context destroyed listener to take care of any persistence you want to do there. Of course, this doesn't take care of any exceptional circumstances such as a crash etc ... cowper On Wed, Feb 17, 2010 at 8:58 PM, AJ Chen ajc...@web2express.org wrote: yes, the new console is a good addition. however, because the app can be shutdown/restarted by GAE at any time, you would still need to put the initialization code in context listener (or similar place) so that it will be called automatically when the app is restarted. I just realize a potential major issue in GAE environment, which may require some paradigm shift in server programming (at least to me). Usually, one the server side, you may have a singleton class to keep some data objects closeby as well as updating the data at run time. The data may change so fast that they are conveniently kept in memory for some time before put into permanent storage. This is safe because the web server does not kill the app at will. Now that GAE may kill the app and restart it at any time, keeping data in memory becomes a big potential problem because the data will be gone after the app starting. This means you would have to save the new data into datastore immediately. If you have lots of intermediate data or temporary data, you have to save them to datastore immediately as well. This always-using-datastore situation created by GAE may slow down some applications in addition to a lot more coding for storage. Without knowing what exactly happens when GAE automatically shutdowns the app, my worry may be wrong. Does anyone see the similar issue? Any suggestion for safely keeping data in memory? -aj On Wed, Feb 17, 2010 at 10:00 AM, Vlad Skarzhevskyy skarzhevs...@gmail.com wrote: There is an Custom Admin Console pages in new SDK 1.3.1. I think the best place to preload the data to your application is using servlet/page exposed in this Console. -- 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. -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org @web2express on twitter Palo Alto, CA, USA 650-283-4091 *Monitoring social media in real time* -- 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: sending mail in google app engine in java
The admin is an email address for some configured as an application developer from the application console. If you're testing from local SDK the email does not get sent so that could be the issue. However for me I see log statements to the effect that the email is being sent so you should be seeing the same unless you have logging configured to output very little. cowper On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote: Hi Sreekanth, Thanks for your reply.Admin address means with which we enter in to admin console.Isn't it. That is my e-mail address, right.Even that too not working.can you tell me clearly,please. On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote: in order to send mail in app engine, from address should be either admin or developer email id -- 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] asking question
We don't have too much information to go on here but my best guess would be that you're testing in your local SDK and the local datastore is being re-copied during your build process and as such the keys you are seeing are the same as a previous build? On Thu, Feb 18, 2010 at 8:13 AM, sujata pagar suja.paga...@gmail.comwrote: Hi, In my GAE application(Implemented in java) when I insert record in datastore, ID(generated by datastore) gets repeated.Please tell me the solution for my problem. Thanks -- Regards, Sujata... -- 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] JasperException for custom taglib with a custom attribute type
Hi, Since upgrading to 1.3.1 I am getting the following runtime error from a JSP that calls a custom taglib that has an attribute of a type that I've defined. org.apache.jasper.JasperException: jsp.error.beans.property.conversion at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java: 885) at org.apache.jsp.index_jsp._jspx_meth_sq_foo_0(index_jsp.java:225) The attribute in the tag file is defined as: %@ attribute name=myfoo required=true type=com.my.model.Foo % The tag is being invoked from another jsp like so: % request.setAttribute(foo, new Foo()); % f:foo myfoo=${foo}/ What is the best way to view the source in : org.apache.jsp.index_jsp._jspx_meth_sq_foo_0(index_jsp.java:225) to try and see what is going wrong? Is it possible to configure jetty/jasper to compile the jsps to a specific location under GAE-J in Dev Mode? Does anyone have any idea what may be causing this Exception ? NOTE: When I use a simple java.lang.String type as the attribute, things work fine. Cheers, Nick -- 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: sending mail in google app engine in java
Thanks cowper, really you did a great help to me.Nearly i am searching for this clarity for two weeks.Thank you very much. But what can i do for sending emails from google app engine. Is there any need with third party server.can you mention those details also please. Thanks, Lakshmi. On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote: The admin is an email address for some configured as an application developer from the application console. If you're testing from local SDK the email does not get sent so that could be the issue. However for me I see log statements to the effect that the email is being sent so you should be seeing the same unless you have logging configured to output very little. cowper On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote: Hi Sreekanth, Thanks for your reply.Admin address means with which we enter in to admin console.Isn't it. That is my e-mail address, right.Even that too not working.can you tell me clearly,please. On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote: in order to send mail in app engine, from address should be either admin or developer email id -- 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.- 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-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: sending mail in google app engine in java
You don't need any third party server. Just reserve one of your deployed apps as your test server and test all your mail-sending stuff there. As Conor already explained you can't send mails testing locally. On Thu, Feb 18, 2010 at 2:00 PM, lakshmi sowji.ap...@gmail.com wrote: Thanks cowper, really you did a great help to me.Nearly i am searching for this clarity for two weeks.Thank you very much. But what can i do for sending emails from google app engine. Is there any need with third party server.can you mention those details also please. Thanks, Lakshmi. On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote: The admin is an email address for some configured as an application developer from the application console. If you're testing from local SDK the email does not get sent so that could be the issue. However for me I see log statements to the effect that the email is being sent so you should be seeing the same unless you have logging configured to output very little. cowper On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote: Hi Sreekanth, Thanks for your reply.Admin address means with which we enter in to admin console.Isn't it. That is my e-mail address, right.Even that too not working.can you tell me clearly,please. On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote: in order to send mail in app engine, from address should be either admin or developer email id -- 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 google-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.- 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-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: sending mail in google app engine in java
Thanks for your reply. let me try it. On Feb 18, 5:03 pm, Alexander Arendar alexander.aren...@gmail.com wrote: You don't need any third party server. Just reserve one of your deployed apps as your test server and test all your mail-sending stuff there. As Conor already explained you can't send mails testing locally. On Thu, Feb 18, 2010 at 2:00 PM, lakshmi sowji.ap...@gmail.com wrote: Thanks cowper, really you did a great help to me.Nearly i am searching for this clarity for two weeks.Thank you very much. But what can i do for sending emails from google app engine. Is there any need with third party server.can you mention those details also please. Thanks, Lakshmi. On Feb 18, 3:48 pm, Conor Power iamco...@gmail.com wrote: The admin is an email address for some configured as an application developer from the application console. If you're testing from local SDK the email does not get sent so that could be the issue. However for me I see log statements to the effect that the email is being sent so you should be seeing the same unless you have logging configured to output very little. cowper On Thu, Feb 18, 2010 at 8:14 AM, lakshmi sowji.ap...@gmail.com wrote: Hi Sreekanth, Thanks for your reply.Admin address means with which we enter in to admin console.Isn't it. That is my e-mail address, right.Even that too not working.can you tell me clearly,please. On Feb 18, 12:12 pm, Sreekanth Raju sraj...@gmail.com wrote: in order to send mail in app engine, from address should be either admin or developer email id -- 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 google-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.-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-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.- 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-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] cron jobs
Hi, if you want it to be printed on the browser you should use pw.println(cron); pw.close(); instead of System.out.println(cron); 2010/2/18 Sowji sowji.ap...@gmail.com Hi, Please help me in cron jobs,in google app engine. My program main code is as follows. -- import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.List; import java.util.Timer; import java.util.TimerTask; import javax.jdo.PersistenceManager; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class RepeatedResults extends HttpServlet { public PersistenceManager pm=PMF.getInstance().getPersistenceManager(); ListManager list; public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); PrintWriter pw=resp.getWriter(); System.out.println(cron); } } this code i wrote for printing a word like cron nuber of times. My cron.xml is as follows. -- ?xml version=1.0 encoding=UTF-8? cronentries cron url/repeated/url descriptionrepeated every one minutes/description scheduleevery 1 minutes/schedule /cron /cronentries It was saved in war\WEB_INF My servlet for repeatedResults is as follws servlet servlet-nameRepeated/servlet-name servlet-classgoalsmanagement.RepeatedResults/servlet-class /servlet servlet-mapping servlet-nameRepeated/servlet-name url-pattern/repeated/url-pattern /servlet-mapping I access this url from a html file. but result is print only one time.not repeatedly. My cron job status in admin console is as follows cron Job Schedule/Last Run/Last Status (All times are UTC) /repeated repeated every one minutesevery 1 minutes (UTC) 2010-02-18 08:54:49 on time Success could you please help me what was my mistake. thanks, Lakshmi. -- 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: Problems using a ThreadLocal variable
Hi there, I just wanted to say that I finally fixed the issue, and wanted to share the solution so anyone else using wicket don't have to spend plenty of hours trying to find out what's the problem with this kind of cases. The thing was that, as we all know, the cloud is a distributed environment, and I was using the class PackageResource for static resources, when in fact the proper class for distributed environments was ResourceReference. I changed that and It started working again. The error I was getting from wicket was: There is no application attached to current thread Runtime Network Thread . Regards, Esteban El 17/02/2010 11:41, Esteban Masoero escribió: Thanks for the response. I must clarify that my app was already running smoothly on GAE (both in development and deployment environments), event with a file upload implementation. However, from yesterday I started to see that kind of errors and wanted to know if something strange was happening with this kind of variables. Anyway, I'll keep looking for a solution. Thanks, Esteban El 17/02/2010 10:53, Jake escribió: Hey, There are a fair number of posts on how to implement Wicket on GAE. E.g. http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/ I'm currently working on a pretty large Wicket/GAE project and, while I've hit a few hiccups, everything has worked in the long run. Two quick comments: 1. Poor detaching/coding practices in Wicket fill up the Session very quickly. Since the examples use HttpSession to back the Wicket Session, and GAE has a max of 1MB on the HttpSession, you need to be careful. 2. File uploads need to be tweaked. I can't find the files right now, but a small bit of searching turns up someone who has created a good workaround using the datastore. Jake On Feb 16, 6:24 pm, Brianbwa...@gmail.com wrote: I have not used Wicket myself, but have you seenhttp://groups.google.com/group/google-appengine-java/web/will-it-play... ? It looks like Wicket must be massaged a little to work... On Feb 16, 3:36 pm, Esteban Masoeroemaso...@getsense.com.ar wrote: Hi there: Since today, my app started to have problems when using a ThreadLocal variable. I'm using wicket framework, and it happens that the first request to the page is fine, but sometimes I get an exception caused by wicket saying that the app (which is stored in a threadlocal variable) is not found (is null). I didn't make any change to the framework related to that, I only made some minor changes that have no relation to this problem. Has anyone experienced something alike? Can any guy from google give some hint about this? Thanks, Esteban -- 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] Google Accounts are killing my application!....
I have been trying to leverage google accounts for security for my users, but the way its working is really preventing useability within my application, its very frustrating Ive just spent the best part of the last week trying to get the google account login to work in an frame within my application. Ive run into a number of related issues (see other threads in the GWT group) which I have manage to work through finally. (Thanks to everyone who helped out and provided input) However, I have just tried clicking on the create an account now link which is what will be used by any new user who doesnt currently have a google account, but the account creation window has frame breakout code on it, which takes my users away from my application again, and then after clicking on the email link to confirm thier new account, the user is NOT taken back to my application but are just congratulated for creating a google account. The problem is that the user is then left thinking now what do i do? and several of the people we are talking to have just given up at that point! Has anyone else successfully integrated Google accounts into their applications? Should I create my own logins rather than using Google accounts? I have struggled with getting a consistent answer to the problem of how to send passwords to the server given that GAE doesnt support SSL or HTTPS yet. Everyone seems to say that any client side encoding is pointless, but it seems to me that some form of encoding has to be better than not encoding at all!! -- 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: GWT Developer Plugin for Safari 4.0.4!
Thanks will do that! On Feb 17, 2:06 am, Ikai L (Google) ika...@google.com wrote: Can you ask on the Google Web Toolkit groups? http://groups.google.com/group/Google-Web-Toolkit On Sat, Feb 13, 2010 at 11:11 AM, Babgali babuvi...@gmail.com wrote: Can any one please help me out on getting GWT Developer Plugin for Safari 4.0.4 to read MIME type application/x-gwt-hosted-mode. -- 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. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine- 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-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] JavaMail doesn't work
Hi All, I struck at JavaMail application. I tested remotely and locally also. It's not working. please help me. Please share a simple servlet if possible thanks raghu -- 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: Google App Engine : web-app being hibernated ?
Hey all, Look at (and perhaps post on) http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/ I've gotten to the point where the instance recycling happens every few seconds (but then works for a bit until I pause). Currently, my application is essentially non-functional in a deployed state and the 1-minute ping trick didn't seem to be much help as even that failed to keep it up and running. On the bright side, I'm pretty sure Ikai and others are working on it. Jake On Feb 17, 6:00 pm, Brian bwa...@gmail.com wrote: It is unknown. Google won't tell or guarantee a time, because it will change vs on traffic to your app, traffic to other apps, number of apps running, number of servers Google has dedicated to Google App Engine, etc. etc. etc. Could be up forever, or could be up 1 second before a shutdown. Can't code anything that depends on your instance being up instantly, or it won't scale well or be guaranteed to work. On Feb 17, 12:56 pm, Henning henning2...@hotmail.de wrote: Hi, do you know the exact time ? I noticed too that sometimes a request can take up to 20 seconds. I am using for the front-end flash/flex which allows me to request a status information every 15 seconds (at the moment). I already needed this status info for proprietary session handling and the so-called maintenance shut down. After the first request which can take a lot of time, everything goes smooth. I wonder at what time intervals I should set my alive handler. The first idea was about 3 minutes but that is maybe too slow. Best regards, Henning On Feb 17, 7:40 pm, Brian bwa...@gmail.com wrote: Yes. The actual time to hibernate is really short, closer to 1-2 minutes than 1 hour. Until this is fixed in some way, you need to either be willing to accept the huge wait for free hosting, or code some kind of task to ping your app every 60 seconds... On Feb 16, 11:17 pm, netcompetency netcompete...@gmail.com wrote: Hi all, i have some labs on Google App Engine and find some strange yet consistent behaviour. My app is based on Spring/JPA. No error/ exception and working properly. The issue is with performance. If we are not using the apps for some time --- for example for an hour --- the application is like being hibernated. It needs time to response to the first request. Is this the case ? Is there an documentation on this ? Cheers, Eko Budhi S -- 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] How to pass paramters to servlet deployed on GAE?
Hello all, I've a test servlet to deploy on gae platform, which just read paramters from the request and and sysout them. While deploying on the development server (via Eclipse plugin) everything works as expected, i.e. http://localhost:/test1?p1=v1 causes the servlet to display the parameter and its value to the log file. When deployed to GAE, however, the results are different. Bringing the browser to http://appid.appspot.com/test1?p1=v1 causes the browser show link-is-broken screen. In the log files there messages like GET / test1?p1=v1/ HTTP/1.1 404. Accessing http://appid.appspot.com/test1/ do hit the servlet, but the parameters map in the request is empty. So, what is the right way to pass parameters to servlets? Thanks. -- 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] Using socket with GAE
You should be able to do the equivalent over http as what you are doing / would like to do over the socket. And if that's the case there should not be any constraints for you. cowper On Thu, Feb 18, 2010 at 12:01 AM, med@gmail.com med@gmail.comwrote: Hi Everyone, I am a beginner in using GAE, and I was wondering if it was possible to use socket for getting simple msg from the client as it's essential in my application. And Thanks. -- 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] cloud-based teaching system
hello all am developing an application as mentioned in the subject. am using Eclipse 3.5 Java EE module to develop it. I have downloaded the google plug ins. But the problem with the application is as soon as i create a JSP page in WAR folder my Eclipse console gives an error Description ResourcePathLocation Type Your Web Application Project must be configured to use a JDK in order to use JSP's i have to use Eclipse Java module ? Please help Thank you -- 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: Using socket with GAE
I can confirm that URLConnection's getOutputStream() works like a charm when my client-side applet needs to send an object to my GAE application. Jake On Feb 18, 10:24 am, Conor Power iamco...@gmail.com wrote: You should be able to do the equivalent over http as what you are doing / would like to do over the socket. And if that's the case there should not be any constraints for you. cowper On Thu, Feb 18, 2010 at 12:01 AM, med@gmail.com med@gmail.comwrote: Hi Everyone, I am a beginner in using GAE, and I was wondering if it was possible to use socket for getting simple msg from the client as it's essential in my application. And Thanks. -- 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] How to pass paramters to servlet deployed on GAE?
This is the right way. Maybe showing your servlet's source would help us identify the problem. On 2/18/2010 4:19 PM, barak wrote: Hello all, I've a test servlet to deploy on gae platform, which just read paramters from the request and and sysout them. While deploying on the development server (via Eclipse plugin) everything works as expected, i.e. http://localhost:/test1?p1=v1 causes the servlet to display the parameter and its value to the log file. When deployed to GAE, however, the results are different. Bringing the browser to http://appid.appspot.com/test1?p1=v1 causes the browser show link-is-broken screen. In the log files there messages like GET / test1?p1=v1/ HTTP/1.1 404. Accessing http://appid.appspot.com/test1/ do hit the servlet, but the parameters map in the request is empty. So, what is the right way to pass parameters to servlets? Thanks. -- 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] cloud-based teaching system
Go to Window-Preferences-Java-Installed JREs and add a jdk. Sometimes eclipse detects the jre only. On 2/18/2010 4:51 PM, Jeevan wrote: hello all am developing an application as mentioned in the subject. am using Eclipse 3.5 Java EE module to develop it. I have downloaded the google plug ins. But the problem with the application is as soon as i create a JSP page in WAR folder my Eclipse console gives an error Description ResourcePath Location Type Your Web Application Project must be configured to use a JDK in order to use JSP's i have to use Eclipse Java module ? Please help Thank you -- 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] cloud-based teaching system
Which JRE type should i select is it 1)standard exe environment 2)standard 1.1 3)standard VM and what next? Warm Regards, Jeevan Dongre. || Wisdom is Power || On Thu, Feb 18, 2010 at 6:05 PM, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: Go to Window-Preferences-Java-Installed JREs and add a jdk. Sometimes eclipse detects the jre only. On 2/18/2010 4:51 PM, Jeevan wrote: hello all am developing an application as mentioned in the subject. am using Eclipse 3.5 Java EE module to develop it. I have downloaded the google plug ins. But the problem with the application is as soon as i create a JSP page in WAR folder my Eclipse console gives an error Description ResourcePath Location Type Your Web Application Project must be configured to use a JDK in order to use JSP's i have to use Eclipse Java module ? Please help Thank you -- 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: Eclipse hangs at startup, Ubuntu
Hi, I am guessing that you're using Subclipse? If you can reproduce the problem consistently, can you file an issue for this? Thanks, Rajeev On Fri, Feb 12, 2010 at 4:31 AM, Tony tony.kapfenber...@gmail.com wrote: Hello, I do have the same Problem (Ubuntu 9.10, Eclipse Galileo, Google Plugin) my, web-inf/lib folder is under source control. I found out that it helps, when i delete the contents of the web-inf/ lib folder prior to starting eclipse. Eclipse then will start without problem and i can get the deleted libraries back from the svn repository... tony On Jan 22, 4:23 pm, Rajeev Dayal rda...@google.com wrote: Hi, What is the name of your project, and the name of your App Engine SDK? I'm trying to decipher (in our code) where the message Updating myproject/...ne - 1.3.0 comes from. When Eclipse starts up, the SDKs will automatically copy over the necessary jars to your project's war/WEB-INF/lib folder. I think that's what is happening here. This should not cause a freeze-up in the IDE though. Is your war/WEB-INF/lib folder version-controlled, and are you using some sort of version-control plugin in Eclipse? If so, does it help if you remove the war/WEB-INF/lib folder from version control? Rajeev On Thu, Jan 14, 2010 at 7:33 AM, pgoetz pgo...@pgoetz.de wrote: On Jan 14, 11:41 am, Blessed Geek blessedg...@gmail.com wrote: Is any of your resources sitting in a foreign file system like smb, ntfs or nfs? No, all of my resources are local. They are attached to a SVN repository, but the subversion plugin does not communicate with the repository at that time. And do you have many projects mounted like I do? I had the same problem and I had to kill/restart the connector process to the foreign file system, whenever this happens. I would notice thrashing going own in the connection and eclipse got stuck. Again no. It is the only project in this workspace (just a test project). [...] Perhaps, you could turn autobuild off everytime you exit eclipse so that it when eclipse is started, it would not autobuild - and turn it back on when eclipse startup has quieted down. That was a hint in the right direction, I think. I have disabled the google plugin, closed the project, reactivated the plugin and after a startup and some time for eclipse to organize itself, I opened the project. That did the trick. In my opinion this is not a very elegant solution, but it works for me so far. Thank you very much for your help! Greetings, Peter -- 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 google-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] How to pass paramters to servlet deployed on GAE?
You say http://appid.appspot.com/test1/ hits the servlet. What happens without a trailing slash? Is it redirected? How does your servlet mappings look like? 2010/2/18 barak barak.ya...@gmail.com Hello all, I've a test servlet to deploy on gae platform, which just read paramters from the request and and sysout them. While deploying on the development server (via Eclipse plugin) everything works as expected, i.e. http://localhost:/test1?p1=v1 causes the servlet to display the parameter and its value to the log file. When deployed to GAE, however, the results are different. Bringing the browser to http://appid.appspot.com/test1?p1=v1 causes the browser show link-is-broken screen. In the log files there messages like GET / test1?p1=v1/ HTTP/1.1 404. Accessing http://appid.appspot.com/test1/ do hit the servlet, but the parameters map in the request is empty. So, what is the right way to pass parameters to servlets? Thanks. -- 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: How to pass paramters to servlet deployed on GAE?
servlet servlet-nametest1/servlet-name servlet-classcom.TestServlet/servlet-class /servlet servlet-mapping servlet-nametest1/servlet-name url-pattern/test1/*/url-pattern /servlet-mapping On Feb 18, 6:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: You sayhttp://appid.appspot.com/test1/hits the servlet. What happens without a trailing slash? Is it redirected? How does your servlet mappings look like? -- 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: How to pass paramters to servlet deployed on GAE?
As url-patter i would use url-pattern/test1/url-pattern or, if you need a path info in your servlet, at least url-pattern/test1*/url-pattern 2010/2/18 barak barak.ya...@gmail.com servlet servlet-nametest1/servlet-name servlet-classcom.TestServlet/servlet-class /servlet servlet-mapping servlet-nametest1/servlet-name url-pattern/test1/*/url-pattern /servlet-mapping On Feb 18, 6:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: You sayhttp://appid.appspot.com/test1/hits the servlet. What happens without a trailing slash? Is it redirected? How does your servlet mappings look like? -- 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: How to activate java-type extension for JPA
There is some more information about this over here: http://www.datanucleus.org/servlet/forum/viewthread_thread,5975 Why is Google disabling this functionality? What potential harm comes from using ObjectStringConverters for simple types, especially all the common ones datanucleus provides? On Feb 17, 4:51 pm, Jeremy Norris jnorri...@gmail.com wrote: I have a simple JPA @Entity that has a property of type java.util.Locale. When I try and persist this, I get the following error: java.lang.IllegalArgumentException: locale: java.util.Locale is not a supported property type. at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue( DataTypeUtils.java:174) ... In the appengine SDK (1.3.1) in datanucleus-core-1.1.5.jar contains plugin.xml contains the following type conversion extension: java-type name=java.util.Locale persistent=true embedded=true string-converter=org.datanucleus.store.types.LocaleStringConverter/ How do I activate this type converter in my @Entity class? Thanks. -- 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: cloud-based teaching system
On Feb 18, 6:17 pm, Jeevan Dongre jeevan.don...@gmail.com wrote: Which JRE type should i select is it 1)standard exe environment 2)standard 1.1 3)standard VM and what next? Warm Regards, Jeevan Dongre. || Wisdom is Power || On Thu, Feb 18, 2010 at 6:05 PM, Cristian Nicanor Babula nicanor.bab...@gmail.com wrote: Go to Window-Preferences-Java-Installed JREs and add a jdk. Sometimes eclipse detects the jre only. On 2/18/2010 4:51 PM, Jeevan wrote: hello all am developing an application as mentioned in the subject. am using Eclipse 3.5 Java EE module to develop it. I have downloaded the google plug ins. But the problem with the application is as soon as i create a JSP page in WAR folder my Eclipse console gives an error Description Resource Path Location Type Your Web Application Project must be configured to use a JDK in order to use JSP's i have to use Eclipse Java module ? Please help Thank you -- 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] An alternative JDO join technique
In September 2009 I started to rebuild a site using a TomCat hosted web server I had developed that improved upon many good ideas found in Drupal. In December 2009 I discovered Google's AppEngine, saw the potential, and decided to re-target my system to use this technology. The system, being SQL based, used a Link table technique to create joins. That is, a table consisting of the columns parent-id and child- id maps a many-many relationship of the tables to be joined. The other use cases, namely one-one, one-many, many-one are just special cases of this general case. I believe this technique maps very well into the Datastore environment. I have set up a site at http://www.rexcel.ca:/gems/bbb/load.home which both demonstrates and describes this technique. In particular, link http://www.rexcel.ca:/gems/bbb/load.syswiki?ww=70116#hdr-1-3 describes the link record. (By signing in as userid=visitor password=your_name the system will activate a read-only mode for many functions such as the permission system that uses this technique heavily.) If there is enough interest I am prepared to make the code available. Steve Pritchard PS. The site also demonstrates a JDO modeling technology but that is another thread. On Feb 12, 4:44 pm, Max Ross (Google) maxr+appeng...@google.com wrote: http://gae-java-persistence.blogspot.com/2010/02/truth-about-joins.html -- 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] Potential JDO modeling solution
In September 2009 I started to rebuild a site using a TomCat hosted web server I had developed that improved upon many good ideas found in Drupal. In December 2009 I discovered Google's AppEngine, saw the potential, and decided to re-target my system to use this technology. I had designed the system to model objects using DB tables. In the AppEngine I have replaced them with JDO objects and built a system that generates both the JDO object and the smarts that add extra functionality to each field (such as validation and access rights). Objects are joined together using a Link Table technique described later in the document. This technique avoids all the entity boundary issues with Datastore as well as provides techniques for joining the different objects. It is really an implementation of what is described in http://code.google.com/appengine/docs/java/datastore/relationships.html#Unowned_Relationships . I have set up a site at http://www.rexcel.ca:/gems/bbb/load.home which both demonstrates and describes these techniques. In particular: link http://www.rexcel.ca:/gems/bbb/load.syswiki?ww=70116#hdr-1-3 describes the joining technique. link http://www.rexcel.ca:/gems/bbb/load.syswiki?ww=70113 describes the modeling technique. (By signing in as userid=visitor password=your_name the system will activate a read-only mode for many functions such as the permission system this technology extensively.) If there is enough interest I am prepared to make the code available. Steve Pritchard On Feb 8, 1:16 pm, Jake jbrooko...@cast.org wrote: Hey, Relationships in GAE are a bit picky. It is my understanding that you can only persist children by way of persisting their parents. So, in your case, both Race and Runner are children of Result and you would only persist the two result objects - the dependent children would be persisted automatically. I'm willing to bet, though, that a single race object cannot be the child of two different parent objects, though I'm not certain. The details are all here:http://code.google.com/appengine/docs/java/datastore/relationships.html For the most part, I've found that parent/child relationships are only useful when the two are highly related - usually when I'm extending a class to provide more data. (e.g. Race - RaceDetails). The easy way to get around this is to store the objects in unowned relationships, referencing other objects by IDs as described inhttp://code.google.com/appengine/docs/java/datastore/relationships.ht Then, with some fancy getters/setters that automatically query the Datastore, you end up with the same result. See my example below. If anyone has any other advice, though, please contribute. I haven't found a great way to handle this and I'm trying to avoid using GAE specific libraries to help. Jake public class Race { private Key id; ... } public class Result { private Key id; private Key raceId; public Race getRace() { //query datastore with getObjectById(Race.class, raceId); } } On Feb 6, 7:15 pm, Rodolphe rde...@gmail.com wrote: Hello, I am very new to appengine, and I am trying a very basicmodelexemple: A Race class is linked to a Runner class through a Result class When I am running the folloging code (the full code is attached): Race race = new Race(Paris, new Date(), 10); Runner runner1 = new Runner(Smith); Runner runner2 = new Runner(John); Result result1 = new Result(race, runner1, 1); Result result2 = new Result(race, runner2, 2); PersistenceManager pm = PMF.get().getPersistenceManager(); try { race = pm.makePersistent(race); runner1 = pm.makePersistent(runner1); runner2 = pm.makePersistent(runner2); pm.makePersistent(result1); pm.makePersistent(result2); } finally { pm.close(); } I get the following error: Detected attempt to establish Result(4) as the parent of Runner(2) but the entity identified by Runner(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. org.datanucleus.store.appengine.FatalNucleusUserException: Detected attempt to establish Result(4) as the parent of Runner(2) but the entity identified by Runner(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. at org.datanucleus.store.appengine.DatastoreRelationFieldManager.checkForParentSwitch(DatastoreRelationFieldManager.java:204) at org.datanucleus.store.appengine.DatastoreRelationFieldManager$1.setObjectViaMapping(DatastoreRelationFieldManager.java:125) at org.datanucleus.store.appengine.DatastoreRelationFieldManager$1.apply(DatastoreRelationFieldManager.java:104) at
[appengine-java] Exception when Calling UserService.createLogoutURL
Hi, I am using App Engine 1.2.6 and GWT 1.7.1. I have a App Engine application that uses GWT and authenticates users with Google Accounts. I have been able to make the application force a user to sign in with the Google Account and then redirect the user to the page that was requested. I am having trouble with the sign-out part. Upon sign-out, I want the application to show an HTML page that says that the user has been signed out and provides a link to sing back it. The name of this file is loggedout.html and it resides at the top level of the WAR/ folder. I am using the Struts framework in the web application and I do the following in the Struts Action that gets executed when the user chooses to log out of the application. UserService userService = UserServiceFactory.getUserService (); return new ActionForward (userService.createLogoutURL (“/ loggedout.html”)); This works fine when the application is running in the embedded browser in the development mode. However, when I deploy the application to the App Engine, I get a NullPointerException with the following stacktrace. Any idea what’s going on? Thanks, Viji Uncaught exception from servlet java.lang.NullPointerException at org.apache.struts.chain.commands.servlet.PerformForward.handleAsForward(PerformForward.java: 113) at org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java: 96) at org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java: 54) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java: 51) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java: 191) at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java: 305) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java: 191) at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java: 283) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1913) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java: 449) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com.ace.prototype.server.filters.AuthenticationFilter.doFilter(AuthenticationFilter.java: 30) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at
[appengine-java] Re: App Engine and Spring slow start up
Hi, It appeared that long init problem is well known for Grails users: http://jira.codehaus.org/browse/GRAILSPLUGINS-1736 I wasted couple of weeks to create app I cannot run. Hope that SpringSource and Google can solve the issue. On Feb 17, 7:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: The problem is that the initialization of your app takes longer than 30 seconds. Pinging your app doesn't help when the app is restarted due to redeployment or maintenance, or when high traffic demands a second instance. You should try to reduce your startup time. regards, Stephan 2010/2/17 luijar luis.j.aten...@gmail.com Great, all of our projects are Spring enabled lol. But I guess it's good that we are not the only ones seeing this, hopefully it gets a little more visibility. We have a cron job (1 min) that tries to keep our application alive by hitting a URL, but it does not do a very good job. It's frustrating and we don't even have access to the 500 page to tell the user to retry or go somewhere else. On Feb 17, 11:21 am, oth other...@gmail.com wrote: Yes we have seen this problem a lot. Per our tests, an application becomes idle after a minute of non activity. So, the unfortunate reality is that you need to keep your app alive by simulating activity on it. Or go the non Spring route. Thanks On Feb 16, 4:14 pm, luijar luis.j.aten...@gmail.com wrote: Hello Google App Engine forum, We have been seeing ever since we deployed our applications (currently 3 of them) that when our application instances become idle (they have not been hit for x amount of seconds) subsequent requests return with a 500 response. Logs show a hard deadline exceeded error com.google.apphosting.runtime.HardDeadlineExceededError: This request (32306ebe63b71ab0) started at 2010/02/12 20:39:11.984 UTC and was still executing at 2010/02/12 20:39:41.225 UTC. at com.google.appengine.runtime.Request.process-32306ebe63b71ab0(Request.java) And the first line of the log message has the following : 02-12 12:39PM 14.088 javax.servlet.ServletContext log: Initializing Spring root WebApplicationContext Question: Has anyone else seen this behavior? How long does it take for an application instance to become idle? Thanks -- 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: Updating a broken app?
I am wondering if the case in the message means it is not picking up the app_id properly? ...the message says: You do not have permission to modify this app (app_id=u'MyProject'). though I have set google.appengine.application=myproject and I was able to previously deploy a version. On Feb 17, 6:51 pm, boardtc boar...@gmail.com wrote: I have a gae application loaded up, though my first attempt is not working due to me not testing locally first. Now when I try and do an update I get you do not have permission to modify this app. My app_id is correctly set and I am using the right email and password. Do I need to disabela nd dlete the app first in order to update 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-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: Updating a broken app?
Right so the message says: you do not have permission to modify this app (app_id=u'MyProject') I am wondering if the case means it's not picking up my app-id (google.appengine.application=myproject). Not sure why this would be since it worked for the first deployment to GAE. On Feb 17, 6:51 pm, boardtc boar...@gmail.com wrote: I have a gae application loaded up, though my first attempt is not working due to me not testing locally first. Now when I try and do an update I get you do not have permission to modify this app. My app_id is correctly set and I am using the right email and password. Do I need to disable and delete the app first in order to update 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-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] Editing records in datastore (using JAVA)
I have been searching for sample java program to add, edit and delete records. I found many example showing how to add and delete records but not a single about editing. Do anyone have a sample source link to show how to edit a record ??? -- 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] java.lang.RuntimeException: Version not ready.
Hi, I just signed up for google app engine and installed the Eclipse plugin. I did not add any other code to the default app and am able to run the app in my local eclipse env without any problem. I get error while deploying the app to google server my app id is : twittermutuality Here is console output when tried second time: Compiling module test.Test Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into C:\Workspaces\Personal\Test\war\test. Link succeeded Compilation succeeded -- 16.828s Creating staging directory Scanning for jsp files. Scanning files on local disk. Initiating update. Cloning 32 static files. Cloning 56 application files. Uploading 0 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds Will check again in 2 seconds Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. Below are the logs: --- Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java: 466) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 127) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Any help will be appreciated. -- 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: App Engine and Spring slow start up
Have you deployed your application with the 1.3.1 SDK? That release turned on offline precompilation by default, which is an optimization that may help. On Thu, Feb 18, 2010 at 7:59 AM, Alex chasov...@gmail.com wrote: Hi, It appeared that long init problem is well known for Grails users: http://jira.codehaus.org/browse/GRAILSPLUGINS-1736 I wasted couple of weeks to create app I cannot run. Hope that SpringSource and Google can solve the issue. On Feb 17, 7:41 pm, Stephan Hartmann hartm...@metamesh.de wrote: The problem is that the initialization of your app takes longer than 30 seconds. Pinging your app doesn't help when the app is restarted due to redeployment or maintenance, or when high traffic demands a second instance. You should try to reduce your startup time. regards, Stephan 2010/2/17 luijar luis.j.aten...@gmail.com Great, all of our projects are Spring enabled lol. But I guess it's good that we are not the only ones seeing this, hopefully it gets a little more visibility. We have a cron job (1 min) that tries to keep our application alive by hitting a URL, but it does not do a very good job. It's frustrating and we don't even have access to the 500 page to tell the user to retry or go somewhere else. On Feb 17, 11:21 am, oth other...@gmail.com wrote: Yes we have seen this problem a lot. Per our tests, an application becomes idle after a minute of non activity. So, the unfortunate reality is that you need to keep your app alive by simulating activity on it. Or go the non Spring route. Thanks On Feb 16, 4:14 pm, luijar luis.j.aten...@gmail.com wrote: Hello Google App Engine forum, We have been seeing ever since we deployed our applications (currently 3 of them) that when our application instances become idle (they have not been hit for x amount of seconds) subsequent requests return with a 500 response. Logs show a hard deadline exceeded error com.google.apphosting.runtime.HardDeadlineExceededError: This request (32306ebe63b71ab0) started at 2010/02/12 20:39:11.984 UTC and was still executing at 2010/02/12 20:39:41.225 UTC. at com.google.appengine.runtime.Request.process-32306ebe63b71ab0(Request.java) And the first line of the log message has the following : 02-12 12:39PM 14.088 javax.servlet.ServletContext log: Initializing Spring root WebApplicationContext Question: Has anyone else seen this behavior? How long does it take for an application instance to become idle? Thanks -- 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@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.
[appengine-java] Re: Google Accounts are killing my application!....
You shouldn't use a frame. It is a security problem, and right of google login code to break out of it. After they make a new account, if not using a frame, I believe it forwards the user back to the page they were trying to go to. Seems to work pretty well. On Feb 18, 8:40 am, John V Denley johnvden...@googlemail.com wrote: I have been trying to leverage google accounts for security for my users, but the way its working is really preventing useability within my application, its very frustrating Ive just spent the best part of the last week trying to get the google account login to work in an frame within my application. Ive run into a number of related issues (see other threads in the GWT group) which I have manage to work through finally. (Thanks to everyone who helped out and provided input) However, I have just tried clicking on the create an account now link which is what will be used by any new user who doesnt currently have a google account, but the account creation window has frame breakout code on it, which takes my users away from my application again, and then after clicking on the email link to confirm thier new account, the user is NOT taken back to my application but are just congratulated for creating a google account. The problem is that the user is then left thinking now what do i do? and several of the people we are talking to have just given up at that point! Has anyone else successfully integrated Google accounts into their applications? Should I create my own logins rather than using Google accounts? I have struggled with getting a consistent answer to the problem of how to send passwords to the server given that GAE doesnt support SSL or HTTPS yet. Everyone seems to say that any client side encoding is pointless, but it seems to me that some form of encoding has to be better than not encoding at all!! -- 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] Editing records in datastore (using JAVA)
Hi Manjoor, if you are learning JDO you should read this article: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html There is a small part on updating the objects. On Thu, Feb 18, 2010 at 5:55 PM, Manjoor manjoora...@gmail.com wrote: I have been searching for sample java program to add, edit and delete records. I found many example showing how to add and delete records but not a single about editing. Do anyone have a sample source link to show how to edit a record ??? -- 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: Editing records in datastore (using JAVA)
The Google App Engine instructions focus on JDO for the datastore implementation. JDO doesn't have the traditional update function. You either modify it and close the persistence manager that returned the object (it knows it changed and updates accordingly) or you just persist the object again with the same ID to overwrite it. See: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Updating_an_Object I believe JPA has an update feature, but if you're new to it I suggest JDO since it has better documentation in GAE. Jake On Feb 18, 10:55 am, Manjoor manjoora...@gmail.com wrote: I have been searching for sample java program to add, edit and delete records. I found many example showing how to add and delete records but not a single about editing. Do anyone have a sample source link to show how to edit a record ??? -- 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] I cann't enhance my class?
That's quite odd. Are there any other exceptions in your error log (workspace/.metadata/.log) that occurred around the same time as the NPE you reported? Keith 2010/2/17 sunzf fige...@hotmail.com hello: when i enhance my class i get the follow error! if i have jsp file in my workspace it can't be work(may be)! now i enhance my class in other worksace it's only my enhance class,it work ok! Message: An internal error occurred during: DataNucleus Enhancer. Exception Stack Trace: java.lang.NullPointerException at com.google.gdt.eclipse.core.ProcessUtilities.cleanupProcess(ProcessUtilities.java:367) at com.google.gdt.eclipse.core.ProcessUtilities.launchProcessAndActivateOnError(ProcessUtilities.java:271) at com.google.appengine.eclipse.core.orm.enhancement.EnhancerJob.runInWorkspace(EnhancerJob.java:82) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Session Data: eclipse.buildId=M20090917-0800 java.version=1.6.0_07 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -- 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!http://www.windowslive.cn/Messenger/ -- 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] cloud computing event: Intelligence from the Cloud
SDForum's next event will talk about google cloud computing and intelligence. AppEngine team member Wesley Chun will present app engine. Andrew Lampitt from Jaspersoft will talk about BI and cloud. I thought some of you might be interested in the topic. Time: 6:30-9pm, March 3rd, 2010. Location: palo alto. See event description below and details on sdforum.org website. http://sdforum.org/index.cfm?fuseaction=Page.viewPagepageId=656parentID=483nodeID=1 *Intelligence from the Cloud* The computing cloud is forming on top of the web. It's going to change the way we develop and use applications. This event, Intelligence from the Cloud will look at the connection between the cloud and web intelligence. The focus will be the new infrastructures available today that are enabling easy creation and consumption of web intelligence and semantics in the cloud. Wesley Chun from Google AppEngine Team will introduce Google App Engine platform, an application development and hosting platform that lets you build deploy web applications on Google's high-traffic infrastructure. App Engine executes apps (written in Python or Java) on servers that use the same technology that powers Google's websites for speed and reliability. There is no need to think about virtual machine images or disk requirements... you just provide the code. This is a high-level talk introducing attendees to Google App Engine, including its components and architecture as well as some of its most popular developer APIs, such as memcache, users (Google accounts), email, URLFetch, XMPP, Blobstore, etc. Time-permitting we'll go through a simple example using Python. The terms “Business Intelligence,” “Semantics,” “Analytics,” and “Cloud” mean a variety of things to different audiences. Andrew Lampitt from Jaspersoft and zAgile will give a sweeping view of these topics and show how they mesh together to solve real-world problems today. Jaspersoft enables easy deployment of business intelligence to the Infrastructure as a Service (IaaS) cloud as well as a semantic layer to shield business users from technical jargon of the underlying physical database. zAgile delivers an ontology-driven context server that enables semantic integration of enterprise information across tools and applications, and it can also act as the comprehensive semantic description of the complete information architecture. A combination of Jaspersoft and zAgile technologies delivers the most leading edge semantically driven business intelligence solution as well as deep, contextual collaboration for business intelligence consumers. Case studies will explore how customers are applying the latest techniques to solve painful problems in an elegant and affordable way, that simply were not possible just a couple years ago. Wondering what's behind the Cloud? Aliens and Intelligence. Hope to see some of you on the event. Best, AJ -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org @web2express on twitter Palo Alto, CA, USA 650-283-4091 *Monitoring social media in real time* -- 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] Google maps geocoder responds with 620 error since last nights server maintenance
I have been running the same geocoding service with my app, truxmap.com for the last several months. for some reason, since the server maintenance last night, nearly all geocodeer requests result in an 620 error. Im using app engine as the host and i havent changed anything in the geocoder class in the last couple months. the problem appears to be ip related since i can get a successful 200 response if i try to connect to the URL from my pc. for the last few months i havent had to use any sleep calls -- ive simply been running through a for loop and sending out the geocoder requests. now, however, even with sleep, i will only get 1 successful response every hour or so (i removed the cron job and am running the servlets myself) and that is quickly followed by a 620 response for the next requests (even with a 3000 ms sleep). what could be causing this sudden change? -- 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] Jpa gae nullpoiterException
Can you post a stack trace? It's not helpful if we don't know what line of code is causing the exception. On Mon, Feb 15, 2010 at 11:53 PM, sujata pagar suja.paga...@gmail.comwrote: Dear all, I am getting NullPointerException in the following code for the transaction tx. Please reply me soon. Code: package com.wissen.enterprisebysush. server; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Transaction; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.persistence.Query; import com.google.gwt.user.client.Window; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.wissen.enterprisebysush.client.GreetingService; import com.wissen.enterprisebysush.server.domainobject.Department; import com.wissen.enterprisebysush.server.domainobject.Employee; /** * The server side implementation of the RPC service. */ @SuppressWarnings(serial) public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { EntityManagerFactory emf = Persistence.createEntityManagerFactory(transactions-optional); public String greetServer(String input) { String serverInfo = getServletContext().getServerInfo(); String userAgent = getThreadLocalRequest().getHeader(User-Agent); return Hello, + input + !brbrI am running + serverInfo + .brbrIt looks like you are using:br + userAgent; } @SuppressWarnings(unchecked) public void addDept(String dept_name, String dept_head) { EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Department d = new Department(); d.setDept_name(dept_name); d.setHead(dept_head); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); ListDepartment deptList = q.getResultList(); for (Department dept : deptList) { System.out.println(Department name: + dept.getDept_name()); } em.persist(d); } finally { em.getTransaction().commit(); em.close(); } } public void addEmp(String emp_name, String emp_sal, String did) { EntityManager em = emf.createEntityManager(); try { String s = did; EntityTransaction transaction = em.getTransaction(); transaction.begin(); System.out.println(value of Department_name is:: + s); System.out.println(Transaction is active and is::+transaction); //Query q = em.createQuery(select dept_id from com.wissen.enterprisebysush.server.domainobject.Department d where d.dept_name = ?1); //q.setParameter(1, s); //System.out.println(Name of Department is:: + s); //Department dept = (Department) q.getSingleResult(); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); Department dept = (Department) q.getResultList().get(0); System.out.println(Name of Department is:: + dept.getDept_name()); //System.out.println(Query executed Successfully!! + q.getSingleResult()); Employee e = new Employee(); e.setEmp_name(Ritesh Navandar); e.setEmp_sal(5000); e.setDepartment(dept); em.persist(e); System.out.println(Transaction: + transaction); transaction.commit(); em.close(); } catch (NullPointerException e) { e.printStackTrace(); System.out.println(Exception:: + e.getCause()); } finally { } } } -- Regards, Sujata... -- 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. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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
[appengine-java] Re: filereading error
Hello Stephan, The leading slash was the problem. Thanks for your help really. cscsaba On Feb 17, 8:32 pm, Stephan Hartmann hartm...@metamesh.de wrote: How do you access your file? I use ServletContext.getResourceAsStream(/csv/countries.csv); If you use java.io.File, AFAIK you have to use a path relative to your webapp folder without leading slash, e.g. new File(csv/countries.csv); regards, Stephan 2010/2/17 cscsaba strongfr...@gmail.com Hello Stephan, I have tried several combination of include path without result. http://imagebin.org/85235 It seems to me something other factor prevent reading this csv. Have you tried to read resource file on GAE ? On Feb 17, 7:22 pm, Stephan Hartmann hartm...@metamesh.de wrote: i think the correct pattern is **/*.csv 2010/2/17 cscsaba strongfr...@gmail.com Hello, What is the right way to reading files on GAE I made this preparation below in appengine-web.xml ... resource-files include path=/**.csv / /resource-files ... but I got this error: exception :access denied (java.io.FilePermission \\csv\countries.csv read) / java.securit nied (java.io.FilePermission \\csv\countries.csv read) Thanks ahead. cscsaba -- 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@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] Google maps geocoder responds with 620 error since last nights server maintenance
Let me check to make sure we're not having problems with geocoding API calls from App Engine APIs. On Thu, Feb 18, 2010 at 2:26 PM, Ivan Pardo trux...@gmail.com wrote: I have been running the same geocoding service with my app, truxmap.com for the last several months. for some reason, since the server maintenance last night, nearly all geocodeer requests result in an 620 error. Im using app engine as the host and i havent changed anything in the geocoder class in the last couple months. the problem appears to be ip related since i can get a successful 200 response if i try to connect to the URL from my pc. for the last few months i havent had to use any sleep calls -- ive simply been running through a for loop and sending out the geocoder requests. now, however, even with sleep, i will only get 1 successful response every hour or so (i removed the cron job and am running the servlets myself) and that is quickly followed by a 620 response for the next requests (even with a 3000 ms sleep). what could be causing this sudden change? -- 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. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- 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: Editing records in datastore (using JAVA)
Thanks for the reply but it does not work. Have a look at this. I have checked it in debugger, It successfuly fetch desired record. but after changing it does not saved. No error :( SMSUser u = pm.getObjectById(SMSUser.class,tu.UserId); u.ContractPerson = req.getParameter(ContractPerson); u.Company = req.getParameter(Company); u.Address = req.getParameter(Address); u.Phone = req.getParameter(Phone); pm.makePersistent(u); On Feb 19, 12:15 am, Jake jbrooko...@cast.org wrote: The Google App Engine instructions focus on JDO for the datastore implementation. JDO doesn't have the traditional update function. You either modify it and close the persistence manager that returned the object (it knows it changed and updates accordingly) or you just persist the object again with the same ID to overwrite it. See:http://code.google.com/appengine/docs/java/datastore/creatinggettinga... I believe JPA has an update feature, but if you're new to it I suggest JDO since it has better documentation in GAE. Jake On Feb 18, 10:55 am, Manjoor manjoora...@gmail.com wrote: I have been searching for sample java program to add,editand delete records. I found many example showing how to add and delete records but not a single about editing. Do anyone have a sample source link to show how toedita record ???- 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-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.