[appengine-java] "appcfg.sh update" suddenly doesn't work
Hi all, I created a new project, tested it in localhost, everything was OK. So I uploaded it: Reading application configuration data... Beginning server interaction for myapp... 0% Creating staging directory 5% Scanning for jsp files. 8% Compiling jsp files. 11% Compiling java files. 20% Scanning files on local disk. 25% Initiating update. 28% Cloning 1 static files. 31% Cloning 56 application files. 40% Uploading 0 files. 90% Deploying new version. 95% Will check again in 1 seconds 98% Will check again in 2 seconds 99% Will check again in 4 seconds 99% Will check again in 8 seconds 99% Closing update: new version is ready to start serving. 99% Uploading index definitions. Details: Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile INFO: Built File: /_default.jsp Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile INFO: Built File: /_pane_footer.jsp Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile INFO: Built File: /_pane_howitworks.jsp Jan 24, 2010 3:15:22 PM org.apache.jasper.JspC processFile INFO: Built File: /index.jsp Note: /var/folders/CA/CAoAFlp6Ex8Ce58TO7dOuU+++TI/-Tmp-/ appcfg129071456909907182.tmp/WEB-INF/classes/org/apache/jsp/ _005fdefault_jsp.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Update completed successfully. Success. Cleaning up temporary files... Man that's fast, considering ~12MB of jars (Spring 3.0, Sitemesh, JSTL, App Engine). But when I opened it in my browser, the page loaded (redirection worked from index.jsp -> /spring/index) but the page was blank. I checked the log, no error. What's going on? Here's the "web" directory structure (for "appcfg.sh update web"): WEB-INF/ classes/ META-INF/applicationContext.xml com/foo/bar/*.class lib/*.jar appengine-web.xml decorators.xml dispatcher-servlet.xml web.xml _default.jsp _pane_footer.jsp _pane_howitworks.jsp news.html index.jsp And the appegine-web.xml: http://appengine.google.com/ns/1.0";> myapp 1-snapshot -- 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] HTTPRequestPoster - problem
Hi all, I'm working in Eclipse 3.5 using the most recent Google plugin 3.5. I am attempting to use HTTPRequestPoster to send post data from an app (with the server running on http://localhost:/) to a Tomcat server running on port 8080 the same machine (MacBook pro).I can successfully send info as a Get (and get a response) with the following code: String urlString = "http://localhost:8080/tester/TestService";; String getParams = "id=mmsend&grp=Dummy&msg=dummy message"; HTTPRequestPoster rp = new HTTPRequestPoster(); String responseToGet = rp.sendGetRequest(urlString, getParams); System.out.println("Response-toGet="+ responseToGet); However, where callingRequest is a fully instantiated Bean with String fields and one ArrayList, the following code doesn't work because it doesn't insert any Post data in the request: StringWriter sw = new StringWriter(); try { HTTPRequestPoster.postObject(callingRequest, urlString, sw); } catch (Exception e) { e.printStackTrace(); } String ResponseToPost = sw.toString(); In the doPost method on the receiving Tomcat, the following code shows 0 bytes: InputStream inStream = request.getInputStream(); int nbytes = inStream.available(); System.out.println("# bytes available = "+nbytes); What is the problem here? Thanks in advance, Ken Bowen -- 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: task cancel, task insert, url fetch delay, servlet context listener
I mean programmatically. Basically I was expecting something like Queue.purgeAllTasks(). It calls contextInitialized but not contextDestroyed. Isnt it a little strange ? I cannot persist something I am doing in memory for example based on context init-destory cycle. So everything has to be done per request (I guess as expected from the appengine.) Mete On Jan 23, 5:06 pm, John Patterson wrote: > have you tried removing the queue.xml entry and updating? > > Yes, apps are reloaded frequently and every time your listener will be > called. > > On 23 Jan 2010, at 21:36, mete wrote: > > > > > > > Hello, > > > It seems there is no task delete/cancel operation for a queue, is > > there any plan for it ? > > > Also, suppose I have some tasks, lets say A,B and C in the queue. I > > want to be not able to insert another A task into this queue . This is > > not the task name does. I can do it in other ways -actually I did-, > > but I wonder if there is an easy way to do it. > > > Other question is it seems to me like url fetch is not realtime. Can > > it be the case ? What I do is, I disable access to some URL, but the > > effect of this appears some seconds or tries later. > > > Two last question is, it seems like > > ServletContextListener.contextDestroyed is not called, is it right ? > > Also, I experience some contextInitialized calls for same application > > (lets say 10 per day). Why is it ? Is it because the application is > > transferred into another appserver and initialized there ? > > > Thanks. > > > Mete > > > -- > > You received this message because you are subscribed to the Google > > Groups "Google App Engine for Java" group. > > To post to this group, send email to google-appengine-java@googlegroups.com > > . > > To unsubscribe from this group, send email to > > google-appengine-java+unsubscr...@googlegroups.com > > . > > For more options, visit this group > > athttp://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: Question about inbound mail.
I would like to get the joy directly from Google Engineers (its a weird answer, not covered in the docs but directly related to the GAE setup), but you are right. Its not the first time the Google Support sucks big time... I'll try elsewhere. On Jan 23, 1:44 pm, Richard wrote: > No idea, but if you're not getting any joy, maybe try atwww.stackoverflow.com > - there should be a bit more motivation to help because it's points- > based. > > Regards, > Richard > > On Jan 14, 9:06 pm, Thanasis wrote: > > > > > Anyone, pls? > > > On Jan 14, 9:18 am, Thanasis wrote: > > > > Hi all, > > > > I guess my question is directed to Google Engineers - unless someone > > > has previous experience. > > > > Hypothetical scenario: > > > > My application gets an inbound email. GAE starts the specified mail- > > > handling servlet, but this is affected by the known "cold-start" delay > > > and timeouts. > > > > The question is: what happens with the email? > > > > Does GAE make another attempt to push the email back to the > > > application - possibly by recognizing that the exception thrown is not > > > application specific but GAE specific? > > > > Or is the message lost? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine cold starts and overly aggressive cycling
Ikai, Me too I can report an improved response time and no datastote timeout exceptions the past couple of days. I have no measurements so far, but the improvement is noticeable. I'll certainly keep watching and let you know of any relevant issues. Thanks! Jorge Gonzalez On Jan 22, 9:10 pm, James Cooper wrote: > Ikai, > > Great news. I can report that I'm seeing FAR fewer cold starts > today. So thank you! > > Would still love to see this implemented: > > http://code.google.com/p/googleappengine/issues/detail?id=2456 > > cheers > > -- James -- 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] task cancel, task insert, url fetch delay, servlet context listener
have you tried removing the queue.xml entry and updating? Yes, apps are reloaded frequently and every time your listener will be called. On 23 Jan 2010, at 21:36, mete wrote: Hello, It seems there is no task delete/cancel operation for a queue, is there any plan for it ? Also, suppose I have some tasks, lets say A,B and C in the queue. I want to be not able to insert another A task into this queue . This is not the task name does. I can do it in other ways -actually I did-, but I wonder if there is an easy way to do it. Other question is it seems to me like url fetch is not realtime. Can it be the case ? What I do is, I disable access to some URL, but the effect of this appears some seconds or tries later. Two last question is, it seems like ServletContextListener.contextDestroyed is not called, is it right ? Also, I experience some contextInitialized calls for same application (lets say 10 per day). Why is it ? Is it because the application is transferred into another appserver and initialized there ? Thanks. Mete -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] task cancel, task insert, url fetch delay, servlet context listener
Hello, It seems there is no task delete/cancel operation for a queue, is there any plan for it ? Also, suppose I have some tasks, lets say A,B and C in the queue. I want to be not able to insert another A task into this queue . This is not the task name does. I can do it in other ways -actually I did-, but I wonder if there is an easy way to do it. Other question is it seems to me like url fetch is not realtime. Can it be the case ? What I do is, I disable access to some URL, but the effect of this appears some seconds or tries later. Two last question is, it seems like ServletContextListener.contextDestroyed is not called, is it right ? Also, I experience some contextInitialized calls for same application (lets say 10 per day). Why is it ? Is it because the application is transferred into another appserver and initialized there ? Thanks. Mete -- 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: Question about inbound mail.
No idea, but if you're not getting any joy, maybe try at www.stackoverflow.com - there should be a bit more motivation to help because it's points- based. Regards, Richard On Jan 14, 9:06 pm, Thanasis wrote: > Anyone, pls? > > On Jan 14, 9:18 am, Thanasis wrote: > > > Hi all, > > > I guess my question is directed to Google Engineers - unless someone > > has previous experience. > > > Hypothetical scenario: > > > My application gets an inbound email. GAE starts the specified mail- > > handling servlet, but this is affected by the known "cold-start" delay > > and timeouts. > > > The question is: what happens with the email? > > > Does GAE make another attempt to push the email back to the > > application - possibly by recognizing that the exception thrown is not > > application specific but GAE specific? > > > Or is the message lost? -- 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: serious java loader problem: "Hello world" killed for latency
Could either of you put up an update when you figure out what's causing it? Will watch the thread. Regards, Richard -- 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] Async Datastore API
Hi, I know that async url fetch is expected in the next release but I was wondering if async datastore operations were expected any time soon or on the roadmap at all? Thanks, John -- 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: generating sequential ids
What you could do is something like this: public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT) private Long id; @Persistent private String department; @Persistent private String firstName; @Persistent private String lastName; } start with id 1, and goes on untill they have reached 2^32 - 1. Should do the trick. On Jan 23, 7:25 am, aswath satrasala wrote: > Hi, > I have an Employee class > public class Employee { > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") > private String id; > > @Persistent private String department; > @Persistent private String firstName; > @Persistent private String lastName; > > } > > Now, I want to provide a EmployeeID to the employee. I will not be able to > provide gae.encoded-pk value as this is long and not meaningful. > Further, I want to provide the EmployeeID with department as the prefix. > How can I generate the EmployeeID, similar to sequence in the relational > world. > > -Aswath -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.