[appengine-java] Re: 1.2.5 memcache error
I have the same problem. I'm trying search in google, but i don't found anything information over this topic. My class cache is: /** * */ package org.montequinto.util.cache; import java.util.Map; import javax.cache.Cache; import javax.cache.CacheException; import javax.cache.CacheFactory; import javax.cache.CacheManager; import javax.servlet.ServletException; public class CacheSingleton { private static final CacheSingleton instance = new CacheSingleton (); private Cache cache; private CacheSingleton() { } public static CacheSingleton getInstance() { return instance; } @SuppressWarnings(unchecked) public void init(Map props) throws ServletException { try { CacheFactory factory = CacheManager.getInstance ().getCacheFactory(); cache = factory.createCache(props); } catch (CacheException e) { throw new ServletException(cache error: + e.getMessage (), e); } } public Cache getCache() { return cache; } public void clear() { if (cache != null) { cache.clear(); } } } and this code don't work. Why? I don't understand. Thank you. On 8 sep, 09:33, kayjean kayj...@gmail.com wrote: I find some useful infomation about this topic.It works search title test unit doesn't work more kayjean On 9月8日, 上午11時07分, kayjean kayj...@gmail.com wrote: I try to upgrade eclipse sdk to 1.2.5 , something wrong ?? java.lang.NoSuchMethodError: com.google.apphosting.api.ApiProxy $Environment.getDefaultNamespace()Ljava/lang/String; at com.google.appengine.api.NamespaceManager.get (NamespaceManager.java:56) at com.google.appengine.api.memcache.MemcacheServiceImpl.setNamespace (MemcacheServiceImpl.java:181) at com.google.appengine.api.memcache.MemcacheServiceImpl.init (MemcacheServiceImpl.java:145) at com.google.appengine.api.memcache.MemcacheServiceFactory.getMemcacheService (MemcacheServiceFactory.java:25) at com.google.appengine.api.memcache.stdimpl.GCache.init (GCache.java:75) at com.google.appengine.api.memcache.stdimpl.GCacheFactory.createCache (GCacheFactory.java:63) thanks kayjean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Datanucleus site/resources
Sorry I send this here folks, but I've been trying to solve this in every other possible way and couldn't manage to access any of the Datanucleus guys. This question is for anyone that could answer on behalf of them: Is there any particular reason for the Datanucleus site not being visible in some Southeastern Europe countries (e.g. Romania) ? Anything that ends with 'datanucleus.org' is not accessible for me while any other web resource is available. It's very weird, if anyone can help or hint ... please :-) We can also take this off this thread, my address is dorel.va...@gmail.com. Thanks, Dorel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Datanucleus site/resources
Is there any particular reason for the Datanucleus site not being visible in some Southeastern Europe countries (e.g. Romania) ? Probably because that country has more than its fair share of spammers, so we needed to block some IP address ranges since the owner of those domains refused to respond to cease and desist requests. Send me your IP address (range) (email in profile) and I'll see what our hoster can do about it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Servlet widgets - an alternative to GWT or servlet dispatch jsp paradigm
Have a look at Apache Click On Fri, Oct 23, 2009 at 1:01 PM, Tor adm...@toolboxsystems.com wrote: I'm very pleased with the Google Web Toolkit (GWT) and it would very nice to adopt the same way of building html code user interfaces in servlets in GAE - as an alternative to the servlet dispatching jsp paradigm. In short - from inside servlet doPost (or doGet) method - it would be nice to add widgets like panels, buttons ... and basic html (with attributes and parameters) - to the document before written to the response. - a GWT-clone creating html code directly to the servlet response instead of GWT creating javascript in the server that creates html in the browser. Any tips to java html-widget libraries? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] inbound mail encoding problem
Hi, i want to get mail sender's name so i tried *message.getFrom()[0].toString() *(followed by trimming out email id), it generally works but for some ids i get a weird string like *=?UTF-8?B?QvKYiGd1cyAFeGNlcHRp4pi8bg==?=* i know this is some encoding issue but i don't know how to fix this. if anyone have any idea please share. 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-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Spring MVC + Sitemesh problem
I'm successfully using Spring 3.0.0 RC1 with Sitemesh 2.4.2. I'm currently developing the app, but after I red this post I tried on GAE infra with simple decorator. Works well for m. On 23 okt, 19:00, Jason (Google) apija...@google.com wrote: Yes, please try changing the log levels to .INFO or .FINEST -- it's possible that the log output that the frameworks are generating is just not getting surfaced because of the default logging level. After you deploy, you say that all you see is an empty site. Have you tried refreshing several times to see if your application eventually appears? This could point to a failed initialization and HardDeadlineExceeded error. Please post your application ID so we can determine this for certain. - Jason On Wed, Oct 21, 2009 at 11:20 AM, Abhinav Lele abhinav.l...@gmail.comwrote: Have you tried increasing the log levels ? -- Abhinav -Original Message- From: appenginetester jsand...@zerofeelistings.com Sent: 21 October 2009 23:46 To: Google App Engine for Java google-appengine-java@googlegroups.com Subject: [appengine-java] Re: Spring MVC + Sitemesh problem Thanks for this post, i thought i was going insane. I have deployed and redeployed dozens of times and see the same isssue -- empty site, no logs. Everything works fine in local eclipse environment. The deplyment to the app engine works with no errors. But when I access the application, there is an empty site and no logs on the server. On Oct 20, 5:35 am, Shponter shpon...@gmail.com wrote: Hi everybody! I'm using Spring MVC (3.0.0.RC1) with Sitemesh (2.4.2). Locally it works fine - generated jsp is decorated by sitemesh. When I deploy application on AppEngine I get empty site. There is also no exceptions or log messages... I don't have any ideas how to solve this... Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Bulk delete behind RPC
Hi, I'm trying to delete some unwanted data from my datastore and found some code using the DatastoreService that I modified to delete as many entries as possible in 10 seconds: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(PostalCodes); long starttime = (new Date()).getTime(); for (Entity entity : datastore.prepare(query).asIterable()) { datastore.delete(entity.getKey()); if ((new Date().getTime()) (starttime + 1)) break; } It seems to work when I run this. I check the console's data viewer and the Kind I'm trying to delete (PostalCodes) is gone, but the day after I do this, the whole thing has been restored. Am I missing a call to flush or commit or something?!? Is there a better way to do this? Thanks in advance, Eric =) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Incoming Email Service
I am facing the same issue. Basically the getContent() method returns ByteArrayInputStream instead of Multipart... Can someone please help? On Oct 23, 11:50 am, Kyle Roche k...@appirio.com wrote: Hi, I was able to put together an incoming email servlet that can read the subject and the metadata. However, I have not been able to successfully extract the body of the message. Can anyone post an example? Here's what I have so far: import java.io.IOException; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.servlet.http.*; @SuppressWarnings(serial) public class MailHandlerServlet extends HttpServlet { public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); try { MimeMessage message = new MimeMessage(session, req.getInputStream ()); Message emailMessage = new MimeMessage(session); emailMessage.setFrom(new InternetAddress(k...@gmail.com, from address)); emailMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(k...@gmail.com, to address)); emailMessage.setSubject(message.getSubject()); // HOW DO I GET THE MESSAGE? emailMessage.setText(message); Transport.send(emailMessage); } catch (MessagingException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Gadget Hosting on App Engine
I think this is more likely to be a gadget issue than an appengine issue. Check the gadgets discussion group as a few other people are experiencing the same issue On Sat, Oct 24, 2009 at 3:24 PM, Brian Dorry brian.do...@gmail.com wrote: I have recently been tasked with working on creating a gadget for a project that is hosted on app engine. I am also hosting the gadget specification on app engine. The gadget specification is generated on the server side as it refers back to the application id that the gadget is hosted on (this project may be hosted on multiple IDs), so I suspect that the gadget is subject to the same start up times that application is subject to when it has been inactive for a period of time (I don't know that this has anything to do with the issue I am having). Now to my problems. I have observed the following behavior: 1. After coming back to the mail inbox that I installed the gadget to the gadget has more often that not disappeared from the left side menu. 2. I came back to the mailbox after leaving Firefox open for an extended period of time, and after trying to use my gadget I received a 504 error Unable to retrieve gadget spec Are these related? Does anyone have experience with this issue? The gadget itself is working great hosted on app engine aside from this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Runtime Exceptions
How about jar -tvf appengine-api-1.0-sdk-1.2.1.jar | grep Exception At least, that should give you a list of Exceptions to support. If you find out more, please share :) On Oct 24, 6:46 am, Roy roy.smith@googlemail.com wrote: I read a lot about failures and timeouts from the datastore, but I can't find any documentation and of course the development environment doesn't simulate them. Has anybody compiled a list of the various error states and exceptions that we need to code for? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] AccessControlException when using Spring Security with OpenID
Hello, I try to implement Spring Security with OpenID but I am getting a 'java.security.AccessControlException: access denied' for the RequestURI /j_spring_openid_security_chec It is working fine if I use '-D--enable_all_permissions=true' as VM Argument. Any ideas? Thanks, Ralph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: SimpleDS: an alternative for Datastore persistence
With JPA+RDBMS a relationship between two objects (say, Invoice and Customer) could be implemented by a customer attribute inside the Invoice class. In the RDBMS, this is translated to a CUSTOMER_ID column in the INVOICE table. Datanucleus does not support this (the relationship must be owned, that is, the Invoice class must be nested inside the Customer instance), otherwise you must do this by hand, managing the Key instance yourself (if I understood correctly). What I don't get is the rationale behind this. With DataNucleus (AccessPlatform) you have the full range of JDO and JPA relations for RDBMS, since it passes the TCKs for both, and would be impossible to do that if it didn't support something so basic. So in the situation you describe as not supported yes you do get a CUSTOMER_ID FK in the INVOICE table. This has been supported since the very first version of JPOX ... back in 2003. If instead you're talking about GAE/J specifics, as per the link that you provided, then that is a different issue ... dependent on Googles plugin for DataNucleus. Only they can comment on that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Time zones implementation is broken in Java AppEngine
I have just found that, while everything works fine locally, the real AppEngine returns GMT for most time zones. I wonder if this is going to be fixed. Below see the local output and then the one I am having after uploading the app. Thanks, Alex LOCAL: Asia/Aden3false0Arabia Standard Time Asia/Almaty6false0Alma-Ata Time Asia/Amman3true1Eastern European Time Asia/Anadyr12false1Anadyr Time Asia/Aqtau5false0Aqtau Time Asia/Aqtobe5false0Aqtobe Time Asia/Ashgabat5false0Turkmenistan Time Asia/Ashkhabad5false0Turkmenistan Time Asia/Baghdad3false0Arabia Standard Time Asia/Bahrain3false0Arabia Standard Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok7false0Indochina Time ONLINE: Asia/Aden3false0Arabia Standard Time Asia/Almaty0false0Greenwich Mean Time Asia/Amman0false0Greenwich Mean Time Asia/Anadyr0false0Greenwich Mean Time Asia/Aqtau0false0Greenwich Mean Time Asia/Aqtobe0false0Greenwich Mean Time Asia/Ashgabat0false0Greenwich Mean Time Asia/Ashkhabad0false0Greenwich Mean Time Asia/Baghdad0false0Greenwich Mean Time Asia/Bahrain0false0Greenwich Mean Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok0false0Greenwich Mean Time --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: A matter in local time
The problem might be in the fact that AppEngine doesn't implement most of the time zones properly. Here I am outputting a number of attributes for different time zones. This code works fine locally but look what happens when I am running it on a deployed site. LOCAL: Asia/Seoul9false0Korea Standard Time Asia/Shanghai8false0China Standard Time Asia/Singapore8false0Singapore Time Asia/Taipei8false0China Standard Time Asia/Tashkent5false0Uzbekistan Time Asia/Tbilisi4false0Georgia Time Asia/Tehran3false1Iran Standard Time Asia/Tel_Aviv2false1Israel Standard Time Asia/Thimbu6false0Bhutan Time Asia/Thimphu6false0Bhutan Time Asia/Tokyo9false0Japan Standard Time DEPLOYED TO APPENGINE: Asia/Seoul0false0Greenwich Mean Time Asia/Shanghai0false0Greenwich Mean Time Asia/Singapore0false0Greenwich Mean Time Asia/Taipei0false0Greenwich Mean Time Asia/Tashkent0false0Greenwich Mean Time Asia/Tbilisi0false0Greenwich Mean Time Asia/Tehran0false0Greenwich Mean Time Asia/Tel_Aviv0false0Greenwich Mean Time Asia/Thimbu0false0Greenwich Mean Time Asia/Thimphu0false0Greenwich Mean Time Asia/Tokyo0false0Greenwich Mean Time Hey Google guys, could you at least provide the Etc/GMT zones so that I could use them as a temporary parch? Right now it goes like this: Etc/GMT+00false0Greenwich Mean Time Etc/GMT+10false0Greenwich Mean Time Etc/GMT+100false0Greenwich Mean Time Etc/GMT+110false0Greenwich Mean Time Etc/GMT+120false0Greenwich Mean Time Etc/GMT+20false0Greenwich Mean Time Etc/GMT+30false0Greenwich Mean Time Etc/GMT+40false0Greenwich Mean Time Etc/GMT+50false0Greenwich Mean Time Etc/GMT+60false0Greenwich Mean Time Etc/GMT+70false0Greenwich Mean Time Etc/GMT+80false0Greenwich Mean Time Etc/GMT+90false0Greenwich Mean Time Etc/GMT-00false0Greenwich Mean Time Etc/GMT-10false0Greenwich Mean Time Etc/GMT-100false0Greenwich Mean Time Etc/GMT-110false0Greenwich Mean Time Etc/GMT-120false0Greenwich Mean Time Alex On Thu, Sep 3, 2009 at 2:19 PM, Aron aron.gom...@gmail.com wrote: I guess problem is that after deploying to GAE, any try will retrieve the time zone information *on the Google Servers*! Google can't find out what timezone your local developer box is located in. Aron On Sep 2, 1:08 pm, le anh leanhduc1...@gmail.com wrote: On Sep 2, 2:24 pm, leszek leszek.ptokar...@gmail.com wrote: If you delete double declaration (String formattedDate) and add proper imports and declaration 'Calendar cal = Calendar.getInstance()); it should work. But you are having this problem while running in local environment (in your machine) or it does not work after deploying to google (production) environment ? It's also not correct when I change Date date=new Date() to Calendar cal = Calendar.getInstance(). They are same result. The code does not work correct after deploying to google (production) environment , meaning it does not work in Web Application Project of 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-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Time zones implementation is broken in Java AppEngine
Well, I don't know exactly how you implement your application. In my case, the users select their location by country/city and that location has a time zone ID associated with it. The ID is standard as defined in Java, say Asia/Jakarta is the time zone for Jakarta, Indonesia. As soon as they selected their location (which means the time zone too) I can set this time zone to any Calendar or DateFormat I use in my application and it works great - summer time is taken into account where it exists and so on. This is how it works on my machine where I have a proper Java implementation which knows exactly what Asia/Jakarta zone is. When I upload my application to the AppEngine however, Asia/Jakarta (and most other time zones defined in Java) becomes the same as GMT and all the finely crafted logic goes to hell... So in your case if you want your app to display time properly you need a way to find out where your user is coming from. One way is to find out from their IP address which isn't 100% reliable. Another way is to allow the users to make their choice. I follow the second option. You can see how it works (oh, well, doesn't work for most locations thanks to AppEngine's interpretation of Java) at http://lunarium.co.uk. Alex On Sat, Oct 24, 2009 at 8:29 PM, Rusty Wright rwright.li...@gmail.comwrote: Alex, if I'm in California, USA, and I'm deploying my web application to a server in Greece, and someone in Japan uses my application, which time zone should the web application use, and how should the web server determine which time zone to use? Alexander Kolesnikov wrote: I have just found that, while everything works fine locally, the real AppEngine returns GMT for most time zones. I wonder if this is going to be fixed. Below see the local output and then the one I am having after uploading the app. Thanks, Alex LOCAL: Asia/Aden3false0Arabia Standard Time Asia/Almaty6false0Alma-Ata Time Asia/Amman3true1Eastern European Time Asia/Anadyr12false1Anadyr Time Asia/Aqtau5false0Aqtau Time Asia/Aqtobe5false0Aqtobe Time Asia/Ashgabat5false0Turkmenistan Time Asia/Ashkhabad5false0Turkmenistan Time Asia/Baghdad3false0Arabia Standard Time Asia/Bahrain3false0Arabia Standard Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok7false0Indochina Time ONLINE: Asia/Aden3false0Arabia Standard Time Asia/Almaty0false0Greenwich Mean Time Asia/Amman0false0Greenwich Mean Time Asia/Anadyr0false0Greenwich Mean Time Asia/Aqtau0false0Greenwich Mean Time Asia/Aqtobe0false0Greenwich Mean Time Asia/Ashgabat0false0Greenwich Mean Time Asia/Ashkhabad0false0Greenwich Mean Time Asia/Baghdad0false0Greenwich Mean Time Asia/Bahrain0false0Greenwich Mean Time Asia/Baku5true1Azerbaijan Time Asia/Bangkok0false0Greenwich Mean Time --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Gadget Hosting on App Engine
I will do that, thanks. On Oct 24, 12:00 pm, Roy Smith roy.smith@googlemail.com wrote: I think this is more likely to be a gadget issue than an appengine issue. Check the gadgets discussion group as a few other people are experiencing the same issue On Sat, Oct 24, 2009 at 3:24 PM, Brian Dorry brian.do...@gmail.com wrote: I have recently been tasked with working on creating a gadget for a project that is hosted on app engine. I am also hosting the gadget specification on app engine. The gadget specification is generated on the server side as it refers back to the application id that the gadget is hosted on (this project may be hosted on multiple IDs), so I suspect that the gadget is subject to the same start up times that application is subject to when it has been inactive for a period of time (I don't know that this has anything to do with the issue I am having). Now to my problems. I have observed the following behavior: 1. After coming back to the mail inbox that I installed the gadget to the gadget has more often that not disappeared from the left side menu. 2. I came back to the mailbox after leaving Firefox open for an extended period of time, and after trying to use my gadget I received a 504 error Unable to retrieve gadget spec Are these related? Does anyone have experience with this issue? The gadget itself is working great hosted on app engine aside from this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Exception while trying to run app
I just updated my sdk to 1.2.6 and having the same problem as described in above mail. I'm using Eclipse Galileo. The project that I'm working on was working just fine till day before yesterday. Thanks. Iqbal Yusuf Dipu Unable to start embedded HTTP server java.lang.RuntimeException: Unable to locate the App Engine agent. Please use dev_appserver, KickStart, or set the jvm flag: - javaagent:sdk_root/lib/agent/appengine-agent.jar at com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled (DevAppServerFactory.java:102) at com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer (DevAppServerFactory.java:77) at com.google.appengine.tools.development.DevAppServerFactory.createDevAppServer (DevAppServerFactory.java:38) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start (AppEngineLauncher.java:79) at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:365) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:589) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/ development/agent/AppEngineDevAgent at com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInstalled (DevAppServerFactory.java:98) ... 7 more Caused by: java.lang.ClassNotFoundException: com.google.appengine.tools.development.agent.AppEngineDevAgent at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 8 more --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Exception while trying to run app
Solution to my problem was found here... http://groups.google.com/group/google-appengine-java/browse_thread/thread/df660675d21c64f0/0ec957ca22ffc877?lnk=gstq=Unable+to+locate+the+App+Engine+agent.#0ec957ca22ffc877 Thanks. Iqbal Yusuf Dipu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Exception while trying to run app
see http://tinyurl.com/yzhwl6p It's a known issue with upgrading. Look at the top result. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Bulk delete behind RPC
Hi Eric, I'm trying to delete some unwanted data from my datastore and found some code using the DatastoreService that I modified to delete as many entries as possible in 10 seconds: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(PostalCodes); long starttime = (new Date()).getTime(); for (Entity entity : datastore.prepare(query).asIterable()) { datastore.delete(entity.getKey()); if ((new Date().getTime()) (starttime + 1)) break; } Your code looks like no problem, I do not know the reason the whole thing has been restored. It is unusual. Regarding the performance, the following code is faster: DatastoreService ds = DatastoreServiceFactory.getDatastoreService(); Query query = new Query(PostalCodes); query.setKeysOnly(); long starttime = (new Date()).getTime(); while (new Date().getTime() - starttime = 1) { ListKey keys = new ArrayListKey(); for (Entity entity : ds.prepare(query).asList(FetchOptions.Builder.withLimit(500))) { keys.add(entity.getKey()); } ds.delete(keys); } The points are setKeysOnly() and batch delete. Hope this helps, Yasuo Higa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---