Re: [appengine-java] Re: Prerelease 1.3.4 SDK ready for download
maybe google app engine shall cancel the 30seconds limit, most of backend process need more than 30seconds On Fri, May 14, 2010 at 2:17 AM, atomi at...@verizon.net wrote: Are there API reference docs for the OpenID support? It seems as though a new application would need to be created for this to work - am I correct in assuming this? As of now I don't see that option, which makes it a little difficult to test or play with. What is the ETA/schedule on the feature complete 1.3.4 release? Thanks. On Thu, May 13, 2010 at 10:48 AM, Ikai L (Google) ika...@google.comwrote: ... a link to the download would be helpful: http://code.google.com/p/googleappengine/downloads/list On Thu, May 13, 2010 at 7:45 PM, Ikai L (Google) ika...@google.comwrote: Greetings, Java developers! Prerelease SDK 1.3.4 is ready for download. As usual, please help us test this release and post feedback to this thread. The release notes are below: Version 1.3.4 = - Client side bulkloader available with the Python SDK that has a new configuration syntax and wizard for easier import/export with the datastore. Can be used by enabling remote_api in your Java application - Applications can now be configured to authenticate with OpenID by selecting the OpenID option when creating your application in the admin console http://code.google.com/p/googleappengine/issues/detail?id=248 http://code.google.com/p/googleappengine/issues/detail?id=56 - New API to allow App Engine apps to act as OAuth service providers http://code.google.com/p/googleappengine/issues/detail?id=919 - The version update check in the Java SDK now uses https - Allow full access to javax.el.* http://code.google.com/p/googleappengine/issues/detail?id=3157 - Increased the timeout during deployment to 15 minutes - Fixed an issue with JPA where an illegal cast exception was thrown during the fetch of integer fields - MemcacheService.setNamespace() is deprecated in favor of MemcacheServiceFactory.getMemcacheManager(namespace) - Support in the SDK for Java 1.5 is being deprecated. These warnings now appear when starting the SDK -- Ikai Lan Developer Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan Google App Engine links: Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- Ikai Lan Developer Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan Google App Engine links: Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- 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. -- hapeblog (Blog on GAE) http://www.hapeblog.com -- 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] Deploying Google App Engine application with my own domain
a brief introduction about set another domain for you GAE application here: http://www.hapeblog.com/blog/12002 On Tue, May 11, 2010 at 8:07 AM, Nick Johnson (Google) nick.john...@google.com wrote: Hi Srikanth, You need an Apps account in order to use a domain with your App Engine app. The Standard edtiion of Google apps is available for free, however: http://www.google.com/apps/intl/en/group/index.html -Nick Johnson On Mon, May 10, 2010 at 11:29 AM, Srikanth Gade srikanth.g...@gmail.comwrote: Hi, I have only bought a domain name. I want to deploy App Engine application with that domain. Do i need to buy with Google Apps account to deploy applications to my domain? Thanks Regards, Srikanth -- 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. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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. -- hapeblog (Blog on GAE) http://www.hapeblog.com -- 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] Domain Setup
one app application, one root domain On Sun, May 9, 2010 at 5:37 PM, Ravi Sharma ping2r...@gmail.com wrote: Hi, I have a application running on Google app engine and lets say i am accessing it through www.mysite.com (Mysite.com is registered on google apps) Now i have created another application which i want to access through newapp.mysite.com (through sub domain of above application). Is it possible? If yes then how. I tried to do following step but no success. mysite.com is already added to application-1(my main application to my domain) So now i tried to add newapp.mysite.com to application-2 under application setting of application-2, but it says Sorry, you've reached a login page for a domain that isn't using Google Apps. Please check the web address and try again. (although mysite.com do use google apps) Any idea? Ravi. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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: The website has a programming error.
read you log from admin console page 2010/5/9 Jaroslav Záruba jaroslav.zar...@gmail.com I would try to minimize the JSP-code to the point where it can be shown to other people to inspect it. :) And is this a message that is shown in your browser or is it what is in your Logs? On May 8, 3:25 pm, Jitu Surve jitusu...@gmail.com wrote: I have written simple web application using GAE that contains .jsp file. In my local developement environment .jsp fine works fine, but when I deploy it on cloud, and try to access it I get the error: The website cannot display the page Most likely causes: •The website is under maintenance. •The website has a programming error. Any suggestions? Thanks, Jitu -- 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 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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] Session and AppEngine
hi, are u using java ? if yes, the object you push into session must implements java.io.Serializable . you can follow this blog for more info: http://www.hapeblog.com/blog.shtml?id=7 On Wed, May 5, 2010 at 10:54 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: Hummm I got a weird issue I added to my appengine-web.xml this line : sessions-enabledtrue/sessions-enabled But no JSESSIONID cookie is created. Anyway Idea why ? Christian -- 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. -- dream or truth -- 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] What is the package for Cache CacheManager
encache.jar On Sat, Apr 24, 2010 at 1:07 PM, Phuong Nguyen phuongn...@gmail.com wrote: From the document, it said that the interfaces classes (Cache, CacheManager) should be in package net.sf.jsr107. However, I couldn't find these interfaces and classes in the GAE 1.3.2 SDK, but rather, I found them in javax.cache. Is it the document obsolete or...? -- 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. -- dream or truth -- 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] Domain Name Setup
http://hapeblog.appspot.com/blog.shtml?id=12002 you just need to forward fakedomain.com to www.fakedomain.com On Thu, Apr 15, 2010 at 4:21 AM, fletcher fle...@fletchowns.net wrote: Hello - I want to use http://fakedomain.com instead of http://fakeapp.appspot.com. I went through the domain setup in the app engine dashboard and added www.fakedomain.com. I also added the www CNAME record to point to ghs.google.com in my registrars (GoDaddy) administrator panel. Now I can access my app through www.fakedomain.com. I tried to do the same for *.fakedomain.com but apparently GoDaddy doesn't allow wildcards for CNAME records? Anyways, not really Google's problem, I just have http://fakedomain.com forwarded to http://www.fakedomain.com. First question: Is that how I am supposed to set it up? Second question: My app should GET and POST to www.fakedomain.com, correct? Is there a lot of latency introduced because of this? I'm not sure if this is a good test, but a ping www.fakedomain.com takes 150ms and a ping to fakedomain.appspot.com takes 10ms. -- 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. -- dream or truth -- 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] text Search
hi, you can try compass,a simple summary here. http://www.hapeblog.com/blog.shtml?id=7002 On Mon, Apr 5, 2010 at 6:26 PM, RAVENDRA CHAUDHARY chaudharyraven...@gmail.com wrote: no find givin text search this code: please send code who is find text search code. this code search find full name: PersistenceManager pm = PMF.get().getPersistenceManager(); Query query = pm.newQuery(Candidate.class); query.setFilter(Name == pName); query.declareParameters(String pName); ListCandidate list = (ListCandidate)pm.newQuery(query).execute(name); return (ListCandidate) pm.detachCopyAll(list); -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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. -- dream or truth -- 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: Best way to perform search on DataStore - Design Question
haha, up to now,i use compass okay! On Tue, Mar 16, 2010 at 8:53 AM, objectuser kevin.k.le...@gmail.com wrote: I think there are a lot of posts here that conclude Compass is not viable. Has that changed? On Mar 15, 12:23 am, yjun hu itswa...@gmail.com wrote: you can try compass to make you project searchable. a simple demo herehttp://hapeblog.appspot.com/blog.shtml?id=7002 On Sun, Mar 14, 2010 at 8:36 PM, John Patterson jdpatter...@gmail.com wrote: Interesting to see the existence protected Query.setFullTextSearch(String) method when you open the Query class in Eclipse. I suppose it won't be too far away. I can't wait to see if they just give us a take-it-or-leave-it solution or also the tools required to roll your own. On 14 Mar 2010, at 15:05, Robert Lancer wrote: Haha, like many of us you probably thought that GOOGLE app engine would have decent text search capabilities. It looks like your doing all you can do by creating the inverse table, you may just want to star http://code.google.com/p/googleappengine/issues/detail?id=217 On Mar 13, 8:59 pm, niraj njun...@gmail.com wrote: My case: I am building a website that has several searchable fields from various entities (example Artist names from artist entity , Album names from album entity). To have an efficient search capability I have defined another Entity - SearchType which carries the Searchable string and the Foreign key to the Entity. Instead of querying all the Entities one my one - I query SearchType. My preliminary tests indicate that the query performance on SearchType is not great (the names are indexed) . I need google suggest like quick results in a drop down. What is the best way to design this. I have considered Memcache , but I dont think I can run queries on Memcache . i.e I am running a startsWith() query on JDO today. Any best practices . -- 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 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. -- dream or truth -- 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. -- dream or truth -- 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 save binary data in JDO
upload image into datastore,and display on webpage here http://www.hapeblog.com/blog.shtml?id=2002 2010/3/15 rissen risse...@gmail.com In my app , I upload image file by Apache Commons FileUpload and save it in datastore, then get the binary data from the datastore and display the image in serlvet. the detail : http://mimaiji.appspot.com/article?method=viewid=9001 On 3月2日, 下午11时37分, Valentino Hankypants f.hirs...@gmx.at wrote: hi jake, thanks for your replies. in my case i have jsp-page with a form. the user should have the possibility to select a file. i used the input type=file name=test directive from html. after the user selected a file, he clicks a button. by clicking this button the binary data of the selected file should be read and saved in a blob in the GAE storage. afterwards i'll give the user the possibility to open the uploaded file by clicking a link... therefore, should i use this gaevfs or not? up to now my major problem is, how can i get the binary data from the form in my servlet class where i handle the form actions? i got all other informations by HttpServletRequest.getParameter(test); greatz and hoping for some help ;-) flo On 2 Mrz., 15:24, Jake jbrooko...@cast.org wrote: You're not limited to 1MB - you're just limited to using 1MB entities. The GAEVFS link I sent you implies that it's files can span multiple entities. As Mrityunjay stated, though, large storage requires payment. See the quotas for details: http://code.google.com/appengine/docs/quotas.html Jake On Mar 1, 12:43 pm, Valentino Hankypants f.hirs...@gmx.at wrote: so i only can upload binary data up to 1 MB? any possibility to upload binary data with GBs? greatz On 1 Mrz., 18:36, Jake jbrooko...@cast.org wrote: Hey, Saving binary data to the datastore isn't too difficult - you can just use a Blob type and ensure that you don't break the 1MB capacity of a single entity. You can see my class declaration below. The hard part is converting a file upload to a byte[] and then from a byte[] back into what you would consider a downloadable file. That depends, somewhat, on your implementation. For example, I use the Wicket architecture and all I need to do is FileUpload f = fileUploadField.getFileUpload(); BinaryFileData b = new BinaryFileData(f.getBytes()); pm.makePersistent(b); I presume you are not using Wicket, but some other framework. You'll need to look into how it handles file uploads. You may also find this interesting: http://code.google.com/p/gaevfs/ I haven't used it, but it skips the whole byte[] thing entirely. Jake @PersistenceCapable(identityType = IdentityType.APPLICATION) public class BinaryFileData implements Serializable { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String name; @Persistent private String mimeType; @Persistent(defaultFetchGroup=true) private Blob data; public BinaryFileData(byte[] bytes) { this.data = new Blob(bytes); } public byte[] getData() { return data.getBytes(); } public void setData(byte[] d) { this.data = new Blob(d); } } On Mar 1, 11:25 am, Valentino Hankypants f.hirs...@gmx.at wrote: hello together, i started working with the app engine some days ago, and now i want to save some binary data (pdf, etc.) from my app (eg by clicking a button) in the storage system. anybody who can help me doing this? (tutorials, etc.) greatz flo -- 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. -- dream or truth -- 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 upload pics in appengine java
a simple demo here: http://hapeblog.appspot.com/blog.shtml?id=2002 On Mon, Mar 15, 2010 at 11:17 AM, Diana Cruise diana.l.cru...@gmail.comwrote: Also this guy Vince has a package that not only helps with uploads but also then allowing your app to generate pages that use the photos including delta checks - really neat stuff! See GAEVFS mentioned in this thread. Please post your results so the rest of us can benefit from your experience. http://groups.google.com/group/google-appengine-java/browse_thread/thread/a4ee0a7c54453586/b1f2984b43c920a1?hl=en#b1f2984b43c920a1 On Mar 14, 12:51 am, seleronm seler...@gmail.com wrote: Hi, I think that the following links are useful. http://stackoverflow.com/questions/1513603/ Please try. thanks. AFAIK almost any file can be apart of the docs that you upload (images, css, html, js, jsp, ico). I haven't had any trouble uploading images. Are you talking about accepting images from an input form? In that case you can store them as a blob type in the datastore. Hope this helps On Sun, Mar 14, 2010 at 12:12 AM, nag nagarjuna...@gmail.com wrote: Hi I am trying to build online reg form can u help me how to upload image files to app engine. First: is there any way to upload images in app engine? thanks Nag -- 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. -- -Pav -- 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 athttp:// groups.google.com/group/google- appengine-java?hl=en. ---html-part included links--- mailto:nagarjuna...@gmail.com mailto:google-appengine-java@googlegroups.com mailto:google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com 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. -- dream or truth -- 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: Best way to perform search on DataStore - Design Question
you can try compass to make you project searchable. a simple demo here http://hapeblog.appspot.com/blog.shtml?id=7002 On Sun, Mar 14, 2010 at 8:36 PM, John Patterson jdpatter...@gmail.comwrote: Interesting to see the existence protected Query.setFullTextSearch(String) method when you open the Query class in Eclipse. I suppose it won't be too far away. I can't wait to see if they just give us a take-it-or-leave-it solution or also the tools required to roll your own. On 14 Mar 2010, at 15:05, Robert Lancer wrote: Haha, like many of us you probably thought that GOOGLE app engine would have decent text search capabilities. It looks like your doing all you can do by creating the inverse table, you may just want to star http://code.google.com/p/googleappengine/issues/detail?id=217 On Mar 13, 8:59 pm, niraj njun...@gmail.com wrote: My case: I am building a website that has several searchable fields from various entities (example Artist names from artist entity , Album names from album entity). To have an efficient search capability I have defined another Entity - SearchType which carries the Searchable string and the Foreign key to the Entity. Instead of querying all the Entities one my one - I query SearchType. My preliminary tests indicate that the query performance on SearchType is not great (the names are indexed) . I need google suggest like quick results in a drop down. What is the best way to design this. I have considered Memcache , but I dont think I can run queries on Memcache . i.e I am running a startsWith() query on JDO today. Any best practices . -- 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. -- dream or truth -- 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] searchable datastore
you can try to use compass for searching. and a simple demo here: http://hapeblog.appspot.com/blog.shtml?id=7002 On Sun, Mar 7, 2010 at 2:13 PM, Gal Dolber gal.dol...@gmail.com wrote: I am using a ListString tags property on my searchable models, I fill it when I put the entities with all the matches I will like to have, and I query them like query.filter(tags, SomeString); Regards 2010/3/6 Prashant Gupta nextprash...@gmail.com Hi, I want to make my app's data searchable. is there any library or tool available which can make my task easier? 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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: Enable billing to avoid HardDeadlineExceededError?
Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? No, the same problem is also in spring2.5 there is no better way to avoid that, you can try to run cron job to make your application reactive . Hitting a url every 1 miute, i did this ,that's all i did. On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote: This problem normally happens In the case of loading requests, though, the execution time is artificially longer due to the extra application initialization required.. http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concerned_About_High_CPU_Warnings I am using Spring MVC version 3.0.0 RC1. I can't really do much to reduce the loading request or application/framework initialization time. And, since this is a hard limit, I think I can't do anything other than switching to other framework or plain servlet. However, I also see a lot of posts by other on loading request issue even in plain servlet. http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/6ef609f7da203ab3?lnk=gstq=overly#6ef609f7da203ab3 Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote: No, the 30 second limit is a hard limit. If a request can't finish in 30 seconds (or somewhat earlier), you get an exception. You then have an undetermined amount of time before the app engine kills your request and returns a 500 status code. You wouldn't happen to be using Spring, would you? On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote: Hi, I am using Spring MVC. The application being cycled out overly aggressively (sometimes less than 1 min) http://groups.google.com/group/google-appengine-java/browse_thread/th. .. I register an HttpSessionListener to listen for loading request which takes more than 20 seconds. Due to the long loading request/cold start time, some requests hit the following HardDeadlineExceededError exception. Log seen in my Admin Console: com.google.apphosting.runtime.HardDeadlineExceededError: This request (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was still executing at 2010/03/03 16:41:37.260 UTC. This request used a high amount of CPU, and was roughly 1.5 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be temporarily disabled. I am currently on free quota. If I enable billing and set to higher CPU quota, will I be able to avoid the HardDeadlineExceededError problem? -- 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. -- dream or truth -- 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: Enable billing to avoid HardDeadlineExceededError?
maybe you'd better run hitting an action class, not a simple jsp page. On Thu, Mar 4, 2010 at 11:01 AM, Wong lhw...@gmail.com wrote: I used to run cron to make request every 1 min to a jsp which only write out a line of text. I uses a HttpSessionListener to listen for any loading request/startup. Even ping every 1 min the loading request still happens. I still got 500 error due to the request CPU is is over the limit. On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote: Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? No, the same problem is also in spring2.5 there is no better way to avoid that, you can try to run cron job to make your application reactive . Hitting a url every 1 miute, i did this ,that's all i did. On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote: This problem normally happens In the case of loading requests, though, the execution time is artificially longer due to the extra application initialization required.. http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern. .. I am using Spring MVC version 3.0.0 RC1. I can't really do much to reduce the loading request or application/framework initialization time. And, since this is a hard limit, I think I can't do anything other than switching to other framework or plain servlet. However, I also see a lot of posts by other on loading request issue even in plain servlet. http://groups.google.com/group/google-appengine-java/browse_thread/th. .. Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote: No, the 30 second limit is a hard limit. If a request can't finish in 30 seconds (or somewhat earlier), you get an exception. You then have an undetermined amount of time before the app engine kills your request and returns a 500 status code. You wouldn't happen to be using Spring, would you? On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote: Hi, I am using Spring MVC. The application being cycled out overly aggressively (sometimes less than 1 min) http://groups.google.com/group/google-appengine-java/browse_thread/th. .. I register an HttpSessionListener to listen for loading request which takes more than 20 seconds. Due to the long loading request/cold start time, some requests hit the following HardDeadlineExceededError exception. Log seen in my Admin Console: com.google.apphosting.runtime.HardDeadlineExceededError: This request (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was still executing at 2010/03/03 16:41:37.260 UTC. This request used a high amount of CPU, and was roughly 1.5 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be temporarily disabled. I am currently on free quota. If I enable billing and set to higher CPU quota, will I be able to avoid the HardDeadlineExceededError problem? -- 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. -- dream or truth -- 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. -- dream or truth -- 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: Enable billing to avoid HardDeadlineExceededError?
Sorry, i'm using spring+struts , action class means controller in spring mvc. run cron job to make reactive, it's a temporary way, just make this problem always be happen On Thu, Mar 4, 2010 at 11:51 AM, Wong lhw...@gmail.com wrote: I am not sure what do you mean by action class. Could you please give me a pointer? I made change to ping a Controller class every 1 min. Same problem persists. On Mar 4, 11:06 am, yjun hu itswa...@gmail.com wrote: maybe you'd better run hitting an action class, not a simple jsp page. On Thu, Mar 4, 2010 at 11:01 AM, Wong lhw...@gmail.com wrote: I used to run cron to make request every 1 min to a jsp which only write out a line of text. I uses a HttpSessionListener to listen for any loading request/startup. Even ping every 1 min the loading request still happens. I still got 500 error due to the request CPU is is over the limit. On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote: Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? No, the same problem is also in spring2.5 there is no better way to avoid that, you can try to run cron job to make your application reactive . Hitting a url every 1 miute, i did this ,that's all i did. On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote: This problem normally happens In the case of loading requests, though, the execution time is artificially longer due to the extra application initialization required.. http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern. .. I am using Spring MVC version 3.0.0 RC1. I can't really do much to reduce the loading request or application/framework initialization time. And, since this is a hard limit, I think I can't do anything other than switching to other framework or plain servlet. However, I also see a lot of posts by other on loading request issue even in plain servlet. http://groups.google.com/group/google-appengine-java/browse_thread/th. .. Can anyone confirm that Spring MVC version 2.5.6 is working fine on GAE? On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote: No, the 30 second limit is a hard limit. If a request can't finish in 30 seconds (or somewhat earlier), you get an exception. You then have an undetermined amount of time before the app engine kills your request and returns a 500 status code. You wouldn't happen to be using Spring, would you? On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote: Hi, I am using Spring MVC. The application being cycled out overly aggressively (sometimes less than 1 min) http://groups.google.com/group/google-appengine-java/browse_thread/th. .. I register an HttpSessionListener to listen for loading request which takes more than 20 seconds. Due to the long loading request/cold start time, some requests hit the following HardDeadlineExceededError exception. Log seen in my Admin Console: com.google.apphosting.runtime.HardDeadlineExceededError: This request (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was still executing at 2010/03/03 16:41:37.260 UTC. This request used a high amount of CPU, and was roughly 1.5 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be temporarily disabled. I am currently on free quota. If I enable billing and set to higher CPU quota, will I be able to avoid the HardDeadlineExceededError problem? -- 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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
Re: [appengine-java] Programmatically schedule cron jobs
By visitting one url in cron.xml, and i think you can do anything for this url. On Thu, Mar 4, 2010 at 11:04 AM, Thomas Oldervoll thomas.olderv...@gmail.com wrote: Is there a way to programmatically schedule new cron jobs, preferably using the Java API? I would like to offer my users the chance to schedule actions to happen at a later time, but from reading http://code.google.com/appengine/docs/java/config/cron.html it sounds like the only way to add a new cron job is to edit cron.xml. Is there a way to do this in code? Thomas -- 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. -- dream or truth -- 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: Spring MVC - File upload problem
hi, i got a demo here. http://hapeblog.appspot.com/blog.shtml?id=2002 On Tue, Mar 2, 2010 at 4:36 AM, Sebastian Cartier sebi.cart...@gmail.comwrote: Hi my first solution i wrote isn't working any more. I had to add beans = { multipartResolver(is.hax.spring.web.multipart.StreamingMultipartResolver) } to /grails-app/conf/spring/resources.xml Now it works again @Markus: you can not use byte-arrays with google app engine. You have to use blobs! See my previous solution. I put the library in myApplication/lib On 2 Feb., 03:08, Markus Paaso markus.pa...@gmail.com wrote: Hi I tried it with Grails 1.2.0 and app-engine plugin 0.8.8 but got just an another error: java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.fileupload.disk.DiskFileItem at org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem (DiskFileItemFactory.java:196) at org.apache.commons.fileupload.FileUploadBase.parseRequest (FileUploadBase.java:358) at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (ServletFileUpload.java:126) at org.springframework.web.multipart.commons.CommonsMultipartResolver.parseRequest (CommonsMultipartResolver.java:155) my controller: def imageInstance = new Image(imageParams) def f = request.getFile('imageData') imageInstance.imageData = f.getBytes() Image.withTransaction { if(imageInstance.save(flush:true)) { flash.message = Image ${imageInstance.id} created redirect(action:show,id:imageInstance.id) } else { render(view:'create',model:[imageInstance:imageInstance]) } } and domain-class: import javax.persistence.*; // import com.google.appengine.api.datastore.Key; @Entity class Image implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) Long id byte[] imageData static constraints = { id visible:false } } It seems like the multipart resolver is not replaced with the new one. I placed the jar file into myApplication/lib and GRAILS_HOME/lib directories. Maybe I didn't place the jar to the right directory? Would you like to tell more about how you got it to work? Markus On 2 helmi, 00:00, Sebastian Cartier sebi.cart...@gmail.com wrote: this works also for grails! Add the library to your lib directory and add bean id=multipartResolver class=is.hax.spring.web.multipart.StreamingMultipartResolver /bean to your applicationContext.xml For saving the image in a google blob i used the following functions: @Persistent Blob imageBlob byte [] getImage(){ if(imageBlob){ imageBlob.getBytes() }else{ null; } } void setImage(byte [] imageBytes){ imageBlob = new Blob(imageBytes) } -- 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. -- dream or truth -- 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
i got the same problem too, there is no better way to resolve it, i just try to hitting a url with cron job. On Tue, Mar 2, 2010 at 3:50 AM, luijar luis.j.aten...@gmail.com wrote: Thanks for the advice, I'll try that. On Mar 1, 2:31 pm, Rusty Wright rwright.li...@gmail.com wrote: Try using the old way with xml configuration for wiring your beans together. The word on the street is that Spring's component scanning takes a lot of time. luijar wrote: Nope, I am still seeing it. It's quite frustrating. I even tried to reduce Spring init time by removing schema validation from the application context init. But, that does not seem to work. I am using Spring annotations and component scanning to autowire my beans, I wonder if using plain XML configuration will make autowiring faster. On Feb 23, 9:14 pm, charming30 charmin...@gmail.com wrote: Has the above mentioned offline precompilatio in 1.3.1 been able to solve your issue, I plan to use Spring on Java for my Business App which is complex and could be based on SOA. Kindly let me know if your issue was resolved or reduced by using the above fix. On Feb 20, 12:05 am, luijar luis.j.aten...@gmail.com wrote: I believe my development environment was on 1.3.0. That might be something to look at, although it seems that probably it's a very small overhead, do you have any metrics that would give some evidence as to how much overhead is offline precompilation adding? Thanks On Feb 18, 2:04 pm, Don Schwarz schwa...@google.com wrote: 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 areSpringenabled 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 nonSpringroute. 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: InitializingSpringroot 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 forJava 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.comgoogle-appengine-java%2B unsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@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
Re: [appengine-java] Do I still need to use session if I use google user account to authenticate?
Perhaps you'd better use your own userssion with one pojo class On Mon, Mar 1, 2010 at 9:49 AM, opok vir...@gmail.com wrote: I currently use Google Account to authenticate and get the current user like this: UserService userAction = UserServiceFactory.getUserService(); User user = userAction.getCurrentUser(); I notice that the user service does not need HttpServletRequest to get the current context, is that reliable? What about my customer use another google id to login in another page of my app? Would the current user change when the customer returned to the first page to make some other requests ? In the past, I always use Session to storage user information to id current user, it looks like Google's user service can provide the same functionality, so I can abandon the session for that kind of usage, is that correct? -- 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. -- dream or truth -- 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: EQUAL operator on string properties
I think you could use a int column replace On Sat, Feb 27, 2010 at 6:32 AM, Andriy Andrunevchyn diyko...@gmail.comwrote: I have the same problem How have You solved it? On 24 Лют, 00:36, keyurva keyu...@gmail.com wrote: This is where embarrassment becomes me. This issue was a false alarm. A case of corrupt data. Sorry for the trouble. == Keyur On Feb 23, 1:37 pm, keyurva keyu...@gmail.com wrote: This has to be the first query that works but somehow for me a simple EQUAL operator on a string propertydoesnotyield results. I'm using the low level datastore api. Now it could be that this is only a local datastore issue and once deployed on app engine itdoeswork. But I'd like someone to confirm this for me. To give an example for my issue - a query such as: SEX = MALEdoes notworkbut SEX = MALE AND SEX MALEadoes. (This first one of course translates to a query with one EQUAL filter while the second one translates to a query with 2 filters - GREATER_THAN_OR_EQUAL and LESS_THAN). Thanks, Keyur -- 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. -- dream or truth -- 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: Compass on Google App Engine
i have a blog with compass on GAE, and i implement the searchable function here.. http://hapeblog.appspot.com/ On Thu, Feb 18, 2010 at 2:11 AM, a.maza andr.m...@gmail.com wrote: did you experience the problems in production environment or already in the development environment? May the indexing problem be avoided when using task queues? what do you think? On 17 Feb., 18:30, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: On Wed, Feb 17, 2010 at 3:42 PM, John Patterson jdpatter...@gmail.com wrote: I thought I read somewhere on this list that compass and lucene cannot perform well on the datastore due to the number of index segments that need to be read for every query? i could not get it up and running one month ago with a large datset. i know the compass people are working hard to resolve issues with the gae, but i doubt (technically) that lucene is able to run properly on the app engine datastore (please correct me). it might, however, run well with a smaller dataset (100megs, offline indexing, and/or using an index file in the war folder)... ra! On 17 Feb 2010, at 21:23, a.maza wrote: checkout the latest source from compass. The last commit removes the Referencable interface. On 17 Feb., 14:36, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: On Tue, Feb 16, 2010 at 8:15 AM, yonny yon...@googlemail.com wrote: Hello Folks, I think deploying a compass app on gae is not possible because the core compass interface extends javax.naming.Referenceable which is not on google's whitelist.I encoutered a similar problem when I call buildCompass() It throws a NoClassDefFoundError on org.compass.core.impl.DefaultCompass Any thoughts?? anyone? follow this one:http://www.kimchy.org/searchable-google-appengine-with-compass/ ra -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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 athttp://groups.google.com/group/google-appengine-java?hl=en.- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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.- Zitierten Text ausblenden - - Zitierten Text anzeigen - -- 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. -- dream or truth -- 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] Problem whit upload form multipart
maybe this will be helpful http://hapeblog.appspot.com/blog.shtml?id=2002 On Wed, Feb 17, 2010 at 1:01 PM, John Patterson jdpatter...@gmail.comwrote: Do you have a different version of the jar in your lib directory to the one on your build path? On 17 Feb 2010, at 09:11, NIko Judo wrote: Hola he probado el codigo siguiente para recibir un formulario multipart en mi aplicacion : Test folowing code import org.apache.commons.fileupload.FileItemStream; import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.InputStream; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { private static final Logger log = Logger.getLogger(FileUpload.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { FileItemStream item = iterator.next(); InputStream stream = item.openStream(); if (item.isFormField()) { log.warning(Got a form field: + item.getFieldName()); } else { log.warning(Got an uploaded file: + item.getFieldName() + , name = + item.getName()); // You now have the filename (item.getName() and the // contents (which you can read from stream). Here we just // print them back out to the servlet output stream, but you // will probably want to do something more interesting (for // example, wrap them in a Blob and commit them to the // datastore). int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) != -1) { res.getOutputStream().write(buffer, 0, len); } } } } catch (Exception ex) { throw new ServletException(ex); } } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } el caso es que simpre me da un error cuando envio el formulario con image folowing error : Error for /FileUpload java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.getItemIterator(Ljavax/ servlet/http/HttpServletRequest;)Lorg/apache/commons/fileupload/ FileItemIterator; at com.ubicacion.servlet.FileUpload.doPost(FileUpload.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) 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.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)
Re: [appengine-java] Workaround for like keyword in JDOQL
you can try compass to search On Fri, Feb 12, 2010 at 7:03 AM, John Patterson jdpatter...@gmail.comwrote: The usual approach to complex queries in GAE is to process your data before you need to query it. So in this case for each person create an index entity which simply contains a list of partial names e.g. Pliyush, iyush, yush, ush Then do a keys-only range query for the name part e.g. iyu (look into how to do range queries). Then take the result key's parent and look up the Person entity. On 11 Feb 2010, at 18:26, Piyush wrote: Hi All, I am developing a resource allocation application in GAE with Java. Since there is no like keyword in JDOQL, I am unable to do search in database based on a keyword. For example, I want to list all the employees who have 'ash' word in their name. I have already wasted 3 days due to this problem. So please suggest me some workaround to achieve above this goal. Thanks in advance. Regards, Piyush Jain -- 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. -- dream or truth -- 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] App Engine SDK 1.3.1 is out!
i got a problem when i use sdk1.3.1 with compass2.3.0: Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: java.lang.IllegalArgumentException at com.google.appengine.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:74) at com.google.appengine.api.datastore.dev.LocalDatastoreService.getOrCreateProfile(LocalDatastoreService.java:1088) at com.google.appengine.api.datastore.dev.LocalDatastoreService.beginTransaction(LocalDatastoreService.java:883) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall(ApiProxyLocalImpl.java:124) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:52) at com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java:516) at org.compass.needle.gae.GoogleAppEngineDirectory.doInTransaction(GoogleAppEngineDirectory.java:434) at org.compass.needle.gae.GoogleAppEngineLockFactory$GoogleAppEngineLock.doRelease(GoogleAppEngineLockFactory.java:132) at org.compass.needle.gae.GoogleAppEngineLockFactory$GoogleAppEngineLock.access$000(GoogleAppEngineLockFactory.java:53) at org.compass.needle.gae.GoogleAppEngineLockFactory.clearLock(GoogleAppEngineLockFactory.java:50) at org.apache.lucene.store.Directory.clearLock(Directory.java:122) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:1066) at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:686) at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.createIndex(DefaultLuceneSearchEngineStore.java:507) at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.verifyIndex(DefaultLuceneSearchEngineStore.java:546) at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.verifyIndex(DefaultLuceneSearchEngineStore.java:541) at org.compass.core.lucene.engine.store.DefaultLuceneSearchEngineStore.verifyIndex(DefaultLuceneSearchEngineStore.java:533) at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager$4.doInTransaction(DefaultLuceneSearchEngineIndexManager.java:169) at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager$4.doInTransaction(DefaultLuceneSearchEngineIndexManager.java:167) at org.compass.core.impl.DefaultCompass$CompassTransactionContext.execute(DefaultCompass.java:428) at org.compass.core.lucene.engine.manager.DefaultLuceneSearchEngineIndexManager.verifyIndex(DefaultLuceneSearchEngineIndexManager.java:166) at org.compass.core.impl.DefaultCompass.init(DefaultCompass.java:164) at org.compass.core.impl.DefaultCompass.init(DefaultCompass.java:123) at org.compass.core.impl.DefaultCompass.init(DefaultCompass.java:116) at org.compass.core.config.CompassConfiguration.buildCompass(CompassConfiguration.java:288) at org.compass.spring.LocalCompassBean.newCompass(LocalCompassBean.java:414) at org.compass.spring.LocalCompassBean.afterPropertiesSet(LocalCompassBean.java:404) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:394) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736) at
Re: [appengine-java] Re: App Engine SDK 1.3.1 is out!
it exists on sdk1.3.0 too. On Thu, Feb 11, 2010 at 11:49 AM, vori vori...@gmail.com wrote: Is it a bug on JDO of SDK 1.3.1? -- PersistentManager pm = PMF.get().getPersistenceManager();; ClassA classA = pm.getObjectById(ClassA.class, id); ClassB classB = new ClassB(); Transaction tx = pm.currentTransaction(); tx.begin(); pm.makePersistent(classB); tx.commit(); // It throws javax.jdo.JDOException: can't operate on multiple entity groups in a single transaction. -- -- 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. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE For Java with struts2 And I am not able to access development admin console
http://code.google.com/appengine/ getting started for signing up page On Sat, Jan 30, 2010 at 9:11 PM, MKumar m.kumar1...@gmail.com wrote: Hi, I am using JAVA GAE , Everything is working fine, but I am not able to access the Admin console, which as given in documentation can be accessed using http://localhost:myport/_ah/admin But its giving me following error: HTTP ERROR: 404 There is no Action mapped for namespace /_ah and action name admin. RequestURI=/_ah/admin For your information, I had neither used data storage, or queing etc. in application, But wanted to directly enter some data using admin console. Please give me some idea so I can access the admin console for data entery on development server. Thanks Mrityunjay Kumar -- 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. -- dream or truth -- 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: Task Queue problems
thanks. also u can use GPass+SKYPE(or ssh) replace 2010/1/15 杨浩 skzr@gmail.com 代理 支持ssl: proxy.kerkgroep-hopjestad.com 3128 jwe219.internetdsl.tpnet.pl 3128 webmail.mwit.ac.th 80 我一般用第一个,他不是很稳定! 2010/1/13 yjun hu itswa...@gmail.com which proxy are u using now? 2010/1/12 杨浩 skzr@gmail.com 在中国appspot的https无法正常工作,因为gfw屏蔽了这部分,你寻找一个https代理,然后再测试应该就没有问题了! -- dream or truth -- 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. -- dream or truth -- 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] Error when deploy compass with spring on GAE--javax.naming.nameingexception
I'm using compass2.3.0-beta1+spring2.5.1+struts2.1.8.1+JDO,when i deploy my project to GAE, i got this error about 'javax/naming/NamingException'. I know 'NameingException' is not be whited list on GAE, but i track those class,i didnot see any class is using 'javax.naming.nameingexception' Below are my error info: 1. org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; *nested exception is java.lang.NoClassDefFoundError: javax/naming/NamingException* at com.google.appengine.runtime.Request.process-5ab96e7de14d08f5(Request.java) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1260) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(AccessController.java:34) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:394) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:793) at com.google.net.rpc.impl.Server.processRequest(Server.java:368) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java:466) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:759) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:205)
[appengine-java] Re: Error when deploy compass with spring on GAE--javax.naming.nameingexception
anybody can help me ? Thanks! On Thu, Jan 14, 2010 at 10:34 AM, yjun hu itswa...@gmail.com wrote: I'm using compass2.3.0-beta1+spring2.5.1+struts2.1.8.1+JDO,when i deploy my project to GAE, i got this error about 'javax/naming/NamingException'. I know 'NameingException' is not be whited list on GAE, but i track those class,i didnot see any class is using 'javax.naming.nameingexception' Below are my error info: 1. org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; *nested exception is java.lang.NoClassDefFoundError: javax/naming/NamingException* at com.google.appengine.runtime.Request.process-5ab96e7de14d08f5(Request.java) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1260) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(AccessController.java:34) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:394) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:793) at com.google.net.rpc.impl.Server.processRequest(Server.java:368) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:448) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at com.google.net.async.Connection.handleReadEvent(Connection.java:466
Re: [appengine-java] Re: Task Queue problems
which proxy are u using now? 2010/1/12 杨浩 skzr@gmail.com 在中国appspot的https无法正常工作,因为gfw屏蔽了这部分,你寻找一个https代理,然后再测试应该就没有问题了! -- 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. -- dream or truth -- 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 instance recycling and response times - is there solution?
治标不治本 On Wed, Jan 13, 2010 at 1:24 PM, 杨浩 skzr@gmail.com wrote: create a cron:every one minutes to run for keep your app online in the GAE! I try it,and it is work very good! -- 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. -- dream or truth -- 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] unable to delete cron job
?xml version=1.0 encoding=UTF-8? cronentries/ On Sun, Jan 3, 2010 at 2:54 PM, Jeff Schnitzer j...@infohazard.org wrote: It's not really intuitive behavior. It's basically summed up in this bug: http://code.google.com/p/googleappengine/issues/detail?id=2530 Jeff On Sat, Jan 2, 2010 at 6:20 PM, seleronm seler...@gmail.com wrote: Hi, Please refer to the following links http://code.google.com/intl/us/appengine/docs/java/config/cron.html [Uploading Cron Jobs] section Please try. Thanks. I created a sample cron job with an excution frequency of 2 minutes just to experiment with the working of cron on GAE. After a few invocations, I decided to remove the job. I deleted cron.xml and deployed my app on GAE. However, the cron continues to execute. How do I remove the job? -- 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. -- 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. -- dream or truth -- 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: strange question about Ehcache
anybody here? On Thu, Dec 31, 2009 at 3:28 PM, yjun hu itswa...@gmail.com wrote: my project works with spring+ struts2+Encache, and it works fine on my local machine, but when i deploy to GAE, it got one error when run Ehcache It seems that project can not * initialize class net.sf.ehcache.Element* my Ehcache version is the latest version 1.7.1 and my app id is rabidstudio, could u help me to investigate it. Thanks Uncaught exception from servlet java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-9f8eedb4d1d9c430(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:42) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.blog.interceptors.SessionInterceptor.intercept(SessionInterceptor.java:50) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.struts2.gae.interceptor.GaeFileUploadInterceptor.intercept(GaeFileUploadInterceptor.java:53) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 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
[appengine-java] Re: strange question about Ehcache
ok! i deploy my app to server with ehcache 1.6.0 replace, and it works fine now it seems gae does not support ehcache 1.7.1 On Mon, Jan 4, 2010 at 10:29 AM, yjun hu itswa...@gmail.com wrote: anybody here? On Thu, Dec 31, 2009 at 3:28 PM, yjun hu itswa...@gmail.com wrote: my project works with spring+ struts2+Encache, and it works fine on my local machine, but when i deploy to GAE, it got one error when run Ehcache It seems that project can not * initialize class net.sf.ehcache.Element* my Ehcache version is the latest version 1.7.1 and my app id is rabidstudio, could u help me to investigate it. Thanks Uncaught exception from servlet java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-9f8eedb4d1d9c430(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:42) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.blog.interceptors.SessionInterceptor.intercept(SessionInterceptor.java:50) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.struts2.gae.interceptor.GaeFileUploadInterceptor.intercept(GaeFileUploadInterceptor.java:53) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 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
Re: [appengine-java] Re: strange question about Ehcache
i'm using jdo,and now it run okay after i replace with ehcache 1.6.0 On Mon, Jan 4, 2010 at 12:45 PM, asianCoolz second.co...@gmail.com wrote: are u using jpa ? if yes, are you annotating your jpa entity with cache? -- 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. -- dream or truth -- 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] Struts2.1.8 tags does not work with appengine 1.2.6 and later
i'm using struts2.1.8 with sdk 1.3.0, and it works fine. about tags, all run ok except static method when u use static method, you should do some change: *struts.ognl.allowStaticMethodAccess = true * On Thu, Dec 31, 2009 at 4:10 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello all, Struts2 tags don't seem to work for appengine sdk 1.2.6 and later. My small application does not have any problem with appengine sdk1.2.5. Any ideas? Regards -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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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] strange question about Ehcache
my project works with spring+ struts2+Encache, and it works fine on my local machine, but when i deploy to GAE, it got one error when run Ehcache It seems that project can not * initialize class net.sf.ehcache.Element* my Ehcache version is the latest version 1.7.1 and my app id is rabidstudio, could u help me to investigate it. Thanks Uncaught exception from servlet java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-9f8eedb4d1d9c430(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:42) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.blog.interceptors.SessionInterceptor.intercept(SessionInterceptor.java:50) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.struts2.gae.interceptor.GaeFileUploadInterceptor.intercept(GaeFileUploadInterceptor.java:53) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 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
Re: [appengine-java] Re: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??
I try schedule with spring on GAE, and it does not work too. GAE has some function like cron jobs with 'cron.xml', you can try it http://code.google.com/appengine/docs/java/config/cron.html On Thu, Dec 31, 2009 at 6:34 AM, Juri juri.strumpfloh...@gmail.com wrote: Indeed, the TimerTask class implements Runnable...damn. Didn't know that threads aren't allowed. Thx On Dec 30, 11:31 pm, Marcel Overdijk marceloverd...@gmail.com wrote: Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote: Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the following error in the logs: Here's the stacktrace: org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean (AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.createBean (AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS ingleton (DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean (AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns tantiateSingletons (DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFa ctoryInitialization (AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler (AppVersionHandlerMap.java:191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler (AppVersionHandlerMap.java:168) at Does anyone have a suggestion what could cause this problem to occur?? thx a lot! -- 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. -- dream or truth -- You received this message because you