[appengine-java] Re: Point to application database with JUnit Test

2009-12-03 Thread leszek
Judging from: http://code.google.com/intl/pl/appengine/docs/java/howto/unittesting.html --- if every test starts with a clean datastore --- it clears local datastore every time - so it works as expected. But may be after removing line: datastoreService.clearProfiles();

[appengine-java] Re: Persisting class hierarchies

2009-12-03 Thread leszek
Inheritance and class hierarchy is very important in OOP but it has a different meaning when it comes to persistence. You cannot take advantage of OOP concepts like: encapsulation, polymorphic etc. So, as Ikai pointed above, you can run into over-engineering trap going that way. In my opinion the

Re: [appengine-java] SimpleDS 0.8.1 has been released

2009-12-03 Thread Nacho Coloma
Actually, that's a good idea. I have sent a request to be added to the list. Thanks! On Wed, Dec 2, 2009 at 8:02 PM, Ikai L (Google) ika...@google.com wrote: Wow, looking great! Did you want this added to the list of Open Source projects?

[appengine-java] Re: javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind Transactions with key Transactions(Transactions(67))

2009-12-03 Thread zackmac
This is strange - when I retrieve the object after persisting via JDOHelper.getObjectId(obj), I get an object back no problem. Then, before trying to delete the object, I do pm.newObjectIdInstance (Categories.class, key) and I get a NullPointerException. I know in this post I've put in

[appengine-java] Re: Unable to update: com.google.appengine.tools.admin.JspCompilationException: Failed to compile the generated JSP java files.

2009-12-03 Thread umair
Does anybody have a solution to this problem, an immediate reply will be highly appreciated. Thanks, Muhammad Umair On Dec 3, 2:29 am, umair umair...@gmail.com wrote: I am getting this error when deploying the youtube direct application to google app engine. Unable to update:

[appengine-java] Re: javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind Transactions with key Transactions(Transactions(67))

2009-12-03 Thread datanucleus
This is strange - when I retrieve the object after persisting via JDOHelper.getObjectId(obj), I get an object back no problem. Yes, but you haven't told us what is the id returned by that method. And whats in the log when you invoke that pm.getObjectById ... ?  Then,before trying to delete the

[appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Prashant
anyone??? -- 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

Re: [appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Don Schwarz
http://code.google.com/appengine/docs/java/mail/usingjavamail.html#Features_of_the_Low_level_API On Thu, Dec 3, 2009 at 8:00 AM, Prashant antsh...@gmail.com wrote: anyone??? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To

Re: [appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Prashant
thanks a lot -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to

Re: [appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Prashant
what if I want to send only one of the admins? there is no way, right? does that work for XMPP also? -- 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

Re: [appengine-java] Re: Text Search Support for Java

2009-12-03 Thread Max Ross (Google)
I'll also point out that while it's not on our official roadmap, we have marked http://code.google.com/p/googleappengine/issues/detail?id=217 as started. Development is still in the very early stages so the only thing it's safe to conclude about timeline is that we don't expect it to be ready

Re: [appengine-java] Re: Text Search Support for Java

2009-12-03 Thread Erdinc Yilmazel
For small and readonly indexes you can use lucene and it works without any issues. All you need to do is generate your index outside the appengine environment and put your index files in the war package that is deployed. (Somewhere under WEB-INF would be the best place I think) Erdinc On Thu,

[appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread rnawky
You set them up as an administrator to your App Engine Application On Dec 1, 11:55 pm, Prashant antsh...@gmail.com wrote: Hi, whosoever I send a mail it gets counted in Recipients Emailed quota, how do I use Admins Emailed quota to send mails to admins. Thanks. -- You received this

Re: [appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Prashant
no, no, I meat to say that, suppose there are 3 admins and I want to send mail to only one admin using admin quota. this is not possible, rite? And, does following work for XMPP? XMPPServiceFactory.getXMPPService() .sendMessage( new MessageBuilder() .withRecipientJids(new

Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-12-03 Thread Vince Bonfanti
I just started testing with the 1.2.8 prerelease, and I'm getting the following exception from Queue.add() in code that works in 1.2.6: java.lang.IllegalStateException: Current enviornment must have the server url available via the com.google.appengine.server_url_key attribute. This only happens

Re: [appengine-java] Re: how do i use Admins Emailed quota?

2009-12-03 Thread Don Schwarz
On Thu, Dec 3, 2009 at 12:02 PM, Prashant antsh...@gmail.com wrote: no, no, I meat to say that, suppose there are 3 admins and I want to send mail to only one admin using admin quota. this is not possible, rite? Correct. And, does following work for XMPP?

[appengine-java] Why no GAE system property?

2009-12-03 Thread Jeff Schnitzer
Why isn't there a system property that can be used to detect if a program is running on appengine? This is really a glaring oversight. I would expect something like System.getProperty(google.appengine) to be development or production (or of course null). Before someone says check the servlet

Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-12-03 Thread Max Ross (Google)
Hi Vince, That sounds like a bug in our code that was a side effect of the automatic task execution that now happens in the dev environment. Let me see if I can come up with a workaround for you. Max On Thu, Dec 3, 2009 at 10:06 AM, Vince Bonfanti vbonfa...@gmail.com wrote: I just started

Re: [appengine-java] Re: Text Search Support for Java

2009-12-03 Thread Jess Evans
The compass solution is probably sufficient for pet projects. If I correctly recall, there are still serious scalability issues due to the way indexes are currently stored and restrictions on app store blob size. The main issue is initial timeouts due to the GAE design flaw wrt startup / initial

Re: [appengine-java] Why no GAE system property?

2009-12-03 Thread Vince Bonfanti
I agree. My workaround was to create a ServletEventListener and put this in the contextInitialized() method: System.setProperty( appengine.server, event.getServletContext().getServerInfo().contains( Development ) ? development : production ); Vince On Thu, Dec 3, 2009 at 1:15 PM, Jeff

Re: [appengine-java] Re: Datanucleus Exception - deletePersistent() called recursively

2009-12-03 Thread Jeffrey Goetsch
Here are the Domain classes that have the problem. Please let me know if you need more information. --Jeff @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Player { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long key;

Re: [appengine-java] Why no GAE system property?

2009-12-03 Thread Toby Reyelts
Yes, I totally agree that the current official way of checking for App Engine presence is not great for third party libraries which don't even necessarily run in a servlet container. We've been putting together a solution for this and hope to make it available soon. On Thu, Dec 3, 2009 at 1:15

Re: [appengine-java] Why no GAE system property?

2009-12-03 Thread Jeffrey Goetsch
Could you create a Servlet that is loaded on launch, and set this kind of property? I think this is a workaround until they can do it officially. --Jeff On Thu, Dec 3, 2009 at 10:39 AM, Toby Reyelts to...@google.com wrote: Yes, I totally agree that the current official way of checking for App

Re: [appengine-java] Why no GAE system property?

2009-12-03 Thread Jeff Schnitzer
On Thu, Dec 3, 2009 at 10:46 AM, Jeffrey Goetsch jeffg@gmail.com wrote: Could you create a Servlet that is loaded on launch, and set this kind of property?  I think this is a workaround until they can do it officially. I can't - remember this is in a library, so I would have to force all

Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-12-03 Thread Max Ross (Google)
Vince, As a workaround, try setting the missing environment attribute explicitly before you add the task to the queue: ApiProxy.getCurrentEnvironment().getAttributes().put(com.google.appengine.server_url_key, http://localhost:8080;); This should only be necessary for tasks that are added when

Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-12-03 Thread Vince Bonfanti
That fixed it. Thanks. Vince On Thu, Dec 3, 2009 at 2:24 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Vince, As a workaround, try setting the missing environment attribute explicitly before you add the task to the queue:

Re: [appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-12-03 Thread Max Ross (Google)
Sure, sorry for the trouble, and thanks for trying out the prerelease! Max On Thu, Dec 3, 2009 at 12:12 PM, Vince Bonfanti vbonfa...@gmail.com wrote: That fixed it. Thanks. Vince On Thu, Dec 3, 2009 at 2:24 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com

[appengine-java] Re: Datastore Statistics vs. Quota

2009-12-03 Thread Peter Recore
The datastore stats aren't real time as far as I know. So part of the discrepancy might be new entities created after the stats were generated? On Dec 3, 4:19 am, Toby tobias.ro...@sunnymail.mobi wrote: Hello, I just discovered the DataStore statistics.  That is a great thing! I got a

[appengine-java] Re: Java heap size

2009-12-03 Thread Philippe Marschall
On Dec 3, 4:51 am, jacek.ambroziak jacek.ambroz...@gmail.com wrote: My application, an XML search engine, likes to manipulate its index data structures in memory during indexing. Searches are naturally much faster too when index data structures are in the heap. Unfortunately, I started

[appengine-java] TimeZone

2009-12-03 Thread Nour Ahmed
Can anyone help me to know how to configure the Timezone in the web application that i run localy on my mmachine? 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

[appengine-java] Development Console - Datastore

2009-12-03 Thread Ian R.
I am entering data progamatically into the datastore but it is not showing up in the development console. It appears that the data is being entered since I am not seeing any errors when the makePersistent () method is called. -- You received this message because you are subscribed to the Google

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-03 Thread bryce cottam
Okay, sorry for the delay, I haven't been able to focus on this for a few days. here is the full (including the jar libararies in case there is an issue with them). http://www.resmarksystems.com/code/JdoTest.zip It's a very simple Servlet, by hitting the url hostname/jdotest you should execute

[appengine-java] Re: TimeZone

2009-12-03 Thread m seleron
Hi, It is likely to possibly solve it by this. Please refer to the following links. http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html?page=3 The page in the back and forth might be also related. thanks. On 12月4日, 午前4:08, Nour Ahmed salahtimes...@googlemail.com wrote: Can anyone

[appengine-java] Re: App Engine SDK 1.2.8 released including new Admin Console features

2009-12-03 Thread Peter Recore
I was just looking at the release notes linked to by the App Engine Blog post about this and I couldn't find any detail about the Improved java compatibility stuff. Is there another version of the release notes with more detail? The release notes linked to in the blog post were these:

[appengine-java] Re: App Engine SDK 1.2.8 released including new Admin Console features

2009-12-03 Thread Peter Recore
Found a better link for us java types: http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes On Dec 3, 10:18 pm, Peter Recore peterrec...@gmail.com wrote: I was just looking at the release notes linked to by the App Engine Blog post about this and I couldn't find any detail

[appengine-java] Usage of maps/google earth

2009-12-03 Thread Avis developer
Hi, Am doing a project on GPS plotting in appengine.. So can you help me with it. I am from India, so still Google Street is not possible, can you guys help with me it, anybody doing a related project pls help me..; I nedd help in mapping services, pl ur help wil be greatly appreciated.. --

[appengine-java] Re: Collections usge in Appengine Java

2009-12-03 Thread Avis developer
Sir thanks for the reply , but pl help me sir, am jus a beginner, can u pls be elaborate, thanks for spending ur time and effort -- 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] DataStore Total Size Limit?

2009-12-03 Thread Seth
Hello, Is there any limit to the total size of data we can store in the DataStore? I know we can purchase more storage, but wondering if there's a hard limit. Thanks! Seth -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this

Re: [google-appengine] DataStore Total Size Limit?

2009-12-03 Thread Nick Johnson (Google)
Hi Seth, There's no hard limit on the amount of datastore storage you can consume, as long as you have the budget to pay for it. -Nick Johnson On Thu, Dec 3, 2009 at 9:02 AM, Seth sethl...@gmail.com wrote: Hello, Is there any limit to the total size of data we can store in the DataStore?

Re: [google-appengine] Stuck Index

2009-12-03 Thread Nick Johnson (Google)
Hi Prashant, The time taken to build an index depends more on the indexes in the queue ahead of yours than the size of your index. Index building may take up to 12-24 hours at busy times. -Nick Johnson On Wed, Dec 2, 2009 at 8:56 PM, Prashant antsh...@gmail.com wrote: It's more than an hr.

[google-appengine] Re: DataStore Total Size Limit?

2009-12-03 Thread Seth
Aloha Nick There's no hard limit on the amount of datastore storage you can consume, as long as you have the budget to pay for it. Great news! I appreciate the quick and helpful reply. Looking forward to trying it out, Seth -- You received this message because you are subscribed to the

Re: [google-appengine] Jaiku code and exploding indexes

2009-12-03 Thread Nick Johnson (Google)
Hi Carlos, An index such as this on a single list property is not 'exploding' - the number of index rows will be equal to the number of list entries. Exploding indexes occur when you index two or more list properties, or the same one twice. -Nick Johnson On Wed, Dec 2, 2009 at 6:13 PM, Carlos

[google-appengine] Re: gql not giving full result set

2009-12-03 Thread Dinesh Varadharajan
Ikai, Thanks for checking that out. We already exported and imported close to 1 million records to make it work again. we left a sample set of data for google to reproduce the issue. However we are concerned about this bug being fixed and if possible when it was fixed, since this had been

Re: [google-appengine] Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread Niklas Rosencrantz
On Wed, Dec 2, 2009 at 11:51 PM, samwyse samw...@gmail.com wrote: I'd like to host Hg or something someplace with better uptime than my home server. There's Rietveld Code Review for Subversion svn which syncs to hg http://code.google.com/p/rietveld/ I too look for good hg handling, somewhat

[google-appengine] Re: Continuing HTTPErrr 302 when using remote_api after a 200 transactions - need to re-use connection handles

2009-12-03 Thread Tim Hoffman
Hi Ikai I am using remote_api called from within plone. Because I could potentially get multiple concurrent calls from plone to push content I was creating a new connection (requiring new authentication ) on each request to push content from plone to app engine. Unfortunately when I started

[google-appengine] Single Column Indexing

2009-12-03 Thread vivpuri
If you disable indexing(via indexed=False) on a model class properties, and enable it again by removing the indexed=False, do all the entities for that property get indexed again? If not, what is the way to get that property indexed, since you cannot really specify single column index in the

Re: [google-appengine] Single Column Indexing

2009-12-03 Thread Paul Kinlan
Hi, I am pretty sure the only way to do it is to get every entity and put them back into the datastore. This will ensure that the entity is saved. P 2009/12/3 vivpuri v...@vivekpuri.com If you disable indexing(via indexed=False) on a model class properties, and enable it again by removing

[google-appengine] Re: Multiple datastores or share datastore in one app

2009-12-03 Thread Roy
In an RDBMS world you would actually create a schema for each team, not a full database (unless you have a morbid need to drive your sysadmin to an early grave). I did make a feature request for this, but you know how it is with GAE feature requests. If you're using LLAPI, there is actually a

[google-appengine] Re: Multiple datastores or share datastore in one app

2009-12-03 Thread andreas_b
So I've spent some time now reading more about the datastore and I find it hard to get a complete picture about how it works from the gae docs and articles. In my case, I must make sure there is some implicit isolation of the different team's data. So after reading more about entity groups, it

[google-appengine] Re: Multiple datastores or share datastore in one app

2009-12-03 Thread andreas_b
I chose the wrong wording in my original post. I didn't mean actual full databases, but something like a schema yes. Have a lot to learn when it comes to efficient database usage in any case :-). Actually I'm not using the LLAPI for portability reasons. I don't want to build too many dependencies

[google-appengine] how many index

2009-12-03 Thread alf
How many indexes can I create in a application? I hope create more than 100 kinds and probably more than one index per king there are any limit? thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

Re: [google-appengine] Re: Multiple datastores or share datastore in one app

2009-12-03 Thread Robert Kluin
Andreas, I have a very similar application. It tracks a league's season, team, player, and game scores / statistics. I needed to have isolation between leagues and within leagues between seasons, teams, players. Basically the approach I settled on was adding a league and season property to

Re: [google-appengine] Google Dashboard System Status page link ---server error 500

2009-12-03 Thread Jon McAlister
Yep, I see what you mean, looking into it. Thanks for the report. On Wed, Dec 2, 2009 at 10:55 PM, oldcomputer computer...@yahoo.com wrote: says report,, gives server 500 error at system status page -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] @Lob

2009-12-03 Thread HKHAIRANE
Hey everyBody, i try to persist my video 1MB with @Lob , this doesn't persist my field in my Class VideoSequence otherwise all other fiels are saved in database, the code is: @Entity public class VideoSequence implements Serializable { private static final long serialVersionUID = 1L;

Re: [google-appengine] Google Dashboard System Status page link ---server error 500

2009-12-03 Thread Jon McAlister
Fixed now. Apologies for the outage. On Thu, Dec 3, 2009 at 8:29 AM, Jon McAlister jon...@google.com wrote: Yep, I see what you mean, looking into it. Thanks for the report. On Wed, Dec 2, 2009 at 10:55 PM, oldcomputer computer...@yahoo.com wrote: says report,, gives server 500 error at

[google-appengine] Creating a generated key with an ancestor in JPA

2009-12-03 Thread markm208
Hello, I am trying to create an auto-generated key with an ancestor. I can see how to do it at the low level in python but I want to do it in java with JPA. Can anyone point me to an example? -- You received this message because you are subscribed to the Google Groups Google App Engine group.

[google-appengine] Re: gql not giving full result set

2009-12-03 Thread Johann C. Rocholl
My previous response to this thread is not showing up on Google Groups, sorry if this is a double post. I think I'm seeing the same problem, and I made a simple page to reproduce it. My App ID is scoretool, and the test page is at /dns/ test/ on the appspot domain for my App ID. I'm not including

[google-appengine] Re: gql not giving full result set

2009-12-03 Thread Johann C. Rocholl
I think I'm seeing the same problem. I have recently (in the last 3 days) added descending indexes on __key__ for two models, and they should return very similar entries because for each domains_domain model instance, there should be a dns_lookup instance. It works okay for __key__ ascending and

[google-appengine] Any ZK Users on Google App Engine

2009-12-03 Thread rsft rsft
I had developed a Google App Engine application using the ZK Ajax framework. Everything is good, however I did notice some performance issues and I suspect that it could be due to the fact that a lot of rendering is done on the Server side. For instance when a browser make an initial request to

Re: [google-appengine] Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread lior harsat
you can try unfuddle. On Thu, Dec 3, 2009 at 1:51 AM, samwyse samw...@gmail.com wrote: I'd like to host Hg or something someplace with better uptime than my home server. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this

[google-appengine] Re: Empty value of a Key field

2009-12-03 Thread Henry
The method which I have to retrieve the information of and announcer is this one... private Announcer getAnnouncerFromEmailAddress(String emailAddress) throws UnknownUserException { Announcer announcerLoaded = null; // Creating a PersistentManager to interact with

Re: [google-appengine] Re: Continuing HTTPErrr 302 when using remote_api after a 200 transactions - need to re-use connection handles

2009-12-03 Thread Ikai L (Google)
Tim, Ah, great find. If I'm to understand you correctly, you were using a different process off App Engine to log into App Engine, hitting the login page N times in a span of M minutes. This resulted in you not being able to authenticate anymore, but after you cached the auth cookie, it started

[google-appengine] Re: Datastore is slow on queries involving many entities, but a smallish dataset

2009-12-03 Thread Julian Namaro
Eric, Sorry my previous answer was wrong. The query time increases with the number of entities fetched faster than I thought. From a small benchmark in Python average time for your query is 150-200ms. This is for fetching 130 entities of about 400 bytes, with 5 properties each, using an

[google-appengine] Query with key range and a composite index

2009-12-03 Thread n...@apption.com
I'm trying to perform a query on multiple properties of an entity, as well as a key range. I have been testing the system with only 1 or 2 properties, and a key range on some of the queries. The time for the queries seem to be very dependent on whether or not there is a key range when using a

Re: [google-appengine] Re: Multiple datastores or share datastore in one app

2009-12-03 Thread Ikai L (Google)
Andreas, The datastore provides virtually no security mechanisms for data partitioning within the same application. The responsibility for access control belongs in your application layer. On Thu, Dec 3, 2009 at 8:28 AM, Robert Kluin robert.kl...@gmail.com wrote: Andreas, I have a very

Re: [google-appengine] @Lob

2009-12-03 Thread Ikai L (Google)
Have you looked into using com.google.appengine.api.datastore.Blob? http://code.google.com/appengine/docs/java/datastore/dataclasses.html http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Blob.html On Thu, Dec 3, 2009 at 9:46 AM, HKHAIRANE

Re: [google-appengine] Re: Weird memcached issue

2009-12-03 Thread Ikai L (Google)
Is there an error message when you try to store data? Do you see any information in the logs? On Wed, Dec 2, 2009 at 5:49 PM, naan kaz...@gmail.com wrote: My app id is echofonsync and the issue remains. I can get a result from memcache.get_stats() now, but can not store new data. Thanks. On

Re: [google-appengine] Re: Weird memcached issue

2009-12-03 Thread Ikai L (Google)
We've just tried this and it seems to work for us. What are you storing in Memcache? How are you generating the keys? On Thu, Dec 3, 2009 at 10:31 AM, Ikai L (Google) ika...@google.com wrote: Is there an error message when you try to store data? Do you see any information in the logs? On

Re: [google-appengine] Re: Request was aborted after waiting too long...

2009-12-03 Thread Ikai L (Google)
Mark, Yes, it should take roughly the same amount of time. Do you notice that it's more likely to happen at certain times of the day rather than others? On Wed, Dec 2, 2009 at 12:49 PM, Mark markrobertdav...@gmail.com wrote: I am using BlazeDS - a remoting service for Flex. I guess it takes a

[google-appengine] Re: Weird memcached issue

2009-12-03 Thread naan
I'm using memcache.set_multi() / add_multi() for caching DataStore data. Code is something like following: users = User.all().query().fetch(...) mapping = {} for u in users: mapping[str(u.key())] = u memcache.set_multi(mapping, namespace='synccache') It seems that

Re: [google-appengine] Re: Weird memcached issue

2009-12-03 Thread Ikai L (Google)
This is a typo: for key in cached_mapping: println(self, str(obj_map[key])) Should be: for key in cached_mapping: println(self, str(cached_mapping[key])) This is tested and working for me. On Thu, Dec 3, 2009 at 12:04 PM, Ikai L (Google) ika...@google.com wrote: What is

Re: [google-appengine] Re: Weird memcached issue

2009-12-03 Thread Ikai L (Google)
What is being returned by get_multi? None or empty dictionary? Is a namespace being specified? Here's some test code that is working for me when deployed. What might you be doing differently from this? from google.appengine.ext import webapp from google.appengine.ext.webapp.util import

[google-appengine] django running xp problem

2009-12-03 Thread alexarsh
I have OSX machine running django app with appengine launcher and a wirtual machine with windows XP running the same app. The problem is that I have 2 XP machines where I get: No module named urls. What can be the problem? Maybe some system variables? The code is exactly the same. Regards,

[google-appengine] Re: Weird memcached issue

2009-12-03 Thread naan
'users' are array, which is a result of DataStore fetch as I describe above. Not a dict. The code converts users array into memcacheable dict. Note that same code works fine on my test GAE instance. On Dec 3, 12:15 pm, Ikai L (Google) ika...@google.com wrote: This is a typo:     for key in

[google-appengine] Re: Concern about deploying real applications on Google AppEng

2009-12-03 Thread Jake
One simple but less-than-ideal solution is to setup a light weight reverse http proxy on a server that has a non-blacklisted ip, but has no restrictions when connecting to GAE. This would definately work, but there are two major disadvantages: 1. You pay for the 3x the bandwidth. Going into the

[google-appengine] Re: Weird memcached issue

2009-12-03 Thread naan
I try to store 100 users object per request. memcache.set_multi seems working (return an empty array which means all data stored successfully), but get_multi returns only 9-15 of them. It worked yesterday morning, then stopped working afternoon. it seems that I can't store new user data into

Re: [google-appengine] Re: Weird memcached issue

2009-12-03 Thread Ikai L (Google)
Are you doing the get_multi and set_multi within the same request, or are the items disappearing afterwards? There's a 100mb limit to the number of items you can be storing in Memcache, but I'm not sure this is what you're hitting - the least recently used objects would be getting expired. What

[google-appengine] Question on using TextProperty()

2009-12-03 Thread Charlie
I am new to using Google App Engine and am having trouble with textproperty(). How do I keep the formatting when someone submits something? example: Directions: 1.Turn left 2. Turn right 3. Go straight Then I submit, and when I view it on the page, it turns out like this. Directions: 1.Turn

[google-appengine] Re: Weird memcached issue

2009-12-03 Thread naan
No, they are not in the same request. get_multi is called within 5 minutes after set_multi is called. User object is firly small (less than 1k) and total number of items in memcache is less than 50k, so it won't be more than 100MB. User object contains strings, integers and integer list. No blobs,

Re: [google-appengine] Received ClassNotFoundException deserializing a byte array.

2009-12-03 Thread Ikai L (Google)
What does the class you are trying to persist look like? On Wed, Dec 2, 2009 at 1:23 AM, bartatamas bartata...@gmail.com wrote: Hi! I've deployed a new version of my web application and it doesn't work now because of this exception: Uncaught exception from servlet Received

[google-appengine] Re: Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread samwyse
That's exactly what I want. (How did I miss it?) Thanks! On Dec 3, 5:11 am, Stephen sdea...@gmail.com wrote: On Dec 2, 11:51 pm, samwyse samw...@gmail.com wrote: I'd like to host Hg or something someplace with better uptime than my home server.

[google-appengine] Re: Help with an accurate counter with no contention...?

2009-12-03 Thread Consultuning
The crux of the matter here is that you're requiring two things that seem to be contradictory. You can have accuracy at the expense of contention, and the only way of avoiding contention completely is at the expense of accuracy. I don't have a theoretical proof of this on hand, but in the general

Re: [google-appengine] Question on using TextProperty()

2009-12-03 Thread Robert Kluin
Just a guess here, but try wrapping the contents in a pre tag. Probably they newlines are not getting displayed by the browser, have you viewed source to see if they are there? print 'pre%s/pre' % mymodel.directions Robert On Thu, Dec 3, 2009 at 2:52 PM, Charlie trick...@gmail.com wrote: I

Re: [google-appengine] Re: Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread Robert Kluin
There is someone doing improvements and bug fixes to mercurial_appengine on bitbucket: http://bitbucket.org/durin42/mercurial-appengine/ Robert On Thu, Dec 3, 2009 at 5:23 PM, samwyse samw...@gmail.com wrote: That's exactly what I want. (How did I miss it?) Thanks! On Dec 3, 5:11 am,

[google-appengine] Re: Continuing HTTPErrr 302 when using remote_api after a 200 transactions - need to re-use connection handles

2009-12-03 Thread Tim Hoffman
Hi Ikai Not exactly I am using this to connect to the remote_api def connect(appid,auth_func,host): remote_api_stub.ConfigureRemoteDatastore(appid, '/remote_api', auth_func, host) Its seems you never get a handle back on which you make the call, it just hooks up the remote data store under

[google-appengine] Re: Weird memcached issue

2009-12-03 Thread naan
Hi, I tried several different way, but still can't get it work appropriately. First, I flush cache, no luck. Second, not using namespace, no luck. Then I wrote a simple loop which fetch users object from DataStore and store them to memcache which isn't related any other codes. The code fetches

Re: [google-appengine] Question on using TextProperty()

2009-12-03 Thread OvermindDL1
On Thu, Dec 3, 2009 at 4:58 PM, Robert Kluin robert.kl...@gmail.com wrote: Just a guess here, but try wrapping the contents in a pre tag.  Probably they newlines are not getting displayed by the browser, have you viewed source to see if they are there? print 'pre%s/pre' % mymodel.directions

[google-appengine] Re: Question on using TextProperty()

2009-12-03 Thread Charlie
Thanks guys. That seemed to work! On Dec 3, 5:49 pm, OvermindDL1 overmind...@gmail.com wrote: On Thu, Dec 3, 2009 at 4:58 PM, Robert Kluin robert.kl...@gmail.com wrote: Just a guess here, but try wrapping the contents in a pre tag.  Probably they newlines are not getting displayed by the

[google-appengine] Re: Has anyone done a source code control system hosted on App Engine?

2009-12-03 Thread johntray
I recommend http://www.projectlocker.com/ On Dec 3, 5:23 pm, samwyse samw...@gmail.com wrote: That's exactly what I want.  (How did I miss it?)  Thanks! On Dec 3, 5:11 am, Stephen sdea...@gmail.com wrote: On Dec 2, 11:51 pm, samwyse samw...@gmail.com wrote: I'd like to host Hg or

[google-appengine] Re: django running xp problem

2009-12-03 Thread A Hampton
In your settings.py file, what is your ROOT_URLCONF defined as? Is it ROOT_URLCONF = 'urls'? If so, make sure the urls file is not missing. It should be in the same folder as the settings file. If the ROOT_URLCONF= 'yourprojectname.urls', remove 'yourprojectname' - whatever it may be - and then