[appengine-java] How to use com.google.appengine.api.datastore.Text ?
Intro: I am an experienced embedded 'C' developer; I have written a little C++ and C#; I am new to both Java in general and AppEngine in particular; I don't know Python at all. I am trying to use the datastore, following the Book Store example in the online docs: http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html This is OK, but I soon get the following Exception: String properties must be 500 characters or less. Instead, use com.google.appengine.api.datastore.Text, which can store strings of any length. But I can't see how to load data from a Java String into Text - Eclipse complains that there is no conversion, and I can't see any ToText or equivalent method. I haven't been able to find any Java examples to illustrate this (or haven't recognised them, perhaps?) So, how does one save a Java String of over 500 characters? Cheers, Andy -- 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] GWT RPC fails with Custom Domain
GWT RPC is failing when I view my site with my custom domain, which was successfully attached to my google app. GWT RPC succeeds when I view my site with the myproject.appspot.com address. Why? Is the httpxmlrequest pointing to myproject.appspot.com instead of the the custom domain? Obviously it would fail then. I truly hope someone can help me with this and will be very appreciative if someone does. -- 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: No API environment is registered for this thread.
It seems that I've used my own Run Configuration where I included a wrong nucleus-appengine-something.jar in the classpath. When I added the Jar-File by hand the enhancer didn't work anymore. I created a new Run Configuration with the latest appengine version and it works. Are there some Documentation about how to set up the Developement Mode in the Run Configuration? Thanks so far Poe On 25 Mai, 18:21, Ronmell (VDKiT) ringe...@gmail.com wrote: Hi Poe. Data Store comes with your GAE. no further installations. a little bit of more information related to the complete error and the point of raising of the error, would be very helpful. R On May 25, 9:10 am, poe stefan.poe...@googlemail.com wrote: Hey there, when i want to store some Objects in the Datastore i get this error and the object is not added. This only happend when i use it in developement or production mode. Did I have to set up a Datastore or is it included in the appengine? No API environment is registered for this thread. Greets Poe -- 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. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GWT RPC fails with Custom Domain
Oh, ok the reason RPC is failing is because I had the subdomain of the custom domain set to forward to http://myproject.appspot.com on my domain hosting service provider. I truly believe that would result in the RPC being cross domain and thus failing. I followed the steps of adding the subdomain url to my google app once again, setting up the subdomain on my domain hosting service provider to have the CNAME provided by google's setup wizard. Now http://myproject.mycustomdomain.com does not resolve to an address in the browser. So clearly I'm not setting up my custom domain correctly. I'm going to keep looking into it further, but any help would be useful. On May 26, 1:28 am, Sky myonceinalifet...@gmail.com wrote: GWT RPC is failing when I view my site with my custom domain, which was successfully attached to my google app. GWT RPC succeeds when I view my site with the myproject.appspot.com address. Why? Is the httpxmlrequest pointing to myproject.appspot.com instead of the the custom domain? Obviously it would fail then. I truly hope someone can help me with this and will be very appreciative if someone does. -- 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: PersistenceManagerFactory: static PMF instance only gets initialized on first ever RPC call
Hello Sky, When my application launches, I create a queued task which constructs my singleton PMF instance asynchronously. My getPMF() method then uses this instance, and creates it at once if it is not yet created for some reason. This way, the creation of my PMF does not cause a delay to app start- up. One tip though: my parallel processing would be useless if I needed to exchange data with the datastore to show the app's first page! Cheers, Ian Is there a way to instantiate it upon application launch? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] How to use com.google.appengine.api.datastore.Text ?
http://code.google.com/intl/nl-BE/appengine/docs/java/javadoc/ Text myText = new Text(myString); -- Pieter Coucke Onthoo BVBA http://www.onthoo.com http://www.koopjeszoeker.be -- 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] AppEngine session advice
Any comment on this by anyone? I am waiting too :) thanks. On Tue, May 25, 2010 at 1:18 PM, Ice13ill andrei.fifi...@gmail.com wrote: I'm building an app that uses Google account auth. The application also uses a custom persistent entity (UserProfile) for users that are registered (so basically there are functionalities that can be used for free and others by registering). At the beginning, the app was simple, so at every request the user was checked by calling .getUserService().getCurrentUser() (including at first login obviously). But it seams that a call to that method can sometimes take about 3-5 seconds and also, clearly it is not he best way. So I need some advice implementing the session part, using what is described in the appengine documentation (session-enable + memcache + etc) . It does'n seem hard, but I know that some hintstips could help me at the beginning. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: how to gather all the entities in Data Store.
pm.deletePersistentAll(Collection c) method gets collection as paramether and deletes every element of the collection pm.getExtent(Class class) gets all the images in datastore (as iterable) you could use getExtent to get all data, convert it to collection and use deleteAll to remove everything. I hope that helps On May 25, 8:51 pm, Ronmell (VDKiT) ringe...@gmail.com wrote: Hello everybody. I want to gather the information about all the entities there are in my Data Store, I need this in order to delete each one found. Does anybody know how to do this? or is there any other way for deleting all the entities in data store? something like RESET the whole data Store Thanks. R -- 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: Does Memcache persist if all JVMs go to JVM heaven?
I am curious, does it matter if I call the factory each time I need an instance of MemcacheService? I am trying to keep the startup time to minimum so it would be good to know. Currently I create a global instance on startup which may or may not be used by the request. Cheers, Viðar On Wed, May 26, 2010 at 3:15 AM, Rahul rahul.jun...@gmail.com wrote: A Quick update, I tried this with low level google api and that seems to work perfectly fine and i am able to retrieve values from the existing cache and don't load it from db everytime hence reduces my jvm restart load time by 3-4 seconds. Not sure what jsr 107 was not working. Thanks, Rahul On May 25, 10:24 pm, Rahul rahul.jun...@gmail.com wrote: Ikai, I am guessing i am wrong somewhere in designing this cache solution. Would appreciate if you can tell me where am i going wrong on this. Let me try to explain it once again. I have a set of properties which i load on first call to the service. and the code I call in the service is as follows. PropertiesCache _cache = PropertiesCache.getInstance(); My PropertiesCache is as follows. --- public class PropertiesCache { private static final Logger log = Logger.getLogger(PropertiesCache.class.getName()); private static PropertiesCache _instance; private Cache cache; private PropertiesCache() { try { log.info(In the PropertiesCache constructor); cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap()); //Loading the cache from the database. //cache.put(Object, Object); } catch (CacheException e) { log.severe(Error in creating the Loading Cache); } public static synchronized PropertiesCache getInstance() { if (_instance == null) { _instance = new PropertiesCache(); }else{ log.info(Using existing cache instance and NO NEW Instance is created); } return _instance; } Also, Let me re-iterate what you said, you are suggesting me not to play around with instance variable instead use the cache variable and is there any way i can fetch the cache variable once the jvm restarts. Appreciate all the efforts. Thanks, Rahul On May 25, 5:08 pm, Ikai L (Google) ika...@google.com wrote: The instance itself will be recreated. If you store a value into Memcache, it will likely be there the next time you retrieve it. Try this out. It's not necessary to do what you've done here. When you create a Cache instance, you're really just creating a client to the cache, and you can do this each time you need it. There's no need to create a global, long-lived instance. What you're seeing is perfectly normal - Java objects will not have a longer lifespan than the JVM. If the JVM dies, so will all the instantiated objects. On Tue, May 25, 2010 at 1:28 PM, Rahul rahul.jun...@gmail.com wrote: Toby, I also had the same opinion but as you can see the previous code i have given populates the cache again. I guess i am doing something wrong. Appreciate if you can look at that and let me know if i have to do something which i missing. Thanks, Rahul On May 25, 4:00 pm, Toby Reyelts to...@google.com wrote: Rahul, If you're using App Engine's MemcacheService directly (or indirectly, for example through our JSR 107 support), then you are talking to backend memcache instances that have lifetimes separate from your JVMs. I.E. MemcacheServiceFactory.getMemcacheService http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...() does not create a new memcache backend - it just connects to an existing one. You have one logical memcache backend that is shared between all of your application's JVMs. On Tue, May 25, 2010 at 3:12 PM, Rahul rahul.jun...@gmail.com wrote: Ikai, I am not sure what you mean by Memcache instances stays up because i tried the following code and everytime when a new jvm instance is created, the cache instance is also created again. Below is the code i am using, let me know if i am missing anything or not doing anything correct. Request comes from the following code: MyCache _cache = MyCache.getInstance(); redirectUrl = _cache.findInCache(requestedURI); MyCache Class: private static MyCache _instance; private Cache cache; public static synchronized MyCache getInstance() { if (_instance == null) { _instance = new MyCache(); }else{ log.info(Using existing
[appengine-java] Help me
How to instantiate EntityManager ? EntityManager entityManager = EntityManagerFactory.getEntityManager(); Is that true? Why is an null 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-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] Help me
http://code.google.com/intl/nl-BE/appengine/docs/java/datastore/usingjpa.html#Getting_an_EntityManager_Instance -- Pieter Coucke Onthoo BVBA http://www.onthoo.com http://www.koopjeszoeker.be -- 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] Slow Index Building
Hello, I have the following index definition in the datastore-indexes.xml: datastore-index kind=TransactionEntity ancestor=false source=manual property name=createdBy direction=asc/ property name=creationDate direction=asc/ property name=primary direction=asc/ property name=time direction=asc/ /datastore-index After application was deployed the admin panel is showing that index is building. After ~20-30 min of waiting the admin panel still showing the following information: Building Queued: 2 Running: 0 Completed: 0 Total: 2 Please note that the TransactionEntity table contains max 10-15 rows. Any idea why I have to wait so much for such index? Thanks in advance Regards, Miroslav -- 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: problems serializing 'java.lang.Long'
Try cleaning and rebuilding the project. I had a similar error in a GAE + GWT project, and I think that's what solved it for me. But I'm not sure I'm remembering right, so please report back if that or what else solves it. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?
You can call the factory any times it doesn't matter it will return you the same cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com 2010/5/26 Viðar Svansson vidarsv...@gmail.com I am curious, does it matter if I call the factory each time I need an instance of MemcacheService? I am trying to keep the startup time to minimum so it would be good to know. Currently I create a global instance on startup which may or may not be used by the request. Cheers, Viðar On Wed, May 26, 2010 at 3:15 AM, Rahul rahul.jun...@gmail.com wrote: A Quick update, I tried this with low level google api and that seems to work perfectly fine and i am able to retrieve values from the existing cache and don't load it from db everytime hence reduces my jvm restart load time by 3-4 seconds. Not sure what jsr 107 was not working. Thanks, Rahul On May 25, 10:24 pm, Rahul rahul.jun...@gmail.com wrote: Ikai, I am guessing i am wrong somewhere in designing this cache solution. Would appreciate if you can tell me where am i going wrong on this. Let me try to explain it once again. I have a set of properties which i load on first call to the service. and the code I call in the service is as follows. PropertiesCache _cache = PropertiesCache.getInstance(); My PropertiesCache is as follows. --- public class PropertiesCache { private static final Logger log = Logger.getLogger(PropertiesCache.class.getName()); private static PropertiesCache _instance; private Cache cache; private PropertiesCache() { try { log.info(In the PropertiesCache constructor); cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap()); //Loading the cache from the database. //cache.put(Object, Object); } catch (CacheException e) { log.severe(Error in creating the Loading Cache); } public static synchronized PropertiesCache getInstance() { if (_instance == null) { _instance = new PropertiesCache(); }else{ log.info(Using existing cache instance and NO NEW Instance is created); } return _instance; } Also, Let me re-iterate what you said, you are suggesting me not to play around with instance variable instead use the cache variable and is there any way i can fetch the cache variable once the jvm restarts. Appreciate all the efforts. Thanks, Rahul On May 25, 5:08 pm, Ikai L (Google) ika...@google.com wrote: The instance itself will be recreated. If you store a value into Memcache, it will likely be there the next time you retrieve it. Try this out. It's not necessary to do what you've done here. When you create a Cache instance, you're really just creating a client to the cache, and you can do this each time you need it. There's no need to create a global, long-lived instance. What you're seeing is perfectly normal - Java objects will not have a longer lifespan than the JVM. If the JVM dies, so will all the instantiated objects. On Tue, May 25, 2010 at 1:28 PM, Rahul rahul.jun...@gmail.com wrote: Toby, I also had the same opinion but as you can see the previous code i have given populates the cache again. I guess i am doing something wrong. Appreciate if you can look at that and let me know if i have to do something which i missing. Thanks, Rahul On May 25, 4:00 pm, Toby Reyelts to...@google.com wrote: Rahul, If you're using App Engine's MemcacheService directly (or indirectly, for example through our JSR 107 support), then you are talking to backend memcache instances that have lifetimes separate from your JVMs. I.E. MemcacheServiceFactory.getMemcacheService http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...() does not create a new memcache backend - it just connects to an existing one. You have one logical memcache backend that is shared between all of your application's JVMs. On Tue, May 25, 2010 at 3:12 PM, Rahul rahul.jun...@gmail.com wrote: Ikai, I am not sure what you mean by Memcache instances stays up because i tried the following code and everytime when a new jvm instance is created, the cache instance is also created again. Below is the code i am using, let me know if i am missing anything or not doing anything correct. Request comes from the following code: MyCache _cache = MyCache.getInstance(); redirectUrl
Re: [appengine-java] Slow Index Building
The status shows that your index updates are Queued which would suggest that they are waiting for other users indexes to be built first. Note that when you create the index definitions first then add the data, the indexes are created on-the-fly as each entity is added and the CPU time comes out of your quota (you pay). Indexing after entering the entities is free but you have to wait sometimes. On 26 May 2010, at 19:52, Miroslav Genov wrote: Hello, I have the following index definition in the datastore-indexes.xml: datastore-index kind=TransactionEntity ancestor=false source=manual property name=createdBy direction=asc/ property name=creationDate direction=asc/ property name=primary direction=asc/ property name=time direction=asc/ /datastore-index After application was deployed the admin panel is showing that index is building. After ~20-30 min of waiting the admin panel still showing the following information: Building Queued: 2 Running: 0 Completed: 0 Total: 2 Please note that the TransactionEntity table contains max 10-15 rows. Any idea why I have to wait so much for such index? Thanks in advance Regards, Miroslav -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?
I realize that I always get the same cache. I am just wondering if it creates an overhead to always call the factory or not. Viðar On Wed, May 26, 2010 at 1:27 PM, Rahul Juneja rahul.jun...@gmail.com wrote: You can call the factory any times it doesn't matter it will return you the same cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com 2010/5/26 Viðar Svansson vidarsv...@gmail.com I am curious, does it matter if I call the factory each time I need an instance of MemcacheService? I am trying to keep the startup time to minimum so it would be good to know. Currently I create a global instance on startup which may or may not be used by the request. Cheers, Viðar On Wed, May 26, 2010 at 3:15 AM, Rahul rahul.jun...@gmail.com wrote: A Quick update, I tried this with low level google api and that seems to work perfectly fine and i am able to retrieve values from the existing cache and don't load it from db everytime hence reduces my jvm restart load time by 3-4 seconds. Not sure what jsr 107 was not working. Thanks, Rahul On May 25, 10:24 pm, Rahul rahul.jun...@gmail.com wrote: Ikai, I am guessing i am wrong somewhere in designing this cache solution. Would appreciate if you can tell me where am i going wrong on this. Let me try to explain it once again. I have a set of properties which i load on first call to the service. and the code I call in the service is as follows. PropertiesCache _cache = PropertiesCache.getInstance(); My PropertiesCache is as follows. --- public class PropertiesCache { private static final Logger log = Logger.getLogger(PropertiesCache.class.getName()); private static PropertiesCache _instance; private Cache cache; private PropertiesCache() { try { log.info(In the PropertiesCache constructor); cache = CacheManager.getInstance().getCacheFactory().createCache(Collections.emptyMap()); //Loading the cache from the database. //cache.put(Object, Object); } catch (CacheException e) { log.severe(Error in creating the Loading Cache); } public static synchronized PropertiesCache getInstance() { if (_instance == null) { _instance = new PropertiesCache(); }else{ log.info(Using existing cache instance and NO NEW Instance is created); } return _instance; } Also, Let me re-iterate what you said, you are suggesting me not to play around with instance variable instead use the cache variable and is there any way i can fetch the cache variable once the jvm restarts. Appreciate all the efforts. Thanks, Rahul On May 25, 5:08 pm, Ikai L (Google) ika...@google.com wrote: The instance itself will be recreated. If you store a value into Memcache, it will likely be there the next time you retrieve it. Try this out. It's not necessary to do what you've done here. When you create a Cache instance, you're really just creating a client to the cache, and you can do this each time you need it. There's no need to create a global, long-lived instance. What you're seeing is perfectly normal - Java objects will not have a longer lifespan than the JVM. If the JVM dies, so will all the instantiated objects. On Tue, May 25, 2010 at 1:28 PM, Rahul rahul.jun...@gmail.com wrote: Toby, I also had the same opinion but as you can see the previous code i have given populates the cache again. I guess i am doing something wrong. Appreciate if you can look at that and let me know if i have to do something which i missing. Thanks, Rahul On May 25, 4:00 pm, Toby Reyelts to...@google.com wrote: Rahul, If you're using App Engine's MemcacheService directly (or indirectly, for example through our JSR 107 support), then you are talking to backend memcache instances that have lifetimes separate from your JVMs. I.E. MemcacheServiceFactory.getMemcacheService http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...() does not create a new memcache backend - it just connects to an existing one. You have one logical memcache backend that is shared between all of your application's JVMs. On Tue, May 25, 2010 at 3:12 PM, Rahul rahul.jun...@gmail.com wrote: Ikai, I am not sure what you mean by Memcache instances stays up because i tried the following code and everytime when a new jvm instance is created,
Re: [appengine-java] Re: Does Memcache persist if all JVMs go to JVM heaven?
Jut need to be careful that if you reuse the same instance you don't depend on the namespace or error handler which are per-instance. Also worth pointing out that although google devs have mentioned on this list that it is OK to share MemcacheService instances, the docs do not state that it is thread-safe (as Jeff S once pointed out) so probably best to call the factory each time you need one - it is a cheap operation. On 26 May 2010, at 20:27, Rahul Juneja wrote: You can call the factory any times it doesn't matter it will return you the same cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com 2010/5/26 Viðar Svansson vidarsv...@gmail.com I am curious, does it matter if I call the factory each time I need an instance of MemcacheService? I am trying to keep the startup time to minimum so it would be good to know. Currently I create a global instance on startup which may or may not be used by the request. Cheers, Viðar On Wed, May 26, 2010 at 3:15 AM, Rahul rahul.jun...@gmail.com wrote: A Quick update, I tried this with low level google api and that seems to work perfectly fine and i am able to retrieve values from the existing cache and don't load it from db everytime hence reduces my jvm restart load time by 3-4 seconds. Not sure what jsr 107 was not working. Thanks, Rahul On May 25, 10:24 pm, Rahul rahul.jun...@gmail.com wrote: Ikai, I am guessing i am wrong somewhere in designing this cache solution. Would appreciate if you can tell me where am i going wrong on this. Let me try to explain it once again. I have a set of properties which i load on first call to the service. and the code I call in the service is as follows. PropertiesCache _cache = PropertiesCache.getInstance(); My PropertiesCache is as follows. --- public class PropertiesCache { private static final Logger log = Logger.getLogger(PropertiesCache.class.getName()); private static PropertiesCache _instance; private Cache cache; private PropertiesCache() { try { log.info(In the PropertiesCache constructor); cache = CacheManager .getInstance().getCacheFactory().createCache(Collections.emptyMap()); //Loading the cache from the database. //cache.put(Object, Object); } catch (CacheException e) { log.severe(Error in creating the Loading Cache); } public static synchronized PropertiesCache getInstance() { if (_instance == null) { _instance = new PropertiesCache(); }else{ log.info(Using existing cache instance and NO NEW Instance is created); } return _instance; } Also, Let me re-iterate what you said, you are suggesting me not to play around with instance variable instead use the cache variable and is there any way i can fetch the cache variable once the jvm restarts. Appreciate all the efforts. Thanks, Rahul On May 25, 5:08 pm, Ikai L (Google) ika...@google.com wrote: The instance itself will be recreated. If you store a value into Memcache, it will likely be there the next time you retrieve it. Try this out. It's not necessary to do what you've done here. When you create a Cache instance, you're really just creating a client to the cache, and you can do this each time you need it. There's no need to create a global, long-lived instance. What you're seeing is perfectly normal - Java objects will not have a longer lifespan than the JVM. If the JVM dies, so will all the instantiated objects. On Tue, May 25, 2010 at 1:28 PM, Rahul rahul.jun...@gmail.com wrote: Toby, I also had the same opinion but as you can see the previous code i have given populates the cache again. I guess i am doing something wrong. Appreciate if you can look at that and let me know if i have to do something which i missing. Thanks, Rahul On May 25, 4:00 pm, Toby Reyelts to...@google.com wrote: Rahul, If you're using App Engine's MemcacheService directly (or indirectly, for example through our JSR 107 support), then you are talking to backend memcache instances that have lifetimes separate from your JVMs. I.E. MemcacheServiceFactory.getMemcacheService http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...() does not create a new memcache backend - it just connects to an existing one. You have one logical memcache backend that is shared between all of your application's JVMs. On Tue, May 25, 2010 at 3:12 PM, Rahul rahul.jun...@gmail.com wrote: Ikai,
[appengine-java] Google App Engine update an object from servlet not working ?
I use the following code to update an object from servlet in Google App Engine : String Time_Stamp=[ 2010-05-26 ],query=select from +Contact_Info_Entry.class.getName()+ where Contact_Id == '+Contact_Id+' order by Contact_Id desc; PersistenceManager pm=null; try { pm=PMF.get().getPersistenceManager(); // note that this returns a list, there could be multiple, DataStore does not ensure uniqueness for non-primary key fields ListContact_Info_Entry results=(ListContact_Info_Entry)pm.newQuery(query).execute(); Contact_Info_Entry A_Contact_Entry=results.get(0); A_Contact_Entry.Extra_10=Time_Stamp; pm.makePersistent(A_Contact_Entry); } catch (Exception e) { Send_Email(Email_From,Email_To,Check_License_Servlet Error [ +Time_Stamp+ ],new Text(e.toString() +\n+Get_Stack_Trace(e)),null); } finally { pm.close(); } The value [ 2010-05-26 ] was in A_Contact_Entry.Extra_10, but it seems pm.makePersistent(A_Contact_Entry); was not executed. The object was not updated and there was no error message, why ? How to fix it ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: No API environment is registered for this thread.
As far As I know, there's not jeje. but if you use an IDE like Eclipse everything reduces to just install the plugin for GAE and done!. Rgds. R 2010/5/26 poe stefan.poe...@googlemail.com It seems that I've used my own Run Configuration where I included a wrong nucleus-appengine-something.jar in the classpath. When I added the Jar-File by hand the enhancer didn't work anymore. I created a new Run Configuration with the latest appengine version and it works. Are there some Documentation about how to set up the Developement Mode in the Run Configuration? Thanks so far Poe On 25 Mai, 18:21, Ronmell (VDKiT) ringe...@gmail.com wrote: Hi Poe. Data Store comes with your GAE. no further installations. a little bit of more information related to the complete error and the point of raising of the error, would be very helpful. R On May 25, 9:10 am, poe stefan.poe...@googlemail.com wrote: Hey there, when i want to store some Objects in the Datastore i get this error and the object is not added. This only happend when i use it in developement or production mode. Did I have to set up a Datastore or is it included in the appengine? No API environment is registered for this thread. Greets Poe -- 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. -- ausencia de evidencia ≠ evidencia de ausencia http://culturainteractiva.blogspot.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.
[appengine-java] java.lang.RuntimeException: Version not ready
Hi, i try to upload new version and i got this error: ... Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. and in log: Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java: 493) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 127) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Thanks for any advice! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)
If U want try this solution U must change authentication options in google app engine dashboard : Administration - Application Settings. On May 19, 1:36 am, Drasko drasko.ko...@googlemail.com wrote: I put some stuff onhttp://super-easy.blogspot.com... hope it helps. On May 16, 5:13 am,Draskodrasko.ko...@googlemail.com wrote: I am a bit slow in creating the GWT part ... but it looks already much better. The latest code is running onhttp://super-easy.appspot.com There will be soon some content on super-easy.blogspot.com and code.google.com/p/super-easy My goal is to try to pack it in a nice widget and make it *super easy*... Thanks guys at Java AppEngine team who are daily releasing updates ;-) On May 15, 5:53 pm, Mark Renouf mark.ren...@gmail.com wrote: The button displays an alert, but does not redirect. Copying the URL from the alert dialog and manually visiting it does work, and I'm logged into your app via my Yahoo account. Can you share your example code for this project? On May 15, 6:29 am,Draskodrasko.ko...@googlemail.com wrote: And just as I managed to make it working, the new release 1.3.4 got released and really got me totally scared as no more federated methods were there. Luckily it was just an API cleanup and now both the Google Account API and the (Experimental) Federated Login are using the same User class and the methods to obtain login and logout redirects ... COOL ;-) The extended Web Application Starter Project using a widget to authenticate users via OpenID is available onhttp://super-easy.appspot.com On May 14, 12:16 pm,Draskodrasko.ko...@googlemail.com wrote: I am doing a major rewrite of a working website. We have chosen GWT and GAE as the target architecture. I would like to complement our propriatory user authentication schema with OpenID. Hence, I was very happy that GAE supports the federated login. After spending the last 8 hours, I have failed to discover any useful artifacts that would make me understand how to use the User API in the federated mode. Additionally, I found out that the guestbook sample gets broken when switching the authentication option from the Google Account API to the Federated Login, causing the login page to be repeatedly called (shortly showing the CheckCookie URL inbetween). I guess this is not a planned behaviour, even thought the method used for obtaining the redirect URL is not forseen for the federated mode (createLoginURL vs createFederatedLoginURL). I would appreciate any comments and/or pointers on this topic as I am aiming on producing a set of basic demo applications using the most promising libraries. The findings will be published in the blog (super-easy.blogspot.com) with the hope that others won't need to waste so much time. I read lots of posts reffering to the dyuproject as a viable OpenID library for GAE and will use it as the next candidate. Thanks for your help -- 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. -- 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. -- 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. -- 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. -- 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
[appengine-java] WARNING: No file found for: /sign
Hi there I am trying to get the Google tutorial for the app engine working. I am at the end of the 'Using JSPs' page and have done everything exactly. But after I input a greeting on the form, I get: HTTP ERROR 404 Problem accessing /sign. Reason: NOT_FOUND -- web.xml -- ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 servlet servlet-nameGuestbook/servlet-name servlet-classcom.skeniver.guestbook.GuestbookServlet/servlet- class /servlet servlet-mapping servlet-nameGuestbook/servlet-name url-pattern/guestbook/url-pattern /servlet-mapping servlet servlet-namesign/servlet-name servlet-classguestbook.SignGuestbookServlet/servlet-class /servlet servlet-mapping servlet-namesign/servlet-name url-pattern/sign/url-pattern /servlet-mapping welcome-file-list welcome-fileguestbook.jsp/welcome-file /welcome-file-list /web-app --- guestbook.jsp --- %@ page contentType=text/html;charset=UTF-8 language=java % %@ page import=com.google.appengine.api.users.User % %@ page import=com.google.appengine.api.users.UserService % %@ page import=com.google.appengine.api.users.UserServiceFactory % html body % UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if (user != null) { % pHello, %= user.getNickname() %! (You can a href=%= userService.createLogoutURL(request.getRequestURI()) %sign out/a.)/p % } else { % pHello! a href=%= userService.createLoginURL(request.getRequestURI()) %Sign in/a to include your name with greetings you post./p % } % form action=/sign method=post divtextarea name=content rows=3 cols=60/textarea/ div divinput type=submit value=Post Greeting //div /form /body /html Any help would be most appreciated! Thanks in advance -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to use OpenID on the GAE (with the GWT frontend)
Anyone try this solution merge with oauth to achieve hybrid protocol (openid + oauth)? I want in one step log into my application using gmail account and also grant access to some google services like picasa,youtube,maps,... ;] On 19 Maj, 01:36, Drasko drasko.ko...@googlemail.com wrote: I put some stuff onhttp://super-easy.blogspot.com... hope it helps. On May 16, 5:13 am, Drasko drasko.ko...@googlemail.com wrote: I am a bit slow in creating the GWT part ... but it looks already much better. The latest code is running onhttp://super-easy.appspot.com There will be soon some content on super-easy.blogspot.com and code.google.com/p/super-easy My goal is to try to pack it in a nice widget and make it *super easy*... Thanks guys at Java AppEngine team who are daily releasing updates ;-) On May 15, 5:53 pm, Mark Renouf mark.ren...@gmail.com wrote: The button displays an alert, but does not redirect. Copying the URL from the alert dialog and manually visiting it does work, and I'm logged into your app via my Yahoo account. Can you share your example code for this project? On May 15, 6:29 am, Drasko drasko.ko...@googlemail.com wrote: And just as I managed to make it working, the new release 1.3.4 got released and really got me totally scared as no more federated methods were there. Luckily it was just an API cleanup and now both the Google Account API and the (Experimental) Federated Login are using the same User class and the methods to obtain login and logout redirects ... COOL ;-) The extended Web Application Starter Project using a widget to authenticate users via OpenID is available onhttp://super-easy.appspot.com On May 14, 12:16 pm, Drasko drasko.ko...@googlemail.com wrote: I am doing a major rewrite of a working website. We have chosen GWT and GAE as the target architecture. I would like to complement our propriatory user authentication schema with OpenID. Hence, I was very happy that GAE supports the federated login. After spending the last 8 hours, I have failed to discover any useful artifacts that would make me understand how to use the User API in the federated mode. Additionally, I found out that the guestbook sample gets broken when switching the authentication option from the Google Account API to the Federated Login, causing the login page to be repeatedly called (shortly showing the CheckCookie URL inbetween). I guess this is not a planned behaviour, even thought the method used for obtaining the redirect URL is not forseen for the federated mode (createLoginURL vs createFederatedLoginURL). I would appreciate any comments and/or pointers on this topic as I am aiming on producing a set of basic demo applications using the most promising libraries. The findings will be published in the blog (super-easy.blogspot.com) with the hope that others won't need to waste so much time. I read lots of posts reffering to the dyuproject as a viable OpenID library for GAE and will use it as the next candidate. Thanks for your help -- 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. -- 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. -- 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. -- 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. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this
[appengine-java] hybrid protocol (openid + oauth) in GWT
Anyone try this solution with oauth? I want achieve one step authorization(for log in to my application) and authentication(to grant acces to google services: picasa,...) like in hybrid protocol (openid + oauth). In GWT its not quite simple to implement hybrid protocol;] -- 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] Delete error version
Hello Google, Can you please help me to delete an error version in my app? When I tried to delete it, the system reported Server Error. A server error has occurred. My app id: gaepocdemo Error version: 3 Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: hybrid protocol (openid + oauth) in GWT
This is post, not new discoussion :/ I must do something wrong. In any event, I wanted implement hybrid protocol (openid + oauth) with built in app engine library since 1.3.4 sdk release has openid and oauth. Openid is very simple to implement: http://super-easy.blogspot.com/2010/05/using-openid-in-java-on-gae.html . How add to this oauth from app engine? On 26 Maj, 11:39, alucarD kudlaty@gmail.com wrote: Anyone try this solution with oauth? I want achieve one step authorization(for log in to my application) and authentication(to grant acces to google services: picasa,...) like in hybrid protocol (openid + oauth). In GWT its not quite simple to implement hybrid protocol;] -- 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] WARNING: No file found for: /sign
Can you try rebuilding your project? Also note that changes to web.xml require a server restart if you are working in Debug mode and hot-reloading classes. On Wed, May 26, 2010 at 6:51 AM, Skeniver skeni...@gmail.com wrote: Hi there I am trying to get the Google tutorial for the app engine working. I am at the end of the 'Using JSPs' page and have done everything exactly. But after I input a greeting on the form, I get: HTTP ERROR 404 Problem accessing /sign. Reason: NOT_FOUND -- web.xml -- ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 servlet servlet-nameGuestbook/servlet-name servlet-classcom.skeniver.guestbook.GuestbookServlet/servlet- class /servlet servlet-mapping servlet-nameGuestbook/servlet-name url-pattern/guestbook/url-pattern /servlet-mapping servlet servlet-namesign/servlet-name servlet-classguestbook.SignGuestbookServlet/servlet-class /servlet servlet-mapping servlet-namesign/servlet-name url-pattern/sign/url-pattern /servlet-mapping welcome-file-list welcome-fileguestbook.jsp/welcome-file /welcome-file-list /web-app --- guestbook.jsp --- %@ page contentType=text/html;charset=UTF-8 language=java % %@ page import=com.google.appengine.api.users.User % %@ page import=com.google.appengine.api.users.UserService % %@ page import=com.google.appengine.api.users.UserServiceFactory % html body % UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if (user != null) { % pHello, %= user.getNickname() %! (You can a href=%= userService.createLogoutURL(request.getRequestURI()) %sign out/a.)/p % } else { % pHello! a href=%= userService.createLoginURL(request.getRequestURI()) %Sign in/a to include your name with greetings you post./p % } % form action=/sign method=post divtextarea name=content rows=3 cols=60/textarea/ div divinput type=submit value=Post Greeting //div /form /body /html Any help would be most appreciated! Thanks in advance -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to use com.google.appengine.api.datastore.Text ?
Here's the page specifically for the Text object: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Text.html As you can see in that documentation (as Pieter demonstrated) -- Text wraps a string (String) and does so via its constructor (rather than via some set method). Cheers Mike -- 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: Delete error version
I'm getting this as well. I was deploying my app when I went to the blobviewer to delete an entry. Now I cannot delete the version that locked or delete any entries using the blobviewer. All I get is a Server Error. appid: storetormain version: 2 On May 26, 1:41 pm, Chau Huynh cmhu...@gmail.com wrote: Hello Google, Can you please help me to delete an error version in my app? When I tried to delete it, the system reported Server Error. A server error has occurred. My app id: gaepocdemo Error version: 3 Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Can't delete blob in blob viewer
I'm getting this as well. I was deploying my app when I went to the blobviewer to delete an entry. Now I cannot delete the version that locked or delete any entries using the blobviewer. All I get is a Server Error. appid: storetormain version: 2 On May 25, 6:07 pm, Patrick Brown patrickcbr...@gmail.com wrote: Hi If I attempt to delete a blob from the Blob Viewer I am redirected to a page that just says Server Error, a server error has occurred. Is this working for you all? Thanks, Patrick -- 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: Can't delete blob in blob viewer
Hi I think this is a known issue, since I posted the question I did some searching and found an issue documenting this happening to alot of people Patrick On May 26, 2010, at 5:39 PM, Erich erich.re...@gmail.com wrote: I'm getting this as well. I was deploying my app when I went to the blobviewer to delete an entry. Now I cannot delete the version that locked or delete any entries using the blobviewer. All I get is a Server Error. appid: storetormain version: 2 On May 25, 6:07 pm, Patrick Brown patrickcbr...@gmail.com wrote: Hi If I attempt to delete a blob from the Blob Viewer I am redirected to a page that just says Server Error, a server error has occurred. Is this working for you all? Thanks, Patrick -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Persisting object with generic supertype
So I'm trying again now... After setting the (hopefully) proper strategy I get different exception from the Enhancer: -- 27.5.2010 2:51:42 org.datanucleus.enhancer.DataNucleusEnhancer main SEVERE: DataNucleus Enhancer completed with an error. Please review the enhancer log for full details. Some classes may have been enhanced but some caused errors Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details org.datanucleus.exceptions.NucleusUserException: Errors were encountered when loading the specified MetaData files and classes. See the nested exceptions for details ... ... Caused by: java.lang.IllegalStateException: Unknown type: I -- And this is what the header of my abstract class looks like: -- @PersistenceCapable @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class EntityIndexE extends HasKey, I extends Object extends HasKey ... -- Can you see what am I doing wrong this time, please? I have been able to find only one thread where this error-message occurs: http://groups.google.com/group/google-appengine-java/browse_thread/thread/b022faa2210603e ...but I wasn't able to take anything from that conversation. :( On May 18, 1:47 pm, Didier Durand durand.did...@gmail.com wrote: Hi, Did you correctly parametrize the storage strategy for inheritance at the root level of your hierarchy tree: checkhttp://www.datanucleus.org/products/accessplatform/jdo/orm/inheritanc... andhttp://code.google.com/appengine/docs/java/datastore/dataclasses.html... I remember having such a problem before defining correct storage strategy. Let us know if it helps didier On May 18, 12:42 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Hello Following is what I get after adding new field to my class: -- org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class net.jzaruba.appengine1.Article is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found. -- Until now the Article got persisted without any issues. The newly added field has generic type as its supertype. Is there anything suspicious in my code? Article: @PersistenceCapable(detachable=true) public class Article extends HasKey { // ... @Persistent(defaultFetchGroup = true) @Extension(vendorName = datanucleus, key = gae.unindexed, value=true) private ArticleCategoryIndex tagIndex = null; // has getter and setter below (gets assigned and populated only when non-empty) // getters, setters, ... } ArticleCategoryIndex: @PersistenceCapable public class ArticleCategoryIndex extends EntityIndexArticle, Category { ArticleCategoryIndex(Article article) { super(article); } } EntityIndex: @PersistenceCapable public abstract class EntityIndexE extends HasKey, I extends Object { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent @Extension(vendorName=datanucleus, key=gae.parent-pk, value=true) private Key parentKey; @Persistent private ListI items = new LinkedListI(); public EntityIndex(E entity) { setParentKey(entity.getKey()); } // getters, setters, ... } Could anyone tell me what I am doing wrong here, please? Regards J. Záruba -- 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. -- 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. -- 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] MemCache expiring around once a day
I have a memcache and not to mention it does live between different jvm instances when new jvm instances starts, i can access the cache but once a while i don't find any values in cache and this happened twice in last 24 hours. Is there any default expiration which is less then 24-48 hours which i am not aware of. Any help or pointers on this is appreciated. Thanks, Rahul -- 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] GQL query to delete all entities in Datastore
Hi, In the datastore viewer, there is a provision to specify the GQL query. Can a query to delete all the entities be specified in it? If so , can someone please give the syntax for it! Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GQL query to delete all entities in Datastore
There is no delete keyword in standard GQL. You need to do this programatically. However, there is a GQL third party library which might implement delete. On 27 May 2010, at 08:55, drift elysium wrote: Hi, In the datastore viewer, there is a provision to specify the GQL query. Can a query to delete all the entities be specified in it? If so , can someone please give the syntax for it! 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 . -- 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: MemCache expiring around once a day - UPDATE
It looks like that i have received the following error and memcache was cleared around that time. What it looks like is memcache service was unavailable. This kind of answers my question i guess until and unless there is something else which i am missing. Just for the information this happened around 05-26 05:03PM 25.194 time. com.google.appengine.api.memcache.LogAndContinueErrorHandler handleServiceError: Service error in memcache com.google.appengine.api.memcache.MemcacheServiceException: Memcache getStatistics: exception at com.google.appengine.api.memcache.MemcacheServiceImpl.makeSyncCall(MemcacheServiceImpl.java: 192) at com.google.appengine.api.memcache.MemcacheServiceImpl.getStatistics(MemcacheServiceImpl.java: 750) at com.thoughtclicks.filter.RedirectFilter.doFilter(RedirectFilter.java: 77) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) Caused by: com.google.apphosting.api.ApiProxy $CapabilityDisabledException: The API call memcache.Stats() is temporarily unavailable. On May 26, 9:43 pm, Rahul rahul.jun...@gmail.com wrote: I have a memcache and not to mention it does live between different jvm instances when new jvm instances starts, i can access the cache but once a while i don't find any values in cache and this happened twice in last 24 hours. Is there any default expiration which is less then 24-48 hours which i am not aware of. Any help or pointers on this is appreciated. Thanks, Rahul -- 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] GQL query to delete all entities in Datastore
Thanks for the reply ! On Wed, May 26, 2010 at 9:17 PM, John Patterson jdpatter...@gmail.comwrote: There is no delete keyword in standard GQL. You need to do this programatically. However, there is a GQL third party library which might implement delete. On 27 May 2010, at 08:55, drift elysium wrote: Hi, In the datastore viewer, there is a provision to specify the GQL query. Can a query to delete all the entities be specified in it? If so , can someone please give the syntax for it! 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. -- 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.