[appengine-java] Re: Memcache: can't get it working

2010-11-05 Thread alesj
http://code.google.com/appengine/docs/java/memcache/overview.html Values can expire from the memcache at any time, and may be expired prior to the expiration deadline set for the value. All looks fine, but like it says, cached value can go away at any time. Which is probably what's happening

[appengine-java] Re: Recommended maximum number of entities in an entity group

2010-10-21 Thread alesj
I think you're confusing entity *group* with actual entities stored in datastore, as I doubt you'll have thousands of related entities. -- http://code.google.com/appengine/docs/java/datastore/transactions.html#Using_Transactions see Entity groups On Oct 20, 7:39 pm, nicanor.babula

[appengine-java] Re: MailService::sendToAdmins, what should To look like?

2010-10-18 Thread alesj
The solution is here: MailService.Message msg = new MailService.Message(); msg.setSender(sender); msg.setSubject(subject); msg.setTextBody(textBody); mailService.sendToAdmins(msg); On Oct 18, 12:11 am, alesj ales.jus...@gmail.com wrote: Reading

[appengine-java] memcache and id parsing error

2010-10-17 Thread alesj
Any idea why this happens? javax.servlet.ServletContext log: unavailable com.google.appengine.api.memcache.InvalidValueException: IO exception parsing value of '1' at com.google.appengine.api.memcache.MemcacheServiceImpl.get(MemcacheServiceImpl.java: 289) at

[appengine-java] Re: memcache and id parsing error

2010-10-17 Thread alesj
Is there a way to clear memcache from admin console? On Oct 17, 3:26 pm, alesj ales.jus...@gmail.com wrote: Any idea why this happens? javax.servlet.ServletContext log: unavailable com.google.appengine.api.memcache.InvalidValueException: IO exception parsing value of '1

[appengine-java] Re: memcache and id parsing error

2010-10-17 Thread alesj
Any idea why this happens? To answer things myself. This one is actually pretty obvious, if the error reporting would be less confusing / better. It's a plain simple issue of forgetting to change serialVersionUID when changing entity's class signature. -- You received this message because you

[appengine-java] Re: JPA query + missing the obvious?

2010-10-15 Thread alesj
Experimenting a bit more, I'm now even more confused ... SetSubscription set = new HashSetSubscription(); Query query = getEM().createQuery(select s from Subscription s where s.clientId = ?1); Long cid = client.getId(); query.setParameter(1, cid); List list =

[appengine-java] JPA query + missing the obvious?

2010-10-14 Thread alesj
I have this query: Query query = getEM().createQuery(select s from Subscription s where s.clientId = ?1 and s.topicId = ?2); query.setParameter(1, client.getId()); query.setParameter(2, topic.getId()); return getSingleResult(query); I'm pretty sure it should return some

[appengine-java] Re: JPA query + missing the obvious?

2010-10-14 Thread alesj
A missing info -- the matching data is persisted before, in a separate/ different transaction. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To

[appengine-java] EL update or CL fix

2010-10-10 Thread alesj
It's been a while since I reported this odd ClassLoading (and EL) behavior: * http://groups.google.com/group/google-appengine-java/browse_thread/thread/e9c9578f034dd1f9 Any plans on fixing this? Or, are there perhaps valid reasons why EL is included in GAE distribution AND loaded by the app's

[appengine-java] Re: EL update or CL fix

2010-10-10 Thread alesj
Related post: * http://groups.google.com/group/google-appengine-java/browse_thread/thread/67c8c345d386eaec -- 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.

[appengine-java] Re: urlfetch and embedded gae usage error

2010-08-11 Thread alesj
OK, got a bit further. After adding dummy Environment and Delegate, I now get this: com.google.appengine.repackaged.com.google.protobuf.UninitializedMessageException: Message missing required fields: StatusCode at com.google.appengine.repackaged.com.google.protobuf.AbstractMessage

[appengine-java] Re: urlfetch and embedded gae usage error

2010-08-09 Thread alesj
I've added this just after the server is started, but no luck. :-( ApiProxy.Environment env = new DelegatingEnvironment(new DummyEnvironment()) { @Override public String getAppId() { return archive.getName(); } };

[appengine-java] Re: Using app's ELResolver class

2010-04-08 Thread alesj
, Joel On Wed, Apr 7, 2010 at 5:10 AM, alesj ales.jus...@gmail.com wrote: While this finds the right jar URL url = cl.getResource(META-INF/maven/javax.el/el-api/ pom.properties); String info = url.toExternalForm(); System.out.println(info = + info

[appengine-java] Using app's ELResolver class

2010-04-07 Thread alesj
I'm trying to use new EL api - version 2.2. - which knows how to deal with parameterized invocations; e.g. #{FooBarDAO.getInfos('alesj')}. Hence I'm bundling this new EL jars with my app. At runtime I get this java.lang.NoSuchMethodError: javax.el.ELResolver.invoke(Ljavax/el/ ELContext;Ljava

[appengine-java] Re: Using app's ELResolver class

2010-04-07 Thread alesj
While this finds the right jar URL url = cl.getResource(META-INF/maven/javax.el/el-api/ pom.properties); String info = url.toExternalForm(); System.out.println(info = + info); // jar:file:/foobar/projects/foobar/trunk/server/target/

[appengine-java] Re: Extending GAE's Jetty config

2010-03-10 Thread alesj
to re-enable it. On Tue, Mar 9, 2010 at 9:52 AM, alesj ales.jus...@gmail.com wrote: Does GAE use JettyWebXmlConfiguration to allow for WebAppContext custom configuration - via jetty-web.xml? I see that class in appengine-local-runtime.jar, but is it part of Jetty' default Configuration

[appengine-java] Extending GAE's Jetty config

2010-03-09 Thread alesj
Does GAE use JettyWebXmlConfiguration to allow for WebAppContext custom configuration - via jetty-web.xml? I see that class in appengine-local-runtime.jar, but is it part of Jetty' default Configuration instances? My guess would be no, as putting invalid jetty-web.xml in WEB-INF doesn't output any