google-code-export / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
1 stars 0 forks source link

Memcache Namespace is Invalid from SDK 1.3.4 Onwards #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The name of the MemCache namespace which is declared in the 
CachingDatastoreService class is invalid from GAE SDK 1.3.4 onwards.  

This isn't a problem if you continue to use the deprecated setNamespace method 
on the MemcacheService object, but if you use the correct static method on the 
MemcacheServiceFactory to obtain a namespace-aware MemcacheService then it 
fails.

The error which is thrown is:

java.lang.IllegalArgumentException: Namespace 'Objectify Cache' does not match 
pattern '[0-9A-Za-z._-]{0,100}'.
    at com.google.appengine.api.NamespaceManager.validateNamespace(NamespaceManager.java:154)
    at com.google.appengine.api.memcache.MemcacheServiceImpl.<init>(MemcacheServiceImpl.java:163)
    at com.google.appengine.api.memcache.MemcacheServiceFactory.getMemcacheService(MemcacheServiceFactory.java:45)

Original issue reported on code.google.com by qila...@gmail.com on 29 Jun 2010 at 4:51

GoogleCodeExporter commented 9 years ago
This isn't quite true - the deprecated setNamespace() method still accepts 
"Objectify Cache", so the current version of Objectify should still work (even 
with SDK 1.3.4).

However, I switched to the 1.3.4-specific method for setting namespace and 
removed the space just in case.  Thanks for the report!

Original comment by lhori...@gmail.com on 30 Jun 2010 at 1:52