[google-appengine] Re: Datastore statistics not available

2009-10-23 Thread Kenneth

I'm seeing this too on one of my apps, appid is EasySchoolAdmin.

As discussed here:
http://groups.google.com/group/google-appengine/browse_thread/thread/57e32b6cab63608b#

Thanks,
Kenneth

On Oct 23, 1:56 am, Tim Hoffman  wrote:
> Hi Jeff
>
> I sent the appid to you direct.
> We are a way off going live.
>
> Thanks
>
> Tim
>
> On Oct 23, 8:26 am, "Jeff S (Google)"  wrote:
>
>
>
> > Hi Tim,
>
> > Ah I see, would you mind telling me your app ID? I'd like to look into this
> > to make sure there isn't some other reason.
>
> > Thank you,
>
> > Jeff
>
> > On Thu, Oct 22, 2009 at 4:07 PM, Tim Hoffman  wrote:
>
> > > HI Jeff
>
> > > I am in the same boat, only a few thousand entities, but about 30
> > > models
> > > and a few are very big (lots of properties) and I haven't got any
> > > statistics
> > > yet.  (The app has been deployed for 3 days) I assume I blowing out
> > > your 100KB
> > > limit.
>
> > > T
>
> > > On Oct 22, 4:32 am, "Jeff S (Google)"  wrote:
> > > > Hi nasim,
> > > > I'm wondering if the issue is that the datastore stats for this app 
> > > > would
> > > > require more space than is currently supported (100KB)
>
> > > >http://code.google.com/appengine/kb/adminconsole.html#datastore_stats
>
> > > > We're currently investigating this issue and we might be raising the
> > > stats
> > > > size limit or making some other changes. Apologies for the 
> > > > inconvenience.
>
> > > > Thank you,
>
> > > > Jeff
>
> > > > On Tue, Oct 20, 2009 at 7:19 AM, nasim  wrote:
>
> > > > > It's been a while that datastore statistics has been introduced. All
> > > > > my apps have this admin view except one. The app id is dhadharu. Could
> > > > > it be enabled, please?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: db.allocate_ids

2009-10-23 Thread Nick Johnson (Google)
On Thu, Oct 22, 2009 at 4:33 PM, ryan baldwin  wrote:

> How is this affected when you copy your data from 1 app to another (say,
> PROD app to an internal UAT version of the app)?
>

Well, since you're copying data and not allocating IDs, the ID counters
remain unchanged. Currently, you'll need to call allocate_ids in the
destination app to ensure IDs that already exist in your data aren't
overwritten again. In future, the bulkloader may do this for you.

-Nick Johnson


> Thanks.
>
> - ryan.
>
>
> On Thu, Oct 22, 2009 at 6:35 AM, Nick Johnson (Google) <
> nick.john...@google.com> wrote:
>
>> Hi Ryan,
>> IDs allocated with allocate_ids will never be reused - the functionality
>> is equivalent to the numbering for auto-generated IDs on entities.
>>
>> -Nick Johnson
>>
>>
>> On Wed, Oct 21, 2009 at 9:47 PM, ryan baldwin wrote:
>>
>>> How long are id's reserved for when using db.allocate_ids? Forever? 60
>>> seconds? Until I eat all of my dinner including my vegetables?
>>> Thanks.
>>>
>>> - ryan.
>>>
>>>
>>>
>>
>>
>> --
>> Nick Johnson, Developer Programs Engineer, App Engine
>> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
>> 368047
>>
>>
>>
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] DeadlineExceededError is rampant again

2009-10-23 Thread Jason C

AppID: kikundi-demo

We are getting many, many DeadlineExceededErrors again. In fact, it's
basically unusable during our end-of-sprint demo. (8:45a Friday
morning).

Google, please help!
j
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] creating Word and Excel docs

2009-10-23 Thread Houston startup coder

I need to allow my users to export into Word and Excel formats from my
GAE app, and I know Apache POI is not supported.  So, I'm trying to
figure out how to avoid running a server elsewhere whose sole purpose
is generating Word and Excel documents based on data in my GAE
datastore.

Google Docs seems like a good fit, so would it work to use the API to
create documents there from my App Engine code and then export the
created docs and pull them for storage in my App Engine datastore so
that my users can download them whenever I want?  Or do you foresee
roadblocks to this, e.g. some sort of limit on the number of Google
Docs my GAE app can create even if they're temporary files that are
immediately deleted?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: orphaned app - no access - seriously

2009-10-23 Thread Bassil Karam

Can anyone from Google un-orphan my account?



On Mon, Oct 19, 2009 at 11:22 AM, Bassil Karam  wrote:
> That's interesting, I wonder what the proper solution to stuff like this is.
> For example, what should Google do if someone decided to delete an account
> that is associated with a service like App Engine? Should they:
>
> Disallow the deletion of an account until it is completely dis-associated
> with any Google services? Would be good, but it also seems like it would be
> technically challenging because the services seem to be very separate from
> each other, with their own sub-systems and ways of managing accounts.
> Delete all services associated with the account? This will just cause lots
> of anger as entire web presences are wiped out because someone accidentally
> deleted the wrong account.
> Automatically re-associate orphaned services with functional admin accounts?
> Seems good, but what if its not an apps account? What if there isn;t another
> obvious account to associate it with? What happens if it's not an apps
> account but a lone regular google account?
>
> Its a complex issue but the current hodge-podge patch-work solution
> of disallowing people from easily adding / deleting / editing / merging
> accounts, except in some cases, but not others - as well as, not being able
> to *ever* retrieve previously used accounts - or the bifurcation of Apps
> accounts and standard google accounts - is seriously not working. A huge,
> top-down re-factoring of all the systems is needed to fix all these issues.
> I hope it is in the works.
> Baz
>
>
> On Mon, Oct 19, 2009 at 11:02 AM, johnP  wrote:
>>
>> Don't have a solution - but had a similar experience.
>>
>> I used my appengine credentials as the admin login to a newly created
>> Apps account.  As soon as I did this, I was unable to login to
>> Appengine (got an error - you will are being redirected in a way that
>> will never complete).  So when I deleted the user from the Apps
>> account - I was able to re-access my Appengine account.
>>
>> I think that's the opposite of what happened to you... So I don't know
>> what to suggest in your case.
>>
>> johnP
>>
>>
>>
>> On Oct 19, 10:26 am, Bassil Karam  wrote:
>> > We have an Apps account in which we created the user ad...@mydomain.com.
>> > We
>> > then used that account to create an App Engine application. A little
>> > while
>> > later, we deleted ad...@mydomain.com and replaced it with a couple of
>> > user-sepcific administrator accounts like b...@mydomain.com and
>> > s...@mydomain.com (both admins). The problem is now we can't seem to
>> > access
>> > our App Engine application - I am assuming because it is related to the
>> > now
>> > non-existent ad...@mydomain.com account. We tried to re-create
>> > ad...@mydomain.com, but Apps doesn't let you re-create recently deleted
>> > accounts. So as it stands, I believe my App Engine account is orphaned,
>> > without any possibility for access.
>> >
>> > Anyone know of a solution tot his?
>> >
>> > 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 google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Somebody should clean up Application Gallery from irrelevant Applications

2009-10-23 Thread nickmilon

Somebody should clean up   Application Gallery from irrelevant
Applications, so it is not misleading the readers.

For example  :  
http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEgxBcHBsaWNhdGlvbnMY2Z4TDA
Cloud SMS  at http://freesms.cloudapp.net
which clearly states on their landing page that :  "The website is
hosted in Windows Azure,Microsoft Cloud Computing Platform."
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Cannot add more apps to account

2009-10-23 Thread Cynthia Kurtz

Update: I decided to try the SMS thing, so I dug out my cell phone and
put the number in. Wouldn't have mattered! It said "The phone number
has been sent too many messages or has already been used to confirm an
account."

So then I tried filling out the SMS issues form. It said "there were
errors" in the Comments field, which disappeared, so I'm not sure
whether they got the message or not. I mentioned this thread. Then I
tried one more time to fill out the form and it SEEMED to go through.
We will see.

Sigh. This issue is making GAE VERY difficult to use, at least for me,
and it appears, anyone else who has used a Google Apps account.
Perhaps the documentation should make it more clear that using a
Google Apps account to map your URL is *more trouble than it's
worth* !

Cynthia Kurtz

On Oct 21, 2:01 am, ephemeron  wrote:
> This is the exact issue I'm having.  Help us google!
>
> Thanks,
> -Ian
>
> On Oct 20, 7:32 pm, Tino  wrote:
>
> > Hey, Google, please fix that.  This is serious, as it seems several
> > users have a similar problem!
>
> > After registering your first application using your Google apps for
> > domain account, you have 10 applications remaining.
> > But you cannot create a second app without burning another phone
> > number.
> > (That is you usehttps://appengine.google.com/a// to go
> > to the dashboard)
>
> > After registering your first application using your Google account,
> > you have 9 applications remaining.
> > But you can create a second app happily without need for another SMS.
> > (That is you usehttps://appengine.google.com/togo to the dashboard)
>
> > This means:
>
> > It looks like there is a serious bug in GAE, such that it burns a
> > phone number for each application request, iff you use a Google apps
> > for domain account when registering.
> > However that probably means, you can create as many applications as
> > you have different phone numbers available, perhaps by asking your
> > parents and friends ;)
>
> > BTW (pun intended): Isn't it evil to burn a phone number on each app
> > registration?
>
> > -Tino
> > PS: Perhaps look into the phone number records (from sending the SMS
> > and preventing re-use) and if there are some which have no proper
> > account associated you have your candidates.  (If you miss such a
> > relation, you get an A+ in protecting privacy, but an F- for debugging
> > skills because it's beta, right?)
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] AttributeError _key again? Seeing this again. Any ideas?

2009-10-23 Thread bvelasquez

#

   1.
  10-22 03:41PM 17.934 /action/delete/
agdqYWNvYi02cg0LEgZBY3Rpb24Y5UcM 500 595ms 787cpu_ms 651api_cpu_ms 0kb
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 GTB5,gzip(gfe),gzip(gfe)
  See details

  12.104.144.2 - - [22/Oct/2009:15:41:18 -0700] "POST /action/
delete/agdqYWNvYi02cg0LEgZBY3Rpb24Y5UcM HTTP/1.1" 500 614 "http://
www.jacobsix.com/view/project/agdqYWNvYi02cg4LEgdQcm9qZWN0GIUQDA"
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3)
Gecko/20090824 Firefox/3.5.3 GTB5,gzip(gfe),gzip(gfe)"
"www.jacobsix.com"

   2.
  E 10-22 03:41PM 18.524

  AttributeError

   3.
  E 10-22 03:41PM 18.524

  _key

   4.
  E 10-22 03:41PM 18.524

  _key

   5.
  E 10-22 03:41PM 18.524

  Traceback (most recent call last):
File "/base/data/home/apps/jacob-6/7-0.337222378975216791/gaeo/
dispatch/dispatcher.py", line 163, in dispatch
  action()
File "/base/data/home/apps/jacob-6/7-0.337222378975216791/
application/controller/action.py", line 315, in delete
  queue_helper.post_audit(self.user, action.project,
ACTIVITY_ACTION_DELETED, action, action.summary)
File "/base/data/home/apps/jacob-6/7-0.337222378975216791/libs/
queue_helper.py", line 75, in post_audit
  'value_key' : str(data.key()),
File "/base/python_lib/versions/1/google/appengine/ext/db/
__init__.py", line 740, in key
  elif self._key:
File "/base/data/home/apps/jacob-6/7-0.337222378975216791/gaeo/
model/__init__.py", line 142, in __getattr__
  raise AttributeError, name
  AttributeError: _key


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: How does The Python datastore select the class for an entity (or: swapping classes through the datastore)?

2009-10-23 Thread Rafe

  Yes, you can rename the kind of a class.  Just make sure that any
non-class bound GQL you have written are adjusted.  In other words,
where you have used db.gql vs. db.Model.gql.

On Oct 22, 10:52 am, gae123  wrote:
> NickandRafe,
>
> this is great to know. Am I correct to assume that this gives us an
> easy way to rename classes? Let's say I had this:
>
> class Foo(db.Model):
> 
>
> and want to rename it to Bar in my code but I have an app already
> running with lots of data. I can just say:
>
> class Bar(db.Model):
>     �...@classmethod
>      def kind(cls):
>           return 'Foo'
>
>      ...
>
> 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 google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 'module' object has no attribute 'Message'

2009-10-23 Thread Mike P

using this code

import logging
from google.appengine.api import mail
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext.webapp import mail_handlers

class MailHandler(mail_handlers.InboundMailHandler):
  def receive(self, message):
logging.debug("it worked")


application = webapp.WSGIApplication([('/.*', MailHandler)],
 debug=True)
def main():
  logging.getLogger().setLevel(logging.DEBUG)
  run_wsgi_app(application)
if __name__ == "__main__":
  main()


I get this error


'module' object has no attribute 'Message'
Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 509, in __call__
handler.post(*groups)
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/
mail_handlers.py", line 58, in post
self.receive(mail.InboundEmailMessage(self.request.body))
  File "/base/python_lib/versions/1/google/appengine/api/mail.py",
line 525, in __init__
mime_message = _parse_mime_message(mime_message)
  File "/base/python_lib/versions/1/google/appengine/api/mail.py",
line 206, in _parse_mime_message
if isinstance(mime_message, email.Message.Message):
AttributeError: 'module' object has no attribute 'Message'


Can anybody help?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Logging in with Google Apps account

2009-10-23 Thread Matt

>From the end user perspective, is there any way to login to a appspot
app using a Google Apps (hosted domain) account?
I can add an app to my domain using the control panel, but I can't
actually login when I visit the .appspot.com URL.
It is a real PITA how Google decided that Google Apps accounts weren't
Google accounts. And they won't listen to their users and fix that.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] redirect to external page

2009-10-23 Thread akuchlous

I am using a development server on my machine.

I want to redirect anything like:

http://localhost.8080/abcd

to

www.google.com

This does not seem to work:

class Goto(webapp.RequestHandler):
   def get(self, url):
 googUrl = "www.google.com"
 self.redirect(googUrl, permanent=True)

application = webapp.WSGIApplication(
   [('/', MainPage),
(r'/(.*)',Goto)],



If i type in address bar:
http://localhost:8080/abcd

then I should be redirected to www.google.com

but right now I get redirect to
http://localhost:8080/www.google.com

how can i solve it?


Thanks
Ankur K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Google App No Longer Loads And Nothing Was Changed

2009-10-23 Thread Erik Vold

static.evold.ca (aka evold-static.appspot.com) used to display a
simple html page, and nothing has been changed in the last 2 days, but
this no longer works?? what could be wrong??


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] "Scanning files on local disk"

2009-10-23 Thread Terje Dahl

Every time I uppload to appengine, the script first does:

Scanning files on local disk.
Scanned 500 files.
Scanned 1000 files.
Scanned 1500 files.
Scanned 2000 files.
Scanned 2500 files.
Scanned 3000 files.
Scanned 3500 files.
Scanned 4000 files.


Is there some way to find out:
a. What/where all these scanned files are?
b. Tell the script where/what to scan and not scan?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Changing default encryption policy of GAE

2009-10-23 Thread GoSharp Lite

Hi All,

My webapp works on my notebook and can handle encryption/decryption
with higher strength keys.

This is possible because I have downloaded the Java Cryptography
Extension (JCE) Unlimited Strength Jurisdiction Policy Files. And
installed these Policy Files in my notebook.

Unluckily GAE seems to have the default policy setting of Java, and
not capable of handling encryption/decryption with higher strength
keys.

The max allowed key length is only 128 with transformation shown
below.
int keyLenght = Cipher.getMaxAllowedKeyLength("AES/CBC/PKCS5Padding");

I am trying to cross over from C# to Java. My program is ready but
can't figure out how to change encryption policy of GAE.

Anyone has a solution to this issue?

Regards,
GoSharpLite

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] JSP code deployment error

2009-10-23 Thread prasad prabhu
Hi
 I am not able to deploy the jsp code.I am getting the following error.

Compiling module guestbook.Guestbook
   Compiling 6 permutations
  Permutation compile succeeded
   Linking into C:\Documents and Settings\prasad\Eclipse-
Workspace\Guestbook\war
  Link succeeded
   Compilation succeeded -- 48.765s
Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Compiling java files.
com.google.appengine.tools.admin.JspCompilationException: Failed to 
compile the generated JSP java files.
23-Oct-2009 22:33:48 org.apache.jasper.JspC processFile
INFO: Built File: \Guestbook.jsp
java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Error while executing: C:\Program Files\Java\jre1.6.0_07\bin\javac.exe 
-classpath /C:/Program 
Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-api-
labs.jar;/C:/Program 
Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-api-
stubs.jar;/C:/Program 
Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-
api.jar;/C:/Program 
Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-local-
runtime.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\appengine-local-runtime-
shared.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\geronimo-el_1.0_spec-
1.0.1.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\geronimo-jsp_2.1_spec-
1.0.1.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\geronimo-
servlet_2.5_spec-1.2.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
ant-1.6.5.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
ant-launcher-1.6.5.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
commons-el-1.0.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
commons-logging-1.1.1.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
jasper-compiler-5.0.28.jar;C:\Program 
Files\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200
910131704\appengine-java-sdk-1.2.6\lib\shared\jsp\repackaged-appengine-
jasper-runtime-
5.0.28.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\classes;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\appengine-api-1.0-sdk-
1.2.6.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\appengine-api-labs-
1.2.6.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\datanucleus-appengine-
1.0.3.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\datanucleus-core-
1.1.5.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\datanucleus-jpa-
1.1.5.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\geronimo-jpa_3.0_spec-
1.1.1.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\geronimo-jta_1.1_spec-
1.1.1.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\gwt-
servlet.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\jdo2-api-2.3-
eb.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\repackaged-appengine-ant-
1.6.5.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\repackaged-appengine-ant-launcher-
1.6.5.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\repackaged-appengine-commons-el-
1.0.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\repackaged-appengine-commons-logging-
1.1.1.jar;C:\DOCUME~1\prasad\LOCALS~1\Temp\appcfg19220.tmp\WEB-
INF\lib\repackaged-appengine-jakarta-jstl-
1.1.

[google-appengine] XMPP Message Priority

2009-10-23 Thread Benn

Does anyone know how XMPP message priority is handled in GAE? Consider
the scenario:

5000 messages queued for accou...@myapp.appspot.com being delivered at
whatever rate they are delivered at.

Another message is queued for accou...@myapp.appspot.com

Does the message for account2 sit in the queue behind the 5000
messages destined for account1? or delivered straight away?

Many thanks in advance

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Tragedy of the Commons, and Cold Starts

2009-10-23 Thread bugaco

I had a bit weird experience with this...

So I wrote app (http://analytics.bugaco.com) that runs on App Engine.
Than I looked at the request logs to see how it is running.
Request logs suggested that I'm using a lot of CPU time on hitting the
home page, but after that CPU time significantly decreases. It also
had annoying red flag suggesting that servlet is using excessive
resources and that I need to optimize it.
Testing a bit, I noticed that pinging lets app be warm, and I had cron
doing the pings for a few days; while also noticing that it does not
do anything useful

Conclusion:
1. If log files don't suggest that you are better off pinging people
would not ping
2. It is stupid that google counts warming up your app toward CPU time
(leading to profiling, that leads to pinging)
3. It is very stupid that applications can not denote 'keep this code
path warm/cache it/or something' that will allow new users not to give
up on the up until they get first response.

So, as a conclusion, I think AppEngine is AWESOME. And I also think it
SUCKS.
I love SDK, ability to deploy and test and use all the cool things.
I don't like the idea that it can not serve a (entry)page in 3-5
seconds as I think that it leaves bad taste in users mouth, and
consequently bad taste in developers mouth.

Finally, I am not sure I'll use AppEngine for developing other
applications as I'd rather go with paid hosting that provides some
level of performance on serving pages. I think Google would win a lot
of good will if they at least provide quick serving of static
resources.

One may wonder how to do that, and given that they have all those yaml
files there may be yaml file that specifies a warm static resource.
This would decrease a need for pinging your app as it would allow user
to hit entry page, and google to pre-cache app much easier.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] SSLSocket Connections from Google Java App Engine

2009-10-23 Thread ramesh

Hello All,

We would like to host a application on Google Java app engine that
performs HTTPS/Post to a SSL enabled resource with a SOAP message.
Does anyone had issues writing such a utility? I get error stating
that HttpsUrlConnection object is restricted in Google app Engine?

Thanks
Ramesh

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] XMPP

2009-10-23 Thread Benn
Hi all, i'm playing with XMPP and have gotten it to work with single
requests no problem, but when i try to test it with some load (say 1000
requests over 20 seconds) i see all the requests in the logs but it only
ever triggers the XMPP handler servlet 10 times. Has anyone else experienced
this before?

-- 
Cheers,
Benn

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: 'module' object has no attribute 'Message'

2009-10-23 Thread Rafe

  Mike,

  I was not able to duplicate the problem you are describing.  I
pasted your code directly in to a mail handling file on my test-app
and sent it an email.  In my logs it says 'It worked'.

  From the stack trace it looks like it's something that's running on
the production system.  Is it possible another part of your
application might have changed any of the email modules?

On Oct 22, 12:22 pm, Mike P  wrote:
> using this code
>
> import logging
> from google.appengine.api import mail
> from google.appengine.ext import webapp
> from google.appengine.ext.webapp.util import run_wsgi_app
> from google.appengine.ext.webapp import mail_handlers
>
> class MailHandler(mail_handlers.InboundMailHandler):
>   def receive(self, message):
>         logging.debug("it worked")
>
> application = webapp.WSGIApplication([('/.*', MailHandler)],
>                                      debug=True)
> def main():
>   logging.getLogger().setLevel(logging.DEBUG)
>   run_wsgi_app(application)
> if __name__ == "__main__":
>   main()
>
> I get this error
>
> 'module' object has no attribute 'Message'
> Traceback (most recent call last):
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> __init__.py", line 509, in __call__
>     handler.post(*groups)
>   File "/base/python_lib/versions/1/google/appengine/ext/webapp/
> mail_handlers.py", line 58, in post
>     self.receive(mail.InboundEmailMessage(self.request.body))
>   File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 525, in __init__
>     mime_message = _parse_mime_message(mime_message)
>   File "/base/python_lib/versions/1/google/appengine/api/mail.py",
> line 206, in _parse_mime_message
>     if isinstance(mime_message, email.Message.Message):
> AttributeError: 'module' object has no attribute 'Message'
>
> Can anybody help?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Newbie question about Task Queue

2009-10-23 Thread Jeff S (Google)
Hi fabrizio,

>From your description (running once ever 10 minutes) it sounds like
scheduled tasks would be the simplest solution. Another slightly crazy idea
that might work is to have the task return a non 200 code. When a task fails
it is not removed from the queue, but there may be execution scheduling
backoff behavior with this approach which would be undesirable.

Happy coding,

Jeff

On Thu, Oct 22, 2009 at 7:02 AM, fhtino  wrote:

>
> Hello,
>
> I was testing Task Queue. It works fine. :)
>
> I'd like to repeat a task many time during the day, example 1 run
> every 10 minutes.
> But when the task is executed, it's deleted from the Queue.  How can I
> run again the task? Should I use Scheduled Tasks (cron.xml) ?
>
> I've also tryed to enque a new task instance at the end of the
> execution of the task. But I don't like it.  If it crashes for some
> reason, it does not enqueue a new instance.
>
>
>   fabrizio
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: Datastore: batch delete taking a long time

2009-10-23 Thread Jeff S (Google)
Hi Jarrod,

Was the 2000ms you reported CPU time or wall clock time? There can sometimes
be additional latency triggered by bulk deletes. It is possible that since
these deletes are grouped by key that the writes for most of these deletes
may go to the same Bigtable tablet. Most datastore operations can be
executed in parallel because the data and indexes are spread out across
multiple tablets. It might also be the case that tablets are being merged
because they are shrinking in size which improves long term performance but
has some time cost due to data being moved. Were you deleting all of the
data in the app?

Thank you,

Jeff

On Wed, Oct 21, 2009 at 6:47 AM, Jarrod  wrote:

>
> For a batch delete of about 10-20 entities (with about 5 properties,
> most unindexed), I'm seeing very slow API call times. Even around
> 2000ms. The logs indicate this as a potential quota warning. I'm
> running the delete in one batch call, from a key only query of about
> 10-20 entities.
>
> Is this API response time to be expected?
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: redirect to external page

2009-10-23 Thread tttttooooodddd ddddddvnek


--- On Fri, 10/23/09, akuchlous  wrote:


   , space Goto ?                                 (r'/(.*)',Goto)],









From: akuchlous 
Subject: [google-appengine] redirect to external page
To: "Google App Engine" 
Date: Friday, October 23, 2009, 3:49 AM


I am using a development server on my machine.

I want to redirect anything like:

http://localhost.8080/abcd

to

www.google.com

This does not seem to work:

class Goto(webapp.RequestHandler):
   def get(self, url):
     googUrl = "www.google.com"
     self.redirect(googUrl, permanent=True)

application = webapp.WSGIApplication(
                                   [('/', MainPage),
                                    (r'/(.*)',Goto)],



If i type in address bar:
http://localhost:8080/abcd

then I should be redirected to www.google.com

but right now I get redirect to
http://localhost:8080/www.google.com

how can i solve it?


Thanks
Ankur K





  
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] 2 Custom Domains - 1 App

2009-10-23 Thread vivpuri

Is it possible to bind 2 custom domains to 1 app, and point 1 version
of the app to 1 domain, and the default version to the 2nd domain.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Re: JSP code deployment error

2009-10-23 Thread Roy Smith
You might be hitting this bug
http://code.google.com/p/googleappengine/issues/detail?id=2255
Strange though it sounds, "unable to compile jsp" is the symptom.



On Fri, Oct 23, 2009 at 6:03 PM, prasad prabhu wrote:

> Hi
> I am not able to deploy the jsp code.I am getting the following error.
>
> Compiling module guestbook.Guestbook
> Compiling 6 permutations
> Permutation compile succeeded
> Linking into C:Documents and SettingsprasadEclipse-
> WorkspaceGuestbookwar
> Link succeeded
> Compilation succeeded -- 48.765s
> Creating staging directory
> Scanning for jsp files.
> Compiling jsp files.
> Compiling java files.
> com.google.appengine.tools.admin.JspCompilationException: Failed to
> compile the generated JSP java files.
> 23-Oct-2009 22:33:48 org.apache.jasper.JspC processFile
> INFO: Built File: Guestbook.jsp
> java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
> Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>
> Error while executing: C:Program FilesJavajre1.6.0_07binjavac.exe
> -classpath /C:/Program
> Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-api-
> labs.jar;/C:/Program
> Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-api-
> stubs.jar;/C:/Program
> Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-
> api.jar;/C:/Program
> Files/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704/appengine-java-sdk-1.2.6/lib/impl/appengine-local-
> runtime.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedappengine-local-runtime-
> shared.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedgeronimo-el_1.0_spec-
> 1.0.1.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedgeronimo-jsp_2.1_spec-
> 1.0.1.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedgeronimo-
> servlet_2.5_spec-1.2.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> ant-1.6.5.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> ant-launcher-1.6.5.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> commons-el-1.0.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> commons-logging-1.1.1.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> jasper-compiler-5.0.28.jar;C:Program
> Fileseclipsepluginscom.google.appengine.eclipse.sdkbundle_1.2.6.v200
> 910131704appengine-java-sdk-1.2.6libsharedjsprepackaged-appengine-
> jasper-runtime-
> 5.0.28.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFclasses;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibappengine-api-1.0-sdk-
> 1.2.6.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibappengine-api-labs-
> 1.2.6.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibdatanucleus-appengine-
> 1.0.3.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibdatanucleus-core-
> 1.1.5.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibdatanucleus-jpa-
> 1.1.5.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibgeronimo-jpa_3.0_spec-
> 1.1.1.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibgeronimo-jta_1.1_spec-
> 1.1.1.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibgwt-
> servlet.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibjdo2-api-2.3-
> eb.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibrepackaged-appengine-ant-
> 1.6.5.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibrepackaged-appengine-ant-launcher-
> 1.6.5.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibrepackaged-appengine-commons-el-
> 1.0.jar;C:DOCUME~1prasadLOCALS~1Tempappcfg19220.tmpWEB-
> INFlibrepackaged-appengine-commons-logging-