[appengine-java] Re: jdo on app engine

2009-12-02 Thread vbart
I've created a tool which generates whole DAO layer for GAE using JDO.
So you must create a source configuration file manually - you define
the schema - or the datastore model there. But you will get all
classes which you need. It includes DTO pojos which you can use for
transfering data between server and client using AJAX/GWT. And it also
includes so called DTO-implementation classes which are actually JDO
classes which you probably ask for. You can find more information at
http://audao.spoledge.com

Vaclav

On Dec 1, 7:30 am, asianCoolz second.co...@gmail.com wrote:
 1.any tool to generate jdo pojo?
 2. any impact of using primary key as long and autoincrement it rather
 than using jdo 's key ? I do understand that max autoincrement for
 sequence is e+27,  how about KEY ?

--

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: Point to application database with JUnit Test

2009-12-02 Thread Zenon
Hi Alex, for what I remember I tried to copy app db to the right
location of junit test but system was unable to read it.

2009/12/2 djd alex.dobjans...@gmail.com:
 Yeah, you create a sample database with 'new File(.)'. Actually I
 did not connect to an existing database, but the document was enough
 for me. And I also did JUnit testing on my DAOs.
 For the actual (local) database, you could try to open the file (I
 don't remember the location and/or name right now, but it's there in
 war or WEB-INF directory).

 Hope this helps,
 Alex

 On Dec 1, 8:40 pm, Zenon zeno...@gmail.com wrote:
 As a matter fact I didn't have successfull connecting on the same
 database of my application..

 I can connect to my local db test, but not with my app data.

 If I don't mistake, that link you gave me explain only how to handle a
 junit db test

 2009/12/1 djd alex.dobjans...@gmail.com:

  How about this?
 http://code.google.com/appengine/docs/java/howto/unittesting.html

  It shows you how to wire the Gae storage to Junit

  On Dec 1, 1:44 pm, Zenon zeno...@gmail.com wrote:
  Hi all,

  I would to point to the  application database with MyJUnitTest.

  I did some experiments but none did succesfull.

  Any suggest?

  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 
  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.




--

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: Discussion on will-it-play-in-app-engine

2009-12-02 Thread andy.booth
I think that's just a case of an unfortunate glitch in the specific
test page, rather than an issue with Jersey on Google App Engine.

I have Jersey running fine on Google App Engine following the updates
made this week to the 1.1.5 version by the authors of Jersey.

Andy


On Dec 1, 6:04 pm, Iqbal Yusuf Dipu iqbalyusufd...@gmail.com wrote:
 On your blog entry here 
 --http://blogs.sun.com/sandoz/entry/jersey_apps_can_now_be

 I tried the link http://jersey-jax-rs.appspot.com/test/resource; and
 I get

 This page contains the following errors:

 error on line 1 at column 1: Document is empty
 Below is a rendering of the page up to the first error.

--

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: Point to application database with JUnit Test

2009-12-02 Thread leszek
This type of tests works for me without any problem. Could you provide
more details and what you mean exactly by system was unable to read
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.




[appengine-java] Re: jdo on app engine

2009-12-02 Thread leszek
If you use pure long primary key than it can impact transactional
mechanism which is related to so called entity groups identified by
primary key values.

So before designing your entity classes read through:

http://code.google.com/intl/pl/appengine/docs/java/datastore/transactions.html

--

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: Point to application database with JUnit Test

2009-12-02 Thread Zenon
Well, I just copied my app data (local_db.bin) to JunitTest database
directory replacing the old one, but whatever test I execute it
returns no data.



2009/12/2 leszek leszek.ptokar...@gmail.com:
 This type of tests works for me without any problem. Could you provide
 more details and what you mean exactly by system was unable to read
 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.




--

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 image aspect ratio

2009-12-02 Thread moissinac
The Overview about the Image service Resize says
You can resize the image while maintaining the same aspect ratio.

It seems that it's a feature not a bug!

--

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: Spring MVC with annotations

2009-12-02 Thread Rafael Reuber
The log shows this:
org.springframework.web.servlet.FrameworkServlet initServletBean:
Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.context.annotation.internalPersistenceAnnotationProcessor':
Initialization of bean failed; nested exception is
java.lang.NoClassDefFoundError: javax/naming/NamingException


On Dec 2, 12:44 am, Rusty Wright rwright.li...@gmail.com wrote:
 Is there anything helpful in the error log?  You can view it on the dashboard;

 https://appengine.google.com/

 Rafael Reuber wrote:
  Hi Toby,

       The error only happens when I try to access the application
  through the GAE. It's funny, In my computer it work!
       The GAE throws erro, when I do deploy with  these tag
  context:component-scan base-package=br.com.project.controller /
  in my spring-context.xml

  On Nov 29, 11:23 am, Toby tobias.ro...@sunnymail.mobi wrote:
  Hi Rafael,

  What kind of error do you get, what annotations do you use?
  I used @Autowired and @Ressource and it worked fined. My main problem
  is that appengine unloads the webapp after short idle time. Whenever
  it is needed again it is reloaded which takes long and costs a lot of
  cpu time.  I found that stripping annotations accelerated the process.

  Cheers,
  Tobias

  On Nov 28, 9:31 pm, Rafael Reuber psico.in...@gmail.com wrote:

  I developed an program with Spring MVC + annotations. He done in my
  computer. But when I make deploy and try acess the application, the GAE
  throws an error. Someone got use annotations with Spring MVC?
  --
  Rafael Reuber
  MSN/Gtalk: psico.in...@gmail.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 
  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: Spring MVC with annotations

2009-12-02 Thread a.maza
this is a known issue.. there are several threads in this forum about
it

http://groups.google.com/group/google-appengine-java/search?group=google-appengine-javaq=naming+exception



On 2 Dez., 12:33, Rafael Reuber psico.in...@gmail.com wrote:
 The log shows this:
 org.springframework.web.servlet.FrameworkServlet initServletBean:
 Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name
 'org.springframework.context.annotation.internalPersistenceAnnotationProces­sor':
 Initialization of bean failed; nested exception is
 java.lang.NoClassDefFoundError: javax/naming/NamingException

 On Dec 2, 12:44 am, Rusty Wright rwright.li...@gmail.com wrote:



  Is there anything helpful in the error log?  You can view it on the 
  dashboard;

 https://appengine.google.com/

  Rafael Reuber wrote:
   Hi Toby,

        The error only happens when I try to access the application
   through the GAE. It's funny, In my computer it work!
        The GAE throws erro, when I do deploy with  these tag
   context:component-scan base-package=br.com.project.controller /
   in my spring-context.xml

   On Nov 29, 11:23 am, Toby tobias.ro...@sunnymail.mobi wrote:
   Hi Rafael,

   What kind of error do you get, what annotations do you use?
   I used @Autowired and @Ressource and it worked fined. My main problem
   is that appengine unloads the webapp after short idle time. Whenever
   it is needed again it is reloaded which takes long and costs a lot of
   cpu time.  I found that stripping annotations accelerated the process.

   Cheers,
   Tobias

   On Nov 28, 9:31 pm, Rafael Reuber psico.in...@gmail.com wrote:

   I developed an program with Spring MVC + annotations. He done in my
   computer. But when I make deploy and try acess the application, the GAE
   throws an error. Someone got use annotations with Spring MVC?
   --
   Rafael Reuber
   MSN/Gtalk: psico.in...@gmail.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 
   athttp://groups.google.com/group/google-appengine-java?hl=en.- Zitierten 
   Text ausblenden -

 - Zitierten Text anzeigen -

--

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: AppEngine needs an AppStore

2009-12-02 Thread Jorge
Here is another model and the one we pursue now: One may login to our
app with a Google account, but in order to be able to use the app to
full capacity, the user must subscribe (e.g. pay for it).

On any case, a GAE marketplace would be a site where we the app
developers promote our products and services and those products and
services may be distributed in a variety of business models.

 Cool idea: a marketplace like what you describe could be an App Engine app
 itself ...

Of course!!!

Jorge Gonzalez


On Dec 1, 1:08 pm, Ikai L (Google) ika...@google.com wrote:
 I see what you mean. Say, an application marketplace where folks can
 download source code for applications and deploy to their own App Engine
 instances, get support, download updates, and so forth. It's an interesting
 idea. We're focusing on Apps for Google Apps for the Enterprise in a SaaS
 model rather than an a la carte software download model.

 Cool idea: a marketplace like what you describe could be an App Engine app
 itself ...

 On Tue, Dec 1, 2009 at 7:16 AM, Prashant antsh...@gmail.com wrote:
  +1

  --
  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

--

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: Processing incoming email

2009-12-02 Thread Peter Ondruska
tetest, thank you, the complete working example would be then:

MimeMessage message = new MimeMessage(session,
request.getInputStream());

StringBuffer sb = new StringBuffer();

sb.append(From: );
Address[] senders = message.getFrom();
for (int i = 0; i  senders.length; i++)
sb.append(senders[i].toString()).append(; );
sb.append(\n);

sb.append(To: );
Address[] receivers = message.getAllRecipients();
for (int i = 0; i  receivers.length; i++)
sb.append(receivers[i].toString()).append(; );
sb.append(\n);

InputStream is = (InputStream) message.getContent();
String contentType = message.getContentType();
ByteArrayDataSource byteArrayDataSource = new 
ByteArrayDataSource
(is, contentType);
Multipart mmp = new MimeMultipart(byteArrayDataSource);

for (int i = 0; i  mmp.getCount(); i++) {
Part p = mmp.getBodyPart(i);
if (text/plain.equals(p.getContentType())) {
if (i  0) sb.append(***);
ByteArrayInputStream bais = 
(ByteArrayInputStream) p.getContent
();
byte[] buffer = new byte[1024];
int length = 0;
while ((length = bais.read(buffer)) != 
-1)
sb.append(new String(buffer, 0, 
length));
}
}

Does not work reliably (java.io.IOException: Truncated quoted
printable data and java.lang.OutOfMemoryError: Java heap space) but
that is either other bug in GAE or my code.

On Dec 1, 4:38 am, tetest tet...@gmail.com wrote:
 Hi,

 Follow this thread:

 http://groups.google.com/group/google-appengine-java/browse_thread/th...http://groups.google.com/group/google-appengine-java/browse_thread/th...

 Though something only has to be able to be useful.

 thanks.

 On 11月30日, 午後11:34, Peter Ondruska peter.ondru...@gmail.com wrote:



  I am following instructions 
  onhttp://code.google.com/appengine/docs/java/mail/receiving.html
  to process incoming mail but failing on retrieving content (headers
  are fine).

  The getContent() method returns an object that implements the
  Multipart interface. You can then call getCount() to determine the
  number of parts and getBodyPart(int index) to return a particular body
  part.

  MimeMultipart mmp = (MimeMultipart) message.getContent();

  Error:
  java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be
  cast to javax.mail.internet.MimeMultipart

  And when I check at runtime what class is returned by getContent() it
  really is java.io.ByteArrayInputStream.

  Am I doing something wrong?

--

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 many cache can I create using JCacheFactory

2009-12-02 Thread jay
Hi Ikai,

Thanks your reply. Got it.

Because the GAE memcache has quota limitation, should I use my own
cache(singleton in my WebApp) as first level, and use memcache as
second level, then I save my quota?

On 11月12日, 上午10时37分, Ikai L (Google) ika...@google.com wrote:
 Jay,

 It's not necessary to create a Map of caches. The Cache object represents a
 single Memcache client talking to a distributed, in-memory store. There's no
 gain for creating separate cache client instances.



 On Tue, Nov 10, 2009 at 8:38 PM, jay jay...@gmail.com wrote:

  Hi friends,

  I want to use different cache save different sorts of Objects, so I
  create several caches in a HashMap.

  But when I debug my program, I realize only one cache in the lower
  layer...

  Is it true?

  private MapString, Cache caches = new HashMapString,
  Cache();

 

cacheFactory = CacheManager.getInstance
  ().getCacheFactory();

 caches.put(Account.class.getSimpleName(),
  cacheFactory.createCache
  (Collections.emptyMap()));
 caches.put(AddressBook.class.getSimpleName(),
  cacheFactory.createCache(Collections.emptyMap()));

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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: task queue once-only semantics

2009-12-02 Thread Vince Bonfanti
Yes, I received your patch and it's on my TODO list to review it and add it
to the code. Unfortunately, I've been a bit backed up with other projects.
I'm trying to get a new version of GaeVFS ready for release in the next few
weeks and will try to include your patch.

Vince

On Wed, Dec 2, 2009 at 12:08 AM, James H james.hollier...@gmail.com wrote:

 Ah, short execution time and bullet-proof re-runs...I see how memcache
 would work in this case.  On another topic, I recall you wrote
 GaeVFS...I recently added a comment related to a patch for checking
 file timestamp to avoid redundant downloads.  On the surface it
 appears straight forward...if the http header was supplied then just
 compare with the Entity's timestamp and you're done.  Is it really
 that simple?  Are you or someone else familiar with the code
 considering adding this check?



--

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: Sending mail with the mail api

2009-12-02 Thread Ray
Hi Jason,
  i have got the same problem too. the Code was copied and pasted
from
http://code.google.com/appengine/docs/java/mail/usingjavamail.html. The Mail
was sended from a deployed application. I have not received any Mail, but
the Quotas said that i have sent out mails. there is neither error message
nor errorlogs. i also tried the code from Sadhasivam Jayabalaganesan's mail,
it doesn't work for me either.

-ray

2009/9/11 Jason (Google) apija...@google.com

 Just to clarify, you are sending these from a deployed application,
 correct?

 - Jason


 On Tue, Sep 8, 2009 at 9:06 PM, king kingalpha...@gmail.com wrote:


 I have the same problem. I sent out 3 email and have been waiting for
 hours, still no email arrived at my inbox, there is no error message
 either. Does anyone have any update on this issue?


 On Aug 20, 12:00 pm, DrMorten morten.dalgaard.niel...@gmail.com
 wrote:
  Nothing in the log about failed messages. I've made a Grails Service
  sending my emails. Basiclly I just cut and pasted the info fromhttp://
 code.google.com/appengine/docs/java/mail/usingjavamail.html,
  and modified it to fit my needs. Just as a quick version to get it
  working. I pasted the service below.
 
  class MailService {
 
  boolean transactional = true
 
  def sendMail(subject, msgBody, from, fromText, too, tooText) {
 
  Properties props = new Properties();
  Session session = Session.getDefaultInstance(props,
 null);
 
  try {
  def msg = new MimeMessage(session);
  msg.setFrom(new InternetAddress(from,
 fromText));
  msg.addRecipient(Message.RecipientType.TO,
  new
 InternetAddress(too, tooText));
  msg.setSubject(subject);
  msg.setText(msgBody);
  Transport.send(msg);
 
  } catch (AddressException e) {
  log.error(address error sendingmail, e)
  } catch (MessagingException e) {
  log.error(messaging exception sendingmail, e)
  }
 
  }
 
  }
 
  On Aug 20, 8:48 pm, Jason (Google) apija...@google.com wrote:
 
 
 
   Did you check your application's logs to see if there were any errors
   sending the messages? What code were you using to send the emails?
   - Jason
 
   On Wed, Aug 19, 2009 at 7:47 AM, DrMorten 
 morten.dalgaard.niel...@gmail.com
 
wrote:
 
I sent about 7 emails last night to my own email address. They havnt
arrived, Ive checked the code and the addresses were right. The
 Quotas
say that I've sent the e-mails.
 
Anyone have an idea of how long it should take to send to a gmail
address?



 --~--~-~--~~~---~--~~
 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.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.




Re: [appengine-java] Re: How many cache can I create using JCacheFactory

2009-12-02 Thread Don Schwarz
Memcache quotas are so high that you're unlikely to hit them.  You may get
*latency* benefits from having your own first-level cache in memory, but
bear in mind that you don't have a whole lot of space to work with, and the
hit rates will decrease significantly as your traffic increases (unlike
memcache).

I would recommend only doing caching in memory only for the scope of a
single request (i.e. don't request the same data from memcache more than
once per request), and using the bulk memcache APIs wherever possible (e.g.
getAll and putAll()).

On Wed, Dec 2, 2009 at 8:00 AM, jay jay...@gmail.com wrote:

 Hi Ikai,

 Thanks your reply. Got it.

 Because the GAE memcache has quota limitation, should I use my own
 cache(singleton in my WebApp) as first level, and use memcache as
 second level, then I save my quota?

 On 11月12日, 上午10时37分, Ikai L (Google) ika...@google.com wrote:
  Jay,
 
  It's not necessary to create a Map of caches. The Cache object represents
 a
  single Memcache client talking to a distributed, in-memory store. There's
 no
  gain for creating separate cache client instances.
 
 
 
  On Tue, Nov 10, 2009 at 8:38 PM, jay jay...@gmail.com wrote:
 
   Hi friends,
 
   I want to use different cache save different sorts of Objects, so I
   create several caches in a HashMap.
 
   But when I debug my program, I realize only one cache in the lower
   layer...
 
   Is it true?
 
   private MapString, Cache caches = new HashMapString,
   Cache();
 
  
 
 cacheFactory = CacheManager.getInstance
   ().getCacheFactory();
 
  caches.put(Account.class.getSimpleName(),
   cacheFactory.createCache
   (Collections.emptyMap()));
  caches.put(AddressBook.class.getSimpleName(),
   cacheFactory.createCache(Collections.emptyMap()));
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine

 --

 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.




Re: [appengine-java] Re: AppEngine needs an AppStore

2009-12-02 Thread Vince Bonfanti
What we really, really need is something similar to Amazon DevPay:

http://aws.amazon.com/devpay/

Vince

On Tue, Dec 1, 2009 at 2:08 PM, Ikai L (Google) ika...@google.com wrote:

 I see what you mean. Say, an application marketplace where folks can
 download source code for applications and deploy to their own App Engine
 instances, get support, download updates, and so forth. It's an interesting
 idea. We're focusing on Apps for Google Apps for the Enterprise in a SaaS
 model rather than an a la carte software download model.

 Cool idea: a marketplace like what you describe could be an App Engine app
 itself ...


 On Tue, Dec 1, 2009 at 7:16 AM, Prashant antsh...@gmail.com wrote:

 +1

 --
 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

 --
 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: task queue once-only semantics

2009-12-02 Thread James H
Great!  We'll talk more when I start using it shortly.

On Dec 2, 8:25 am, Vince Bonfanti vbonfa...@gmail.com wrote:
 Yes, I received your patch and it's on my TODO list to review it and add it
 to the code. Unfortunately, I've been a bit backed up with other projects.
 I'm trying to get a new version of GaeVFS ready for release in the next few
 weeks and will try to include your patch.

 Vince



 On Wed, Dec 2, 2009 at 12:08 AM, James H james.hollier...@gmail.com wrote:
  Ah, short execution time and bullet-proof re-runs...I see how memcache
  would work in this case.  On another topic, I recall you wrote
  GaeVFS...I recently added a comment related to a patch for checking
  file timestamp to avoid redundant downloads.  On the surface it
  appears straight forward...if the http header was supplied then just
  compare with the Entity's timestamp and you're done.  Is it really
  that simple?  Are you or someone else familiar with the code
  considering adding this check?- Hide quoted text -

 - Show quoted text -

--

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] no .js after deployment

2009-12-02 Thread Jiri
I've deployed an application (quite tested in host mode) to the app
engine
After the deployment from eclipse (using the plugin) it seems the
generated javascript (app.nocache.js) is missing (getting 404).
Any chance to check what files were actually deployed?

thanks
Jiri

--

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] DWR SUPPORT

2009-12-02 Thread noelo
Hi all,
I would like to use the DWR frameworke to develop my own website on
GAE.I had search a lot by Google, but there were not so many article
about it. Some said GAE did not support DWR while I had read about
Will it play in App Engine.It showed that 
Direct Web Remoting (DWR)
Version(s): 2.0.5, 3.0 RC1
Status: COMPATIBLE

I built a test project with framework Spring + DWR on Eclipse 3.4 ,the
JSP page showed correctly and the methods tests of the http://
localhost:8080/dwr/index.html passed.However,when related the
Javascript created by DWR on the JSP,the methods alert undifined.

does GAE support non-static javascript created by DWR?

can someone give me some advices?

--

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: Processing incoming email

2009-12-02 Thread Ikai L (Google)
Peter,

I'm working on a cookbook entry for processing incoming mail in Java. Here's
some code I had working. Can you take a look at this and see if there's
anything you can adapt?

import com.google.appengine.api.datastore.Blob;
import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.*;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Image {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private Blob data;

@Persistent
private String contentType;

public Image(Blob data, String contentType) {
this.data = data;
this.contentType = contentType;
}

public Key getKey() {
return key;
}

public Blob getData() {
return data;
}

public void setData(Blob data) {
this.data = data;
}

public String getContentType() {
return contentType;
}

public void setContentType(String contentType) {
this.contentType = contentType;
}
}



import Image;
import com.google.appengine.api.datastore.Blob;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import javax.mail.*;
import javax.mail.util.ByteArrayDataSource;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import javax.jdo.PersistenceManager;
import java.io.IOException;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.util.Properties;

public class IncomingMailHandlerServlet extends HttpServlet {

protected void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
try {
MimeMessage message = new MimeMessage(session,
request.getInputStream());

InputStream inputStream = message.getInputStream();

ByteArrayDataSource inboundDataSource = new
ByteArrayDataSource(inputStream, message.getContentType());
Multipart inboundMultipart = new
MimeMultipart(inboundDataSource);

for (int i = 0; i  inboundMultipart.getCount(); i++) {
BodyPart part = inboundMultipart.getBodyPart(i);

if (part.getDisposition() == null) {
// This is just a plain text part
} else if (part.getDisposition().equals(attachment)) {
// Create a new ByteArrayDataSource with this part
MimeBodyPart inboundMimeBodyPart = (MimeBodyPart) part;

// The call to getContentType here may return a filename
along with content type. Ex:
// image/jpeg; name=filename.jpg
// It doesn't seem to affect display in a browser but
you may wish to sanitize it
String contentType =
inboundMimeBodyPart.getContentType();

InputStream is = part.getInputStream();

byte[] rawData, buffer = new byte[8192];
int len;
ByteArrayOutputStream output = new
ByteArrayOutputStream();

try {
while ((len = is.read(buffer, 0, buffer.length)) !=
-1) output.write(buffer, 0, len);
rawData = output.toByteArray();
} finally {
output.close();
}

PersistenceManager pm =
PMF.get().getPersistenceManager();

Image image = new Image(new Blob(rawData), contentType);
try {
pm.makePersistent(image);
} finally {
pm.close();
}

}

}

} catch (MessagingException e) {
throw new ServletException(e);
}
}

}


On Wed, Dec 2, 2009 at 6:00 AM, Peter Ondruska peter.ondru...@gmail.comwrote:

 tetest, thank you, the complete working example would be then:

MimeMessage message = new MimeMessage(session,
 request.getInputStream());

StringBuffer sb = new StringBuffer();

sb.append(From: );
Address[] senders = message.getFrom();
for (int i = 0; i  senders.length; i++)
sb.append(senders[i].toString()).append(;
 );
sb.append(\n);

sb.append(To: );
Address[] receivers = message.getAllRecipients();
for (int i = 0; i  receivers.length; i++)
sb.append(receivers[i].toString()).append(;
 );
sb.append(\n);

 

[appengine-java] Collections usge in Appengine Java

2009-12-02 Thread Avis developer
I tried using ArrayList in a persistent way, but its not getting
persistent.. It adds the value when i call the add method, but for
retriving it still says null..
Is this a bug or my programming fault ? Pls 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 at 
http://groups.google.com/group/google-appengine-java?hl=en.




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

2009-12-02 Thread andy stevko
This is a common issue. You need to define a @FetchGroup( )  for your class
that names that member then add the FetchGroup to your persistence manager.

@FetchGroup(  name=children, members={
@Persistent(name=childcollection)
})
public class 

//---
PersistenceManager pm;
FetchPlan fp = pm.getFetchPlan();
fp.addGroup(children);


On Wed, Dec 2, 2009 at 9:50 AM, Avis developer sivaram.subb...@gmail.comwrote:

 I tried using ArrayList in a persistent way, but its not getting
 persistent.. It adds the value when i call the add method, but for
 retriving it still says null..
 Is this a bug or my programming fault ? Pls 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.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: can image aspect ratio

2009-12-02 Thread king
Hi Moissinac, thanks for replying.  Actually I don't really care if
it's a feature or bug, I just want to know how I can change the aspect
ratio.  Any help would be greatly appreciated.


On Dec 2, 1:51 am, moissinac jcmoissi...@gmail.com wrote:
 The Overview about the Image service Resize says
 You can resize the image while maintaining the same aspect ratio.

 It seems that it's a feature not a bug!

--

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] SimpleDS 0.8.1 has been released

2009-12-02 Thread Ikai L (Google)
Wow, looking great! Did you want this added to the list of Open Source
projects?

https://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects

On Tue, Dec 1, 2009 at 3:46 AM, Nacho Coloma icol...@gmail.com wrote:

 Hi all,

 SimpleDS, an alternative storage framework for GAE, has hit its 0.8.1
 release. This release includes a couple of interesting features:

 Multiple valued index
 ===
 This is a little experiment that is working quite well for us. A new
 IndexManager class will store and retrieve simple representations of
 the Entity Index pattern introduced in Google I/O 2009. A simple
 example:

 @Entity
 @MultivaluedIndex(name=invitations, itemClass=Key.class)
 public class User {
  /* no 'invitations' attribute */
 }

 // get the list of user keys that received an invitation from this
 user
 SetKey invitationsSent = indexManager.get(senderUserKey,
 invitations);

 More details can be found here:
 http://code.google.com/p/simpleds/wiki/IndexManager

 Parent key validation
 ===
 We make extensive use of the key nesting mechanism included in GAE. As
 a consequence, the most common mistake in our testsuite was a
 consequence of setting the wrong parent instance. This version of
 SimpleDS includes an improved @Entity annotation that lets you specify
 the allowed entity parent classes, which can be multiple (as an
 example, an Address object can be nested inside a Person or a Company
 ancestor). More about this here:

 http://code.google.com/p/simpleds/wiki/ParentChild

 Easier singleton access
 =
 Spring does not like static attributes, so we had to try different
 alternatives to get static singleton access. EntityManagerFactory and
 IndexManagerFactory have been transformed to singleton containers to
 be used where Dependency Injection cannot be used easily (most
 notably, inside JSP custom tags). After configuring your Spring
 container, you will be able of invoking
 EntityManagerFactory.getEntityManager() and
 IndexManagerFactory.getIndexManager().

 Spring dependencies have also been removed as much as possible, but it
 is still being used as an introspection framework. The example of
 configuration without Spring has been updated to reflect that.

 Changes that could break your current setup
 
 As a consequence of the previous point, the spring configuration has
 changed:
 http://code.google.com/p/simpleds/wiki/GettingStarted

 The public constructor of SimpleQuery and PagedQuery have also been
 removed. Instead, you should use entityManager.createQuery() and
 entityManager.createPagedQuery()


 Any feedback on this release would be most welcome. Best regards,

 Nacho.

 --

 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

--

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] Persisting class hierarchies

2009-12-02 Thread Ikai L (Google)
Alex,

There's a danger here of overengineering when it comes to mapping objects to
datastore entities. Unless you absolutely need different behavior between
the subclasses of Animal, you may want to stay away from using types to
convey information and use a field instead. In the datastore, entities are
actually loosely typed, and you can specify the type of Animal in a field
rather than as an Entity kind. This may or may not be your actual example,
so I may be way off base here.

As far as creating a DAO layer goes - what do you mean? Are you referring to
creating a DAO layer by creating a DAO class for each domain class?

On Tue, Dec 1, 2009 at 7:44 AM, djd alex.dobjans...@gmail.com wrote:

 Hi guys,
 I need your opinion regarding this issue :

 The persistence classes get more complex as the application grows and
 gets more complex. For my question, consider the following example:

 Animal {
   long id,
   float weight,
   float speed
 }

 JungleAnimal extends Animal {
   ListAnimal breakfast;
 }

 Lion extends JungleAnimal {
   boolean isMale
 }

 So we have a simple class hierarchy, everything works with GAE (I have
 simplified code above and it turned out to not be Java anymore) -
 Animal implements Serializable, it is annotated with
 @PersistenceCapable, all fields have @Persistent, etc.

 So, now that I have this basic framework, I write an insert method for
 Lion and this method will write all the fields inherited from
 hierarchy.

 The question is, did anybody think about having some DAOs for each
 class, and each of them being concerned with the fields from that
 class alone (and calling additional DAOs as the fields need to be
 persisted up in the hierarchy)? Is that even possible?

 Thanks, I hope everything is clear. I would really appreciate your
 opinion on this matter,
 Alex

 --

 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

--

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] Qs: (1) data safe in GAE (2) delete existing app

2009-12-02 Thread Ikai L (Google)
John,

Yes, you can delete applications:
http://code.google.com/appengine/kb/adminconsole.html#delete_app

We do not make it a practice to look at customer data. You'll want to read
our terms of service: http://code.google.com/appengine/terms.html

On Tue, Dec 1, 2009 at 6:13 PM, John Lin john...@google.com wrote:

 •   Questions for Google App Engine.

 I use the GAE (Google App Engine) Admin Console to create an
 application.
 Could I delete this application after it is created ?
  if yes, then how ?
  if no, then I will reach my quota 10 sooner or later.
 Could I edit this application id or title after the
 application is created ?

Could I save confidential data from my web application into GAE
 data store.  The GAE engineer or any Google engineer can not look into
 this data.  Ex: HR confidential data or outside customer confidential
 data.  Is this possible ?
 If possible, how do you achieve this ?
 If not, then how do you convince the outside customers
 they are going to save some confidential data into your app engine ?

   Please advise me.  Thanks.

 John

 --

 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

--

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] Random App Engine errors

2009-12-02 Thread Jason.LTech
We are receiving random App Engine errors the last few days on an app
that has been performing fine for months




failed web
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(162d54b3b9e9) started at 2009/12/02 19:21:46.098 UTC and was
still executing at 2009/12/02 19:22:15.544 UTC.
at java.security.PrivilegedActionException.init(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.google.apphosting.runtime.security.UserClassLoader
$PrivilegedClassLoader.loadPrivilegedClass(UserClassLoader.java:123)
at
com.google.apphosting.runtime.security.UserClassLoader.loadClassImpl
(UserClassLoader.java:485)
at com.google.apphosting.runtime.security.UserClassLoader.loadClass
(UserClassLoader.java:446)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor
$1.visitEnd(AnnotationMetadataReadingVisitor.java:67)
at org.springframework.asm.ClassReader.a(Unknown Source)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at
org.springframework.core.type.classreading.SimpleMetadataReader.getAnnotationMetadata
(SimpleMetadataReader.java:55)
at org.springframework.core.type.filter.AnnotationTypeFilter.matchSelf
(AnnotationTypeFilter.java:68)
at
org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match
(AbstractTypeHierarchyTraversingFilter.java:55)
at
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent
(ClassPathScanningCandidateComponentProvider.java:252)
at
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents
(ClassPathScanningCandidateComponentProvider.java:192)
at
org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan
(ClassPathBeanDefinitionScanner.java:201)
at
org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse
(ComponentScanBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse
(NamespaceHandlerSupport.java:69)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement
(BeanDefinitionParserDelegate.java:1297)
at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement
(BeanDefinitionParserDelegate.java:1287)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions
(DefaultBeanDefinitionDocumentReader.java:135)
at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions
(DefaultBeanDefinitionDocumentReader.java:92)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions
(XmlBeanDefinitionReader.java:507)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
(XmlBeanDefinitionReader.java:398)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:342)
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
(XmlBeanDefinitionReader.java:310)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:143)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:178)
at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
(AbstractBeanDefinitionReader.java:149)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
(XmlWebApplicationContext.java:124)
at
org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
(XmlWebApplicationContext.java:92)
at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
(AbstractRefreshableApplicationContext.java:123)
at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
(AbstractApplicationContext.java:422)
at
org.springframework.context.support.AbstractApplicationContext.refresh
(AbstractApplicationContext.java:352)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
(FrameworkServlet.java:402)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
(FrameworkServlet.java:316)
at org.springframework.web.servlet.FrameworkServlet.initServletBean
(FrameworkServlet.java:282)
at 

Re: [appengine-java] Random App Engine errors

2009-12-02 Thread Raphael André Bauer
On Wed, Dec 2, 2009 at 8:39 PM, Jason.LTech jason.keic...@gmail.com wrote:
 We are receiving random App Engine errors the last few days on an app
 that has been performing fine for months
+1
ra




 failed web
 com.google.apphosting.runtime.HardDeadlineExceededError: This request
 (162d54b3b9e9) started at 2009/12/02 19:21:46.098 UTC and was
 still executing at 2009/12/02 19:22:15.544 UTC.
        at java.security.PrivilegedActionException.init(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.google.apphosting.runtime.security.UserClassLoader
 $PrivilegedClassLoader.loadPrivilegedClass(UserClassLoader.java:123)
        at
 com.google.apphosting.runtime.security.UserClassLoader.loadClassImpl
 (UserClassLoader.java:485)
        at com.google.apphosting.runtime.security.UserClassLoader.loadClass
 (UserClassLoader.java:446)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at
 org.springframework.core.type.classreading.AnnotationMetadataReadingVisitor
 $1.visitEnd(AnnotationMetadataReadingVisitor.java:67)
        at org.springframework.asm.ClassReader.a(Unknown Source)
        at org.springframework.asm.ClassReader.accept(Unknown Source)
        at org.springframework.asm.ClassReader.accept(Unknown Source)
        at
 org.springframework.core.type.classreading.SimpleMetadataReader.getAnnotationMetadata
 (SimpleMetadataReader.java:55)
        at org.springframework.core.type.filter.AnnotationTypeFilter.matchSelf
 (AnnotationTypeFilter.java:68)
        at
 org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter.match
 (AbstractTypeHierarchyTraversingFilter.java:55)
        at
 org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.isCandidateComponent
 (ClassPathScanningCandidateComponentProvider.java:252)
        at
 org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents
 (ClassPathScanningCandidateComponentProvider.java:192)
        at
 org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan
 (ClassPathBeanDefinitionScanner.java:201)
        at
 org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse
 (ComponentScanBeanDefinitionParser.java:84)
        at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse
 (NamespaceHandlerSupport.java:69)
        at
 org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement
 (BeanDefinitionParserDelegate.java:1297)
        at
 org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement
 (BeanDefinitionParserDelegate.java:1287)
        at
 org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions
 (DefaultBeanDefinitionDocumentReader.java:135)
        at
 org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions
 (DefaultBeanDefinitionDocumentReader.java:92)
        at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions
 (XmlBeanDefinitionReader.java:507)
        at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions
 (XmlBeanDefinitionReader.java:398)
        at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
 (XmlBeanDefinitionReader.java:342)
        at
 org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions
 (XmlBeanDefinitionReader.java:310)
        at
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
 (AbstractBeanDefinitionReader.java:143)
        at
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
 (AbstractBeanDefinitionReader.java:178)
        at
 org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions
 (AbstractBeanDefinitionReader.java:149)
        at
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
 (XmlWebApplicationContext.java:124)
        at
 org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions
 (XmlWebApplicationContext.java:92)
        at
 org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory
 (AbstractRefreshableApplicationContext.java:123)
        at
 org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory
 (AbstractApplicationContext.java:422)
        at
 org.springframework.context.support.AbstractApplicationContext.refresh
 (AbstractApplicationContext.java:352)
        at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext
 (FrameworkServlet.java:402)
        at
 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext
 (FrameworkServlet.java:316)
       

[appengine-java] Text Search Support for Java

2009-12-02 Thread lent
Hi,

This question is targeted at Google guys.  Is there any plans to have
limited support for full text search for Java, i.e. something like the
equivalent of SearchableModel in Python, and if so when can this be
expected?  When is FULL support for full text search be expected for
appengine (Python and Java)?

Regards,
Len

--

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] Change datastore filename on dev server?

2009-12-02 Thread Toby Reyelts
Hey James,

You can set the file that the datastore uses with the system
property, datastore.backing_store. For example,

dev_appserver.sh
--jvm_flag=-Ddatastore.backing_store=c:\my_project_datastore.blob
my_project\war


On Sat, Nov 21, 2009 at 12:02 PM, James Cooper jamespcoo...@gmail.comwrote:

 Hi,

 I'm running the GAE/J dev server via a maven build.  It appears that
 it rebuilds the target/[project name] directory each build, which
 deletes the WEB-INF directory.  Consequently my local datastore is
 deleted each time I do a build and restart my dev server.

 Is there a flag I can pass the dev server that will specify an
 alternate path for the local_db.bin file?

 Anyone else experiencing this when using maven with GAE?  I'm not a
 maven expert, so there may be an alternate solution that preserves the
 WEB-INF dir across builds.

 thanks,

 -- James

 --

 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=.




--

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: GData Java API known to (not) work on GAE?

2009-12-02 Thread Toby Reyelts
On Tue, Dec 1, 2009 at 3:21 AM, Bobby bobbysoa...@gmail.com wrote:

 Toby, there's one obstacle though, the GAE URLFetch timeout doesn't
 play nicely with the GData API. I've found that timeouts happen fairly
 frequently at peak hours, depending on the GData system you're
 accessing.

 There has been an issue posted to the issue tracker about this, but
 it's indicated that a fix isn't planned


Do you have a pointer to this issue? I tried searching but couldn't find
anything relevant.


 - personally i don't think
 doubling the timeout interval would help much either. In the future
 would it be possible for developers to allow certain scripts to go
 over some of the imposed restrictions, such as the URLFetch timeout
 interval, at whatever cost is appropriate? Without this capability,
 server side API calls really suffer.


We're working on ways to deal better with long (for example several
minutes), blocking operations that are out of developers' control, and
URLFetch is definitely one of our use cases.



 BTW, Guillaume, if you're using GWT on your project consider using the
 gwt-gdata (http://code.google.com/p/gwt-gdata/) library, it's not as
 complete as the Java library, as far as systems, but it can help
 reduce AppEngine load since the requests go directly to GData, from
 the client.

 Bobby

 On Nov 30, 2:15 pm, Guillaume Laforge glafo...@gmail.com wrote:
  Ah excellent, I missed that information and had not seen that section
  in the knowledge base.
  Thanks a lot, Toby!
 
 
 
  On Mon, Nov 30, 2009 at 19:54, Toby Reyelts to...@google.com wrote:
   Gdata works fine in the Java runtime but, but you need to disable its
 cookie
   handler.
 
   On Mon, Nov 30, 2009 at 1:00 PM, Guillaume Laforge glafo...@gmail.com
 
   wrote:
 
   Hi all,
 
   I was wondering whether anyone had succeeded using the GData APIs on
   their GAE applications?
   I wanted to access the Picasa Web Albums, using the Java libraries of
   GData.
   But it seems it's not possible, as I'm getting some errors (locally, I
   have not tried deployed in the cloud):
 
   ava.security.AccessControlException: access denied
   (java.net.NetPermission getCookieHandler)
  at
  
 java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
  at
  
 java.security.AccessController.checkPermission(AccessController.java:427)
  at
   java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  at
  
 com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
  at java.net.CookieHandler.getDefault(CookieHandler.java:58)
  at
  
 com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:316)
  at
  
 com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:305)
  at
  
 com.google.gdata.client.http.GoogleGDataRequest.clinit(GoogleGDataRequest.java:408)
  at
  
 com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
  at
  
 com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
  at
 com.google.gdata.client.Service.createRequest(Service.java:697)
  at
  
 com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
  at
   com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
  at com.google.gdata.client.Service.getFeed(Service.java:915)
  at
   com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
  at com.google.gdata.client.Service.getFeed(Service.java:935)
 
   I guess the GData API is not GAE-compliant?
   Am I correct?
 
   --
   Guillaume Laforge
   Groovy Project Manager
   Head of Groovy Development at SpringSource
  http://www.springsource.com/g2one
 
   --
 
   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.
 
  --
  Guillaume Laforge
  Groovy Project Manager
  Head of Groovy Development at SpringSourcehttp://
 www.springsource.com/g2one

 --

 You 

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

2009-12-02 Thread umair
I am getting this error when deploying the youtube direct application
to google app engine.

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


Some forum suggested me to do these steps

1. Copy tools.jar into the AppEngine lib/shared directory.
2. Modify appcfg.cmd so it fully-qualifies the reference to java.exe
in the JDK/bin directory.


I did them but still no luck.

Any suggestion will be welcomed.

Thanks,
Muhammad Umair

--

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: DWR SUPPORT

2009-12-02 Thread stephan
I'm using DWR 2.0 in my GAE app. I tried at one point to run 3.0,  but
ran into a number of issues that forced me to fall back to 2.0...

On Dec 2, 12:37 am, noelo noelo1...@gmail.com wrote:
 Hi all,
 I would like to use the DWR frameworke to develop my own website on
 GAE.I had search a lot by Google, but there were not so many article
 about it. Some said GAE did not support DWR while I had read about
 Will it play in App Engine.It showed that 
 Direct Web Remoting (DWR)
 Version(s): 2.0.5, 3.0 RC1
 Status: COMPATIBLE

 I built a test project with framework Spring + DWR on Eclipse 3.4 ,the
 JSP page showed correctly and the methods tests of the http://
 localhost:8080/dwr/index.html passed.However,when related the
 Javascript created by DWR on the JSP,the methods alert undifined.

 does GAE support non-static javascript created by DWR?

 can someone give me some advices?

--

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] Sticky sessions -- keeping a user on a single JVM

2009-12-02 Thread stephan
I have a GAE application that has some complex reporting requirements.
Since there is currently no support for aggregate queries, my approach
is to instead build up a collection of the items to query in memory,
and then use JOSQL to perform the queries I need.

For the most part this has worked out OK. Part of the complication,
however, is that if I have a lot of items I need to collect from the
datastore (tens or hundred of thousands of items), I need to do this
in chunks, in order to stay under the 30 second request limit. I do
this by issuing successive AJAX requests to initialize my data.

The problem is that occasionally the app will hit some threshold that
causes the GAE infrastructure to spin up a new JVM. In this case, all
the items I've collected in memory in the first JVM will no longer be
there, and I have to start over. For situations where it may take 10+
minutes to build up the collection of items, this becomes problematic.

I'm wondering if there could be some way (via some special http header
or otherwise) to ensure that all requests from a given user/session
will stay stuck to the same JVM.

Any other possible solutions I could consider? (Memcache, BTW, is not
an option, as the amount of data I'm building up in memory is more
than the 1MB maximum for memcache entries.)

thanks,

...stephan

--

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: Text Search Support for Java

2009-12-02 Thread Ikai L (Google)
Full text search isn't on our public roadmap:
http://code.google.com/appengine/docs/roadmap.html

The link describes what we plan on releasing in the upcoming months.

On Wed, Dec 2, 2009 at 3:28 PM, steveb steve.buikhui...@gmail.com wrote:

 I'm also very interested in this feature. I'm looking at plugging in
 Lucene ( http://www.kimchy.org/searchable-google-appengine-with-compass
 ) to achieve search but I can imagine that there will be lots of
 issues with storage, indexing, security, CPU use etc with this
 solution.

 If we can get an indication of rough roadmap then we can decide
 whether to delay and wait or bite off this hairy bit of integration
 work.

 p.s. would it be possible to bridge between java and python
 SearchableModel? I think this would be less total work than plugging
 in Lucene. I'd be happy to hear any war stories in this area.

 Thanks, Steve

 On Dec 3, 7:53 am, lent lentakeu...@gmail.com wrote:
  Hi,
 
  This question is targeted at Google guys.  Is there any plans to have
  limited support for full text search for Java, i.e. something like the
  equivalent of SearchableModel in Python, and if so when can this be
  expected?  When is FULL support for full text search be expected for
  appengine (Python and Java)?
 
  Regards,
  Len

 --

 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

--

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] Getting Unable to Upload error msg while deploying to Java GAE as of 6:00 pm EST.

2009-12-02 Thread oth
Hello,

We need help. As of 6pm EST we are consistently seeing an error msg
across all our apps, right when it tries to upload index definitions.
Dashboard does not show anything out of the ordinary.

java.io.IOException: Error posting to URL:
http://appengine.google.com/api/datastore/index/add?app_id=ifunandgamesversion=4;
500 Internal Server Error

Server Error (500)
A server error has occurred.


The logs show the following:

Unable to upload:
java.io.IOException: Error posting to URL:
http://appengine.google.com/api/datastore/index/add?app_id=ifunandgamesversion=4;
500 Internal Server Error

Server Error (500)
A server error has occurred.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:143)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:81)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:415)
at com.google.appengine.tools.admin.AppVersionUpload.updateIndexes
(AppVersionUpload.java:143)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:120)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:53)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


--

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: Text Search Support for Java

2009-12-02 Thread Don Schwarz
FYI, it should be possible to port SearchableModel to Java and run it on top
of our low-level datastore API.  We have no immediate plans to do that, but
it would make a nice open-source contribution.

You may want to play around with SearchableModel in Python first to ensure
that its performance characteristics and functionality are acceptable for
your task before you invest the effort, though.

On Wed, Dec 2, 2009 at 5:44 PM, Ikai L (Google) ika...@google.com wrote:

 Full text search isn't on our public roadmap:
 http://code.google.com/appengine/docs/roadmap.html

 The link describes what we plan on releasing in the upcoming months.


 On Wed, Dec 2, 2009 at 3:28 PM, steveb steve.buikhui...@gmail.com wrote:

 I'm also very interested in this feature. I'm looking at plugging in
 Lucene ( http://www.kimchy.org/searchable-google-appengine-with-compass
 ) to achieve search but I can imagine that there will be lots of
 issues with storage, indexing, security, CPU use etc with this
 solution.

 If we can get an indication of rough roadmap then we can decide
 whether to delay and wait or bite off this hairy bit of integration
 work.

 p.s. would it be possible to bridge between java and python
 SearchableModel? I think this would be less total work than plugging
 in Lucene. I'd be happy to hear any war stories in this area.

 Thanks, Steve

 On Dec 3, 7:53 am, lent lentakeu...@gmail.com wrote:
  Hi,
 
  This question is targeted at Google guys.  Is there any plans to have
  limited support for full text search for Java, i.e. something like the
  equivalent of SearchableModel in Python, and if so when can this be
  expected?  When is FULL support for full text search be expected for
  appengine (Python and Java)?
 
  Regards,
  Len

 --

 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

  --
 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: GData Java API known to (not) work on GAE?

2009-12-02 Thread Bobby
Here's the issue entry:
http://code.google.com/p/googleappengine/issues/detail?id=700can=1q=gdatacolspec=ID%20Type%20Status%20Priority%20Stars%20Owner%20Summary%20Log%20Component

I appreciate any effort towards finding a way around this.

Bobby

On Dec 2, 5:21 pm, Toby Reyelts to...@google.com wrote:
 On Tue, Dec 1, 2009 at 3:21 AM, Bobby bobbysoa...@gmail.com wrote:
  Toby, there's one obstacle though, the GAE URLFetch timeout doesn't
  play nicely with the GData API. I've found that timeouts happen fairly
  frequently at peak hours, depending on the GData system you're
  accessing.

  There has been an issue posted to the issue tracker about this, but
  it's indicated that a fix isn't planned

 Do you have a pointer to this issue? I tried searching but couldn't find
 anything relevant.

  - personally i don't think
  doubling the timeout interval would help much either. In the future
  would it be possible for developers to allow certain scripts to go
  over some of the imposed restrictions, such as the URLFetch timeout
  interval, at whatever cost is appropriate? Without this capability,
  server side API calls really suffer.

 We're working on ways to deal better with long (for example several
 minutes), blocking operations that are out of developers' control, and
 URLFetch is definitely one of our use cases.



  BTW, Guillaume, if you're using GWT on your project consider using the
  gwt-gdata (http://code.google.com/p/gwt-gdata/) library, it's not as
  complete as the Java library, as far as systems, but it can help
  reduce AppEngine load since the requests go directly to GData, from
  the client.

  Bobby

  On Nov 30, 2:15 pm, Guillaume Laforge glafo...@gmail.com wrote:
   Ah excellent, I missed that information and had not seen that section
   in the knowledge base.
   Thanks a lot, Toby!

   On Mon, Nov 30, 2009 at 19:54, Toby Reyelts to...@google.com wrote:
Gdata works fine in the Java runtime but, but you need to disable its
  cookie
handler.

On Mon, Nov 30, 2009 at 1:00 PM, Guillaume Laforge glafo...@gmail.com

wrote:

Hi all,

I was wondering whether anyone had succeeded using the GData APIs on
their GAE applications?
I wanted to access the Picasa Web Albums, using the Java libraries of
GData.
But it seems it's not possible, as I'm getting some errors (locally, I
have not tried deployed in the cloud):

ava.security.AccessControlException: access denied
(java.net.NetPermission getCookieHandler)
       at

  java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
       at

  java.security.AccessController.checkPermission(AccessController.java:427)
       at
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
       at

  com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
       at java.net.CookieHandler.getDefault(CookieHandler.java:58)
       at

  com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:316)
       at

  com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:305)
       at

  com.google.gdata.client.http.GoogleGDataRequest.clinit(GoogleGDataRequest.java:408)
       at

  com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
       at

  com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
       at
  com.google.gdata.client.Service.createRequest(Service.java:697)
       at

  com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
       at
com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
       at com.google.gdata.client.Service.getFeed(Service.java:915)
       at
com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
       at com.google.gdata.client.Service.getFeed(Service.java:935)

I guess the GData API is not GAE-compliant?
Am I correct?

--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
   http://www.springsource.com/g2one

--

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

[appengine-java] Re: GData Java API known to (not) work on GAE?

2009-12-02 Thread Bobby
BTW, the example described in that issue is very specific and can be
fixed through paging, but other scenarios, such as retrieving document
contents or calling any intensive web service, not specifically GData,
are more difficult, unless the web service is your own.

Bobby

On Dec 2, 6:59 pm, Bobby bobbysoa...@gmail.com wrote:
 Here's the issue 
 entry:http://code.google.com/p/googleappengine/issues/detail?id=700can=1q...

 I appreciate any effort towards finding a way around this.

 Bobby

 On Dec 2, 5:21 pm, Toby Reyelts to...@google.com wrote:

  On Tue, Dec 1, 2009 at 3:21 AM, Bobby bobbysoa...@gmail.com wrote:
   Toby, there's one obstacle though, the GAE URLFetch timeout doesn't
   play nicely with the GData API. I've found that timeouts happen fairly
   frequently at peak hours, depending on the GData system you're
   accessing.

   There has been an issue posted to the issue tracker about this, but
   it's indicated that a fix isn't planned

  Do you have a pointer to this issue? I tried searching but couldn't find
  anything relevant.

   - personally i don't think
   doubling the timeout interval would help much either. In the future
   would it be possible for developers to allow certain scripts to go
   over some of the imposed restrictions, such as the URLFetch timeout
   interval, at whatever cost is appropriate? Without this capability,
   server side API calls really suffer.

  We're working on ways to deal better with long (for example several
  minutes), blocking operations that are out of developers' control, and
  URLFetch is definitely one of our use cases.

   BTW, Guillaume, if you're using GWT on your project consider using the
   gwt-gdata (http://code.google.com/p/gwt-gdata/) library, it's not as
   complete as the Java library, as far as systems, but it can help
   reduce AppEngine load since the requests go directly to GData, from
   the client.

   Bobby

   On Nov 30, 2:15 pm, Guillaume Laforge glafo...@gmail.com wrote:
Ah excellent, I missed that information and had not seen that section
in the knowledge base.
Thanks a lot, Toby!

On Mon, Nov 30, 2009 at 19:54, Toby Reyelts to...@google.com wrote:
 Gdata works fine in the Java runtime but, but you need to disable its
   cookie
 handler.

 On Mon, Nov 30, 2009 at 1:00 PM, Guillaume Laforge glafo...@gmail.com

 wrote:

 Hi all,

 I was wondering whether anyone had succeeded using the GData APIs on
 their GAE applications?
 I wanted to access the Picasa Web Albums, using the Java libraries of
 GData.
 But it seems it's not possible, as I'm getting some errors (locally, 
 I
 have not tried deployed in the cloud):

 ava.security.AccessControlException: access denied
 (java.net.NetPermission getCookieHandler)
        at

   java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
        at

   java.security.AccessController.checkPermission(AccessController.java:427)
        at
 java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at

   com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:151)
        at java.net.CookieHandler.getDefault(CookieHandler.java:58)
        at

   com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:316)
        at

   com.google.gdata.client.http.GoogleGDataRequest$GoogleCookieHandler.init(GoogleGDataRequest.java:305)
        at

   com.google.gdata.client.http.GoogleGDataRequest.clinit(GoogleGDataRequest.java:408)
        at

   com.google.gdata.client.http.GoogleGDataRequest$Factory.createRequest(GoogleGDataRequest.java:73)
        at

   com.google.gdata.client.http.HttpGDataRequest$Factory.getRequest(HttpGDataRequest.java:162)
        at
   com.google.gdata.client.Service.createRequest(Service.java:697)
        at

   com.google.gdata.client.GoogleService.createRequest(GoogleService.java:525)
        at
 com.google.gdata.client.Service.createFeedRequest(Service.java:1074)
        at com.google.gdata.client.Service.getFeed(Service.java:915)
        at
 com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
        at com.google.gdata.client.Service.getFeed(Service.java:935)

 I guess the GData API is not GAE-compliant?
 Am I correct?

 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

 --

 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 

[appengine-java] Java heap size

2009-12-02 Thread jacek.ambroziak
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 running into OutOfMemory errors while
indexing larger numbers of publications,
but not huge number either: ~ 300. Data (typically byte arrays) I
manipulate are on the order of 20 MB,
again a very small mem requirement for this Century (both my dev
computers are now 4 GB).

Yes, I could bend over backwards and start using Datastore for some
form of poor man's virtual memory
but it wouldn't win all that much more space, would slow down and
complicate the code.

So... how much heap space do we have? Can we affect the size?

--

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: Getting Unable to Upload error msg while deploying to Java GAE as of 6:00 pm EST.

2009-12-02 Thread oth
Problem resolved by Google.

https://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/376ae214cf896c4f

Thanks

On Dec 2, 6:44 pm, oth other...@gmail.com wrote:
 Hello,

 We need help. As of 6pm EST we are consistently seeing an error msg
 across all our apps, right when it tries to upload index definitions.
 Dashboard does not show anything out of the ordinary.

 java.io.IOException: Error posting to 
 URL:http://appengine.google.com/api/datastore/index/add?app_id=ifunandgam...
 500 Internal Server Error

 Server Error (500)
 A server error has occurred.

 The logs show the following:

 Unable to upload:
 java.io.IOException: Error posting to 
 URL:http://appengine.google.com/api/datastore/index/add?app_id=ifunandgam...
 500 Internal Server Error

 Server Error (500)
 A server error has occurred.

         at com.google.appengine.tools.admin.ServerConnection.send
 (ServerConnection.java:143)
         at com.google.appengine.tools.admin.ServerConnection.post
 (ServerConnection.java:81)
         at com.google.appengine.tools.admin.AppVersionUpload.send
 (AppVersionUpload.java:415)
         at com.google.appengine.tools.admin.AppVersionUpload.updateIndexes
 (AppVersionUpload.java:143)
         at com.google.appengine.tools.admin.AppVersionUpload.doUpload
 (AppVersionUpload.java:120)
         at com.google.appengine.tools.admin.AppAdminImpl.update
 (AppAdminImpl.java:53)
         at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
 (AppEngineBridgeImpl.java:271)
         at
 com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
 (DeployProjectJob.java:148)
         at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
 (InternalWorkspaceJob.java:38)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

--

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: Any single entity or entity group can only be updated about five times a second.

2009-12-02 Thread Dominik Steiner
Tim,

you might find some information related to that in this thread

http://groups.google.com/group/google-appengine-java/browse_thread/thread/7ce9ce5c89f990f0/fd37d79492099ec6

HTH

Dominik

On 1 Dez., 23:42, Tim Cooper tco...@gmail.com wrote:
 Can anyone give me a clearer understanding of what an update is, in
 the statement:  Any single entity or entity group can only be updated
 about five times a second.

 What level is an update?  Is it a single update to a single field?
 Is it a set of field updates to a single Java object?   Is it a single
 transaction, updating a single entity group?

 I have written my application expecting a update to mean a set of
 updates to a single entity group.  In one XML request, I am populating
 my datastore with 900 child entities, all within a single entity
 group.  The total amount of data involved is about 300K.  I thought
 that this size would be quite manageable for AppEngine, and I wanted
 transactions to be atomic.  However, it appears that this means 900
 writes and so this call times out.

 The frustrating thing was that my application worked perfectly in the
 development environment.  I thought that that was a good indication
 that it would work when deployed.  It has been difficult to debug it
 using frequent deploys.

--

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: Any single entity or entity group can only be updated about five times a second.

2009-12-02 Thread Tim Cooper
Thanks, Dominik, but I still need to know more - (I understand that
the 1-10 updates per second is only per entity group so scaleability
comes with having fine-grained entity groups).

* What is an update exactly?  Is it a call to pm.makePersistent
()?  Is it a call to tx.commit()?  Is it a call to pm.flush()?
Is it an update of a single field in a single Java object?  Is it an
invocation of doGet()/doPost()?

* Suppose you want to do multiple updates within the one entity group
within a single Java function.  At what point is the 100ms cost
incurred?   Which function call blocks for the 100ms?

* Is it possible to create 900 child entities in an entity group in a
single Java function call, by structuring this creation of 900
objects as a single update?

* If I don't use transactions, does this 1-10 updates per second
limitation go away?

I have written an application which uses a single page request to send
an XML document consisting of 900 objects to my GAE app.  My GAE app
then puts this list of 900 items into the datastore in a single entity
group.   I am happy with the limitation that only 1-10 people can do
this to the same entity group per second.  What I'm not entirely happy
about is that the call fails because it hits the 30 second timeout.  I
don't want the timeout increased, I want the page request to be
processed quicker.  If all this activity is happening within the one
Java function call, without commit()'s or pm.flush()'s inside the
loop, then shouldn't this be regarded as a single update?

It may be relevant to explain the data model:  the head object has a
field:ArrayListStudent Students.  It's set up as an owned,
bijectional one-to-many relationship, using the annotations described
in the GAE documentation.
I'm able to process 400 of these objects in 20 seconds...i.e. 20 per
second.  As mentioned elsewhere, the amount of data involved is small,
~ 300K and there's only one index involved.  This is the sort of thing
that would be processed instantaneously in other technologies.



On Dec 3, 3:29 pm, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Tim,

 you might find some information related to that in this thread

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 HTH

 Dominik

 On 1 Dez., 23:42, Tim Cooper tco...@gmail.com wrote:



  Can anyone give me a clearer understanding of what an update is, in
  the statement:  Any single entity or entity group can only be updated
  about five times a second.

  What level is an update?  Is it a single update to a single field?
  Is it a set of field updates to a single Java object?   Is it a single
  transaction, updating a single entity group?

  I have written my application expecting a update to mean a set of
  updates to a single entity group.  In one XML request, I am populating
  my datastore with 900 child entities, all within a single entity
  group.  The total amount of data involved is about 300K.  I thought
  that this size would be quite manageable for AppEngine, and I wanted
  transactions to be atomic.  However, it appears that this means 900
  writes and so this call times out.

  The frustrating thing was that my application worked perfectly in the
  development environment.  I thought that that was a good indication
  that it would work when deployed.  It has been difficult to debug it
  using frequent deploys.

--

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 image aspect ratio

2009-12-02 Thread moissinac
I've plan for testing external library, but surely not before next
week.
You could try JAI, but I don't know if it is supported by GJava
(Google Java)

--

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: Any single entity or entity group can only be updated about five times a second.

2009-12-02 Thread 风笑雪
It means you can do 5 writes per second for 1 entity group.
Say you have 1000 entities in 1 entity group, you can update each of
them in a transaction, and do this transaction at most 5 times/sec.
But most time you may just update 1 or 2 entities, and it's also no
more than 5 times/sec.
And if the 1000 entities are not in entity groups, you can update each
of them for 5 times/sec.

So don't use big entity group, break it to make sure no 2 user will
write to 1 entity group at the same time.

2009/12/3 Tim Cooper tco...@gmail.com:
 Thanks, Dominik, but I still need to know more - (I understand that
 the 1-10 updates per second is only per entity group so scaleability
 comes with having fine-grained entity groups).

 * What is an update exactly?  Is it a call to pm.makePersistent
 ()?  Is it a call to tx.commit()?  Is it a call to pm.flush()?
 Is it an update of a single field in a single Java object?  Is it an
 invocation of doGet()/doPost()?

 * Suppose you want to do multiple updates within the one entity group
 within a single Java function.  At what point is the 100ms cost
 incurred?   Which function call blocks for the 100ms?

 * Is it possible to create 900 child entities in an entity group in a
 single Java function call, by structuring this creation of 900
 objects as a single update?

 * If I don't use transactions, does this 1-10 updates per second
 limitation go away?

 I have written an application which uses a single page request to send
 an XML document consisting of 900 objects to my GAE app.  My GAE app
 then puts this list of 900 items into the datastore in a single entity
 group.   I am happy with the limitation that only 1-10 people can do
 this to the same entity group per second.  What I'm not entirely happy
 about is that the call fails because it hits the 30 second timeout.  I
 don't want the timeout increased, I want the page request to be
 processed quicker.  If all this activity is happening within the one
 Java function call, without commit()'s or pm.flush()'s inside the
 loop, then shouldn't this be regarded as a single update?

 It may be relevant to explain the data model:  the head object has a
 field:    ArrayListStudent Students.  It's set up as an owned,
 bijectional one-to-many relationship, using the annotations described
 in the GAE documentation.
 I'm able to process 400 of these objects in 20 seconds...i.e. 20 per
 second.  As mentioned elsewhere, the amount of data involved is small,
 ~ 300K and there's only one index involved.  This is the sort of thing
 that would be processed instantaneously in other technologies.



 On Dec 3, 3:29 pm, Dominik Steiner dominik.j.stei...@googlemail.com
 wrote:
 Tim,

 you might find some information related to that in this thread

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 HTH

 Dominik

 On 1 Dez., 23:42, Tim Cooper tco...@gmail.com wrote:



  Can anyone give me a clearer understanding of what an update is, in
  the statement:  Any single entity or entity group can only be updated
  about five times a second.

  What level is an update?  Is it a single update to a single field?
  Is it a set of field updates to a single Java object?   Is it a single
  transaction, updating a single entity group?

  I have written my application expecting a update to mean a set of
  updates to a single entity group.  In one XML request, I am populating
  my datastore with 900 child entities, all within a single entity
  group.  The total amount of data involved is about 300K.  I thought
  that this size would be quite manageable for AppEngine, and I wanted
  transactions to be atomic.  However, it appears that this means 900
  writes and so this call times out.

  The frustrating thing was that my application worked perfectly in the
  development environment.  I thought that that was a good indication
  that it would work when deployed.  It has been difficult to debug it
  using frequent deploys.

 --

 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.




--

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.




[google-appengine] Re: DB Model design, fan-out, lots of writes?

2009-12-02 Thread peterk
Nice job encoding the necessary info in keys :)

Is there value in putting the MessageRead entity in the same entity
group as the message?

Not sure but don't think you'd need updates to MessageRead to be
transactional with any updates to Message or other MessageRead
entities for the same message?

Keep them in their own entity groups and you won't have a contention
problem. A write behind cache could still be useful for reducing
writes though, if you can handle the risk of the odd dropped update.

On Dec 2, 4:43 am, Julian Namaro namarojul...@gmail.com wrote:
 There is a better solution to this problem.
 You can use a special entity MessageRead with no property and a
 key_name= message_id + recipient_id

 indexes = keys_only query on MessageIndexes
 for k in indexes:
   keys.append( k.parent() )
   keys.append( db.Key.from_path('MessageRead', k.parent().id() +
 recipient_id) )
 messages = db.get(keys)

 You can put MessageRead in the same entity group than Message to do
 transactional mark as read, but then as Peterk said there might be
 contention if the message has thousands of recipients. The other
 option is to leave it a root entity and write it in a task queue after
 a message is read.

 On Nov 6, 1:35 am, Chris cskjoldb...@gmail.com wrote:

  Hi All

  I'm looking for some input on Db.Model design for the following
  scenario:

  1) A User can send a message which will to anywhere between 1 to 5000
  receipients with 200-2000 receipients being by far the the most
  common.
  2) Each recipient is expected to receive between 1 and 50 messages a
  day.
  3) When a receipent has read a message it needs to be flagged as read.

  For the distribtion of messages to receipients I took inspiration from
  thishttp://www.youtube.com/watch?v=AgaL6NGpkB8
  (About 16 minutes into the video) he suggests a model like this:

  class Message(db.Model):
    sender=db.StringProperty()
    body=db.TextProperty()

  class MessageIndex(db.Model):
    recipient = db.StringListProperty()

  with Message and MessageIndex being in the same entity group. In short
  the benefit to this design is supposedly that I can do a key only
  query on
  the MessageIndex for a particular user. From the MessageIndex keys
  returned for the recepient I can extract the actual Message entity
  keys and fetch those directly by key.

  That's all well and good...but then I get to 3)...recipients needing
  to flag messages as read. For that I'm contemplating something like
  this:

  class MessageReadIndex(db.Model):
    recipient=db.StringProperty()
    month=db.IntegerProperty()
    messagesRead = db.StringListProperty(indexed=False)

  When a recipient asks for a list of messages it will be sorted by
  date, newest messages first, and paged (think gmail).
  In the same page request I can query the MessageReadIndex for the user
  and month(s) in question. From here I can loop through each message in
  memory and
  check to see if it has already been read.

  When the recipient clicks a message to read it I can also retrieve the
  MessageReadIndex entity and append the Message Id to the messagesRead
  property and put() the entity.
  This last bit is what has be a bit worried. It will be quite a few
  writes from every recipient every day...again think gmail ;-) Not
  indexing the messagesRead
  property should help minimize the number of index entries that need
  updating ...but still. Am I being overly paranoid and prematurely
  optimizing at an unreasonably
  level? Does anybody have any better ideas as for how to handle this?

  Thanks in advance for your CPU time!

  /Chris



--

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-appeng...@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] urlfetch.fetch stream reading?

2009-12-02 Thread Silicon Dragon
Hi,

Is there any way on app engine to read a partial HTTP stream, and return
(synchronously, or asynchronously) with the results before the server hangs
up?
Using Google Wave, the
BrowserChannelhttp://closure-library.googlecode.com/svn/trunk/closure/goog/docs/class_goog_net_BrowserChannel.htmlserver
uses this method to stream wave listings to clients directly.
Javascript allows for processing it, so I doubt it would be a problem with
app engine?

Thank you,
-SDr

--

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-appeng...@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 is slow on queries involving many entities, but a smallish dataset

2009-12-02 Thread Stephen


On Dec 2, 3:02 am, Eric Rannaud eric.rann...@gmail.com wrote:
 On Tue, Dec 1, 2009 at 6:49 PM, Stephen sdea...@gmail.com wrote:
  I should say that a query with 1 result takes about 30ms. 128*30 =
  3840 ms. That's pretty close to what I'm seeing for 128, indicating a
  linear scaling in the number of entities. Which would be really bad,
  and unexpected.

  It's really hard to guess what's going on internally, without any
  visibility of the architecture.

  This is a recent change. It used to be that you were charged whatever
  api_cpu it took to run your query, as measured on the machines. Now
  there seems to be an algorithm that generates the cost based on your
  entities and query type, so it will be the same from query to query.

  This is good because now your costs do not suddenly go up 30% because
  Google's infrastructure is having a bad day. The incentives used to be
  all wrong.  The change is bad because Google didn't announce it. Are
  the api_cpu costs exactly the same as before?  If not, it is an
  unannounced price in/decrease.

  Has anybody looked (publicly) at datastore performance depending on
  query size, locality, etc? If not, I might try to gather some
  extensive data, and write it up.

  It would be nice to work out what the algorithm for api_cpu is...

 Note: I am *not* using api_cpu time (not available in the Java
 runtime, as far I know). I am using system wall-clock time.
 I am doing the Java equivalent of two gettimeofday() and computes the
 difference.


It should be in the logs, which are accessible via the admin console.

--

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-appeng...@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.




Re: [google-appengine] urlfetch.fetch stream reading?

2009-12-02 Thread Nick Johnson (Google)
Hi,

It's not possible to stream results using urlfetch - requests are
accomplished by means of an RPC, which only returns when the complete result
is available.

-Nick Johnson

On Wed, Dec 2, 2009 at 11:28 AM, Silicon Dragon sdr...@gmail.com wrote:

 Hi,

 Is there any way on app engine to read a partial HTTP stream, and return
 (synchronously, or asynchronously) with the results before the server hangs
 up?
 Using Google Wave, the 
 BrowserChannelhttp://closure-library.googlecode.com/svn/trunk/closure/goog/docs/class_goog_net_BrowserChannel.htmlserver
  uses this method to stream wave listings to clients directly.
 Javascript allows for processing it, so I doubt it would be a problem with
 app engine?

 Thank you,
 -SDr

  --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.




-- 
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-appeng...@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 project name

2009-12-02 Thread dennisM
I've changed the name of my project in Eclipse. After the change, it
seemed that when I changed a module the changes weren't being picked
up. So I changed the name of the module itself to see if that would
force it to be seen and now I'm getting module not found. Is it not
possible to change the project name?

To reproduce the problem: submit http://www.speakingofchinese.com/jspsoc

Here's  the stack trace:

12-02 09:08AM 58.725 /jspsoc 500 185ms 233cpu_ms 0kb Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.3 (KHTML, like
Gecko) Chrome/4.0.223.16 Safari/532.3,gzip(gfe),gzip(gfe)
96.57.159.10 - - [02/Dec/2009:09:08:58 -0800] GET /jspsoc HTTP/1.1
500 0 - Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/
532.3 (KHTML, like Gecko) Chrome/4.0.223.16 Safari/532.3,gzip(gfe),gzip
(gfe) www.speakingofchinese.com
W 12-02 09:08AM 58.877
EXCEPTION
java.lang.ClassNotFoundException:
com.eastmountain.soc.LoadSOCReferences
at com.google.appengine.runtime.Request.process-9bd3686c1c72283a
(Request.java)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at org.mortbay.util.Loader.loadClass(Loader.java:71)
at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:73)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
233)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at org.mortbay.jetty.servlet.ServletHandler.initialize
(ServletHandler.java:612)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1218)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:191)
at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:168)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:239)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5135)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5133)
at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
363)
at com.google.net.rpc.impl.Server$2.run(Server.java:814)
at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
at com.google.net.rpc.impl.Server.processRequest(Server.java:351)
at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:437)
at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
436)
at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:396)
at java.lang.Thread.run(Unknown Source)

--

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-appeng...@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] Index stuck in 'Build' phase

2009-12-02 Thread Apps Guru
I created a new App, this is my 8th app. All previous times, index
were built in less than a minute. For the first time, my index is
stuck in 'build' phase. Can anyone help. The id is sharedcontacts-
westonplayhouse

Let me know if you need further information

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-appeng...@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] Received ClassNotFoundException deserializing a byte array.

2009-12-02 Thread bartatamas
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 ClassNotFoundException deserializing a byte array.
org.datanucleus.exceptions.NucleusException: Received
ClassNotFoundException deserializing a byte array.
at org.datanucleus.store.appengine.SerializationManager$1.deserialize
(SerializationManager.java:146)
at org.datanucleus.store.appengine.SerializationManager.deserialize
(SerializationManager.java:171)
at
org.datanucleus.store.appengine.DatastoreFieldManager.deserializeFieldValue
(DatastoreFieldManager.java:321)
at
org.datanucleus.store.appengine.DatastoreFieldManager.fetchObjectField
(DatastoreFieldManager.java:297)
at org.datanucleus.state.AbstractStateManager.replacingObjectField
(AbstractStateManager.java:1197)
at bt.web.reminder.database.Event.jdoReplaceField(Event.java)
at bt.web.reminder.database.Event.jdoReplaceFields(Event.java)
at org.datanucleus.state.JDOStateManagerImpl.replaceFields
(JDOStateManagerImpl.java:2772)
at org.datanucleus.state.JDOStateManagerImpl.replaceFields
(JDOStateManagerImpl.java:2791)
at
org.datanucleus.store.appengine.DatastorePersistenceHandler.fetchObject
(DatastorePersistenceHandler.java:443)
at org.datanucleus.state.JDOStateManagerImpl.loadUnloadedFields
(JDOStateManagerImpl.java:1560)
at org.datanucleus.jdo.state.Hollow.transitionRetrieve(Hollow.java:
161)
at org.datanucleus.state.AbstractStateManager.retrieve
(AbstractStateManager.java:484)
at org.datanucleus.state.JDOStateManagerImpl.preSerialize
(JDOStateManagerImpl.java:4455)
at bt.web.reminder.database.Event.jdoPreSerialize(Event.java)
at bt.web.reminder.database.Event.writeObject(Event.java)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.ArrayList.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
at bt.web.reminder.database.Account.writeObject(Account.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.google.appengine.api.memcache.MemcacheSerialization.serialize
(MemcacheSerialization.java:257)
at com.google.appengine.api.memcache.MemcacheServiceImpl.put
(MemcacheServiceImpl.java:314)
at com.google.appengine.api.memcache.stdimpl.GCache.put(GCache.java:
164)


Do you know what should I do? What does this message mean:

Caused by: java.lang.ClassNotFoundException
Unexpected exception from servlet:
org.datanucleus.exceptions.NucleusException: Received
ClassNotFoundException deserializing a byte 

[google-appengine] RequestResponse limit are billable?

2009-12-02 Thread Wega
Hello.
When i try to upload file larger than ~10MB i am getting:

 Error: Request Entity Too Large
 Your client issued a request that was too large.

This page (http://code.google.com/intl/en/appengine/docs/quotas.html)
lists
the request and response limit at 10MB.

Are quota billable? Can I increase response and request size to
30-50MB?

--

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-appeng...@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.




Re: [google-appengine] One app for multiple devices?

2009-12-02 Thread Nick Johnson (Google)
Hi Catherine,

App Engine provides a server-end hosting solution - it can't magic away
device issues. You could build your server-end components on App Engine, and
use something like phone gap (http://phonegap.com/) on the client side,
however.

-Nick Johnson

On Tue, Dec 1, 2009 at 6:28 PM, cwspence catherine.spe...@intel.com wrote:

 In Intel IT, we are thinking about our emerging enterprise client
 strategy and the goal to support a broad range of clients without the
 overhead of writing separate applications for each device.  Yet, on
 capable devices we would like to retain the local execution model to
 get the best user experience, taking advantage of local compute power
 and context-aware capabilities.  A browser-based web application/
 portal is not sufficient for all applications.

 If we use Google App Engine to develop client applications does it
 help our cause?   Is there a strategy to make it easy to leverage
 client capabilities and options across many kinds of clients?

 Catherine Spence
 Enterprise Architect, Intel Information Technology

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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.




Re: [google-appengine] RequestResponse limit are billable?

2009-12-02 Thread Nick Johnson (Google)
Hi Wega,

It's not currently possible to increase the request or response limits -
they're fixed at 10MB each.

-Nick Johnson

On Wed, Dec 2, 2009 at 10:06 AM, Wega realw...@gmail.com wrote:

 Hello.
 When i try to upload file larger than ~10MB i am getting:

  Error: Request Entity Too Large
  Your client issued a request that was too large.

 This page (http://code.google.com/intl/en/appengine/docs/quotas.html)
 lists
 the request and response limit at 10MB.

 Are quota billable? Can I increase response and request size to
 30-50MB?

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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.




Re: [google-appengine] Index stuck in 'Build' phase

2009-12-02 Thread Nick Johnson (Google)
Hi,

How long has your index been building? It's not unusual for index builds to
take up to 24 hours.

-Nick Johnson

On Wed, Dec 2, 2009 at 6:02 PM, Apps Guru mbhargava...@gmail.com wrote:

 I created a new App, this is my 8th app. All previous times, index
 were built in less than a minute. For the first time, my index is
 stuck in 'build' phase. Can anyone help. The id is sharedcontacts-
 westonplayhouse

 Let me know if you need further information

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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.




Re: [google-appengine] Querying datastore objects by last date/time accessed?

2009-12-02 Thread Nick Johnson (Google)
Hi,

The method you describe (a datetime field that you update on each access) is
the most efficient way of doing this.

-Nick Johnson

On Tue, Dec 1, 2009 at 7:22 PM, mscwd01 mscw...@gmail.com wrote:

 Hey,

 I wish to retrieve a single datastore object such that the object
 which has NOT been retrieved for the longest amount of time is
 returned.

 I.e. If object A was last retrieved 5 days ago, object B 2 days ago
 and object C 12 days ago the order of retrieval would be:

 Object B (first db call) - Object A (second db call), Object C (third
 db call)

 I could simply assign a datetime field to each object and update this
 time during each retrieval, then organise all the objects by this
 field upon each database query. However, if I were to have tens of
 thousands of objects would this be an efficient way of achieving this?

 I'd be interested to know if there may be a better way of doing it.

 Many 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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.




Re: [google-appengine] Can a bank system be transactional and low contentious?

2009-12-02 Thread Nick Johnson (Google)
Hi,

I recently wrote an article about the bank-transfer use case in App Engine,
and how to do it transactionally:

http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine

-Nick Johnson

On Mon, Nov 30, 2009 at 7:04 PM, Jeff Schnitzer j...@infohazard.org wrote:

 I'm pretty sure the answer to your question is banking is not an
 appropriate problem space for Google App Engine.  Sure, you could
 eventually make it work by writing your own in-app 2pc layer, but why?
  There are other platforms that make this easier.

 Consider also that there is no data robustness guarantee for GAE.
 Your data could go away without recourse.

 Use the right tool for the right job.  If you need fine transaction
 control across large datasets, GAE is probably not for you.  Most
 problem domains don't require the level of transactional integrity
 that banking demands.

 Jeff

 On Thu, Nov 26, 2009 at 7:40 PM, 风笑雪 kea...@gmail.com wrote:
  I just watched some Google I/O videos about GAE yesterday, and I have
  2 questions about transaction.
 
  Assume I need to build a bank system, two clients (Alice and Bob) want
  to transfer one's money to the other.
  So when I create Alice and Bob, I must put them in the same entity group:
  alice = User(name='Alice')
  bob = User(parent=alice, name='Bob')
 
  If I have millions of clients, and they all have a chance to make a
  deal with each other, then they should be all in the same entity
  group:
  adam = User(name='Adam')
  alice = User(parent=adam,name='Alice')
  bob = User(parent=adam, name='Bob')
  chris = User(parent=adam, name='Chris')
  ...
 
  As the presentation says, writes to the entity group is serialized,
  and a write operation takes at least 10ms, a transaction needs at
  least 1 reed and 3 writes, so I can't do more than 33 deals/sec, is it
  scalable enough?
  And having such a big entity group may easily cause high contention,
  maybe most of the transactions will fail.
  I wonder how could I break the huge group into small entity groups?
 
 
  The second question is about the root entity.
  The presentation says, root keeps a timestamp for the entire group.
  But document also says, we can delete an ancestor, or just create a
  Key for the ancestor that not exist to specify the parent of the new
  entity.
  So if the root has been deleted, or not exist at all, can this entity
  group still transactional?
 
  --
 
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.
 
 
 

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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.




Re: [google-appengine] Index building taking over 12h

2009-12-02 Thread Nick Johnson (Google)
Hi Eric,

Indexes are built in a queue across all apps, so the index build time has
more to do with what's in the queue ahead of you than how large your data
is. 12 hour build times are not uncommon.

-Nick Johnson

On Mon, Nov 30, 2009 at 6:41 PM, Eric Rannaud eric.rann...@gmail.comwrote:

 I have an index that has been building for over 12h, on less than
 200MB of data, with 500,000 entities. (App: 911pagers)

 Is there something I should do?

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
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-appeng...@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] Jaiku code and exploding indexes

2009-12-02 Thread Carlos Alberto Machado
Hi,

I've studied the Jaiku code ( http://code.google.com/p/jaikuengine/ )
and noticed a piece of it that can cause an exploding index:

- kind: InboxEntry
  properties:
  - name: inbox
  - name: created_at
direction: desc

'inbox' is a StringListProperty and the list is very large for real
cases (in fact, the number of followers of a user of the service).

How can I know if an index will be too large? What are the reference
values?

As I don't have much knowledge of GAE, I want to know if I'm right.


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-appeng...@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: Index building taking over 12h

2009-12-02 Thread jpmorganuk
Hi Nick,

What can be done to speed this up?

Regards,
jpmorganuk

--

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-appeng...@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.




Re: [google-appengine] NullPointerException

2009-12-02 Thread Ikai L (Google)
Have you looked at the logs in the admin console? If you are getting an
exception, the stack trace should be there.

On Tue, Dec 1, 2009 at 2:51 AM, HKHAIRANE hichamkhair...@gmail.com wrote:

 Hey everybody i have a nullpointerexception  from remote server, no
 log , no trace

 does any body know how to find stacktrace

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
Dinesh,

I see the inconsistency. How long have you been writing to this dataset? My
suspicion is that the indexes may have been updated incorrectly in a
previous release due to a bug that we have since addressed. Unfortunately,
the bug fix may not have retroactively addressed the incorrectly updated
indexes.

How large is the dataset? For small datasets, bulk exporting and importing
will address the issue, but for large datasets, we'll have to look to an
alternative solution.

On Tue, Dec 1, 2009 at 3:40 AM, Dinesh Varadharajan 
dinesh.varadhara...@orangescape.com wrote:

 Ikai,
 Unfortunately we don't have dummy data to showcase this. I have a
 reproducible case in production.

 The app id is os-dev.appspot.com.

 if you execute the query

 SELECT * FROM PrimaryData where ApplicationId =
 'Application_1652c875_be0f_11de_b4a5_a3c424aa5af6' and SheetMetadataId
 = 'Sheet001' and Deleted=False

 it returns 8 records.

 and if you execute

 SELECT * FROM PrimaryData where ApplicationId =
 'Application_1652c875_be0f_11de_b4a5_a3c424aa5af6' and SheetMetadataId
 = 'Sheet001'

  it should at least return 8 records(I am removing a condition). but
 it returns only 4 records.

 Please let me know if you want to be added as developer to os-dev to
 be able to access the datastore.

 Dinesh


 On Dec 1, 12:27 am, Ikai L (Google) ika...@google.com wrote:
  Prashant, do you have sample data you can provide? It's even better if it
  isn't real data.
 
  On Sun, Nov 29, 2009 at 3:19 AM, Prashant antsh...@gmail.com wrote:
   what about this - I had a data store entity with known id, and JDOQL
 simply
   failed to retrieve it by id throwing JDOObjectNotFoundException. I
 think
   there is some major issue with datastore/indexes.
 
--
   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.comgoogle-appengine%2bunsubscr...@googlegroups.com
 google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
Do you have a reproducible test case or some code you can post?

On Tue, Dec 1, 2009 at 5:02 AM, Henry enricrequ...@gmail.com wrote:

 Hi Guys,

 Im new at Google App Engine, I've the follow problem:
 When Im recovering a persistent class Announcer, it has one field
 (country) with NO VALUE...I thought that must to be for a bad mapping
 with the annotations creating the proper class, but I don't know how
 to do to get again the Key that I've stored. When Im storing the Key
 (country), it has value, I can see it in the Google App Engine
 DataViewer.
 This is my class with the annotations:

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Announcer {

@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String emailAddress;
@Persistent
private String password;
@Persistent
private String firstName;
@Persistent
private String lastName;
@Persistent
private Key country;

 Anyone could help me?
 Im using Java and JDO.
 Thanks for 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] Migrating an existing PHP/MySQL web application to GAE

2009-12-02 Thread Ikai L (Google)
It's possible to migrate from a relational environment to Google App Engine,
however, this is not something that will simply work out of the box. That
is, you will not be able to push the application an expect it to work. You
have two technical barriers: App Engine does not natively support your
language, and App Engine does not natively support your database layer:

App Engine can run PHP with the help of Quercus:

http://www.webdigi.co.uk/blog/2009/run-php-on-the-google-app-engine/

Your mileage may vary, as your application may make calls that are not
available.

App Engine's datastore is a non-relational datastore built on top of
Google's BigTable. You'd need to rethink your schema and formulate a data
migration plan, then consider how to change your code to deal with the new
data store.

It's certainly not impossible, and there have been App Engine users who have
successfully migrated their applications with great success. The first step
is to learn about App Engine by building an application and understanding
the platform.

On Tue, Dec 1, 2009 at 3:16 AM, Pawan Kumar pawankumar...@gmail.com wrote:

 Hi Gurus,

 I have a beginner's question which might have been answered earlier
 but I could not find it.
 I have a PHP/MySQL based web application running on my premises and I
 want to migrate it to Google Apps.
 Over the period, it has built into a good enough relational database
 schema and historic data.
 The question is is it possible to use this existing data schema and
 the data by uploading it on google apps environment? If yes then how
 and a sample would be appreciated.

 Regards,
 Pawan

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] How can I get the datetime difference by GQL ?

2009-12-02 Thread Ikai L (Google)
No, you'll have to diff the dates at your application layer. The App Engine
datastore is not a relational database and does not define procedures.

On Mon, Nov 30, 2009 at 7:48 PM, 敏怀 黃 manwaa...@gmail.com wrote:

 In SQL,I can use function datediff to achieve that,but how in GQL ?Is
 there any function like datediff in GQL ?
 Thanks and sorry for poor English :)

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
Creating a database per team is a very heavyweight way to address the
problem of data segregation. This is unnecessary and in general, not a
recommended best practice, as you would provide data isolation at the
application layer. The intuitive solution here is to create an entity group
for a league or team (depending on your transactional needs) and place child
entities in that group.

On Tue, Dec 1, 2009 at 10:40 AM, andreas_b andreas.borg...@gmail.comwrote:

 Hi all.

 I'm working on a GWT/GAE project where the idea is to create a portal
 for sport teams. Each sport team can sign up to get an account where
 they can register players, keep track of leagues, matches, statistics
 and so on. Each team should also be able to use their own domain,
 which automatically should load the site with their configuration when
 entered (basically just load the gwt-app with some url-parameter that
 is forwarded to server-side).

 So, coming from a normal SQL-environment, it seems to me that each
 team that signs up should get their own private database for all their
 data. As I understand it, this is not possible with GAE datastore?
 There is a one-to-one mapping between an application and a datastore?

 If this is the case, then what is the best way forward? I guess each
 entity could have a team ID, but it really doesn't seem like a good
 idea. There should be some kind of isolation between the different
 teams' data.

 Registering a new GAE app for each team is not an option either since
 we expect at least hundreds of teams.

 So, is there some way to isolate entities from each other within a GAE
 datastore?
 Also, would it be feasible from a performance point of view to do
 this?

 Or is simply GAE not the right way to go for this kind of web
 offering?

 Thanks in advance.

 BR, Andreas

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
What are you doing on application startup that may be expensive?

On Tue, Dec 1, 2009 at 4:04 PM, Mark markrobertdav...@gmail.com wrote:

 Hi,

  Could someone please help me?  I have a relatively simple app - but
 I am seeing that around 5% of the time, my app fails with error
 'Request was aborted after waiting too long to attempt to service your
 request. Most likely, this indicates that you have reached your
 simultaneous active request limit. This is almost always due to
 excessively high latency in your app. '

  This only happens if the application has not been in use for a few
 minutes.  I can refresh the web page, and my app always works
 immediately.  So I guess the problem is happening when GAE cycles my
 app out and then tries to wake it back up.

  Does anyone have any tips to get around this error?  Is it caused
 because my app is somehow too slow to initialize?

  My appid is mayihelpyoucam

 cheers

 Mark

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
Tim, great find. What do you mean re-use connections? If you let me know,
I'll update the docs and open an issue to provide a better error message.

On Tue, Dec 1, 2009 at 8:56 PM, Tim Hoffman zutes...@gmail.com wrote:

 Ok

 Got the the bottom of it all.

 You need to re-use connections.  If you make too many authenticated
 connections then googles higher up infrastructure
 shuts you down for about 10 min.

 It does highlight some problems in the remote_api code as the error
 messages passed back are particularly informative unless you really
 dig. but at least I understand where the problem is.

 T



 On Dec 2, 11:31 am, Tim Hoffman zutes...@gmail.com wrote:
  OK
 
  Started debugging inside the apiproxy_rpc.py(113)CheckSuccess()
  and what I believe is happening is correct.
 
  the rpc call MaekSyncCall is getting a redirect to a request to login
 
  apiproxy_rpc.py(113)CheckSuccess()
 
  The exception is a HTTPErrror which is a redirect (302)
  to
 
   'https://www.google.com/a/polytechnic.wa.edu.au/ServiceLogin?
  service=ahpassive=truecontinue=http://psc-prod1.appspot.com/_ah/login
  %3Fcon stuff deleted',
 
  Obviously requesting me to log in again.
 
  So somewhere I am running afoul of higher layers in google that watch
  what is going on.
  I am going to need some help from google engineers to get to the
  bottom of this one.
 
  Rgds
 
  Tim Hoffman
 
  On Dec 2, 11:04 am, Tim Hoffman zutes...@gmail.com wrote:
 
   Something I have observerd and can now prove repeatably
 
   Once I get the error 302 inside the remote_api call.  It takes
   somewhere between 2 and 10 mins before I can resubmit the transaction.
   During that that time, if I try the same call from another process (on
   the same box with the same auth details) the call still gets the error
   until such time as something in google lets it go.
 
   It really is looking like I am being clobbered by some google watch
   dog.
 
   T
 
   On Dec 2, 9:58 am, Tim Hoffman zutes...@gmail.com wrote:
 
I am still getting this problem.
 
One of the things I have noticed is the errors (302) are being
propogated by google infrastructure and not recorded any way
in the apps logs.
 
My gut feel is that some other google infrastructure thinks I  am
doing something I shouldn't requires me to re-authenticate but
the remote_api proxies can't deal with a 302 inside a Namerror in
CheckSuccess see stack below.
 
Obviously what I am doing is different to the bulkloader client.
 
Anyone got any suggestions on how I might go about getting to the
bottom of this.
 
T
 
2009-12-02T01:55:49 INFO root Exception sending Rollback:
Traceback (most recent call last):
  File /opt/ktstudio/zope/instances/prod/swantafe.buildout/
google_appengine/google/appengine/api/datastore.py, line 1989, in
RunInTransactionCustomRetries
tx.handle, resp)
  File /opt/ktstudio/zope/instances/prod/swantafe.buildout/
google_appengine/google/appengine/api/apiproxy_stub_map.py, line 72,
in MakeSyncCall
apiproxy.MakeSyncCall(service, call, request, response)
  File /opt/ktstudio/zope/instances/prod/swantafe.buildout/
google_appengine/google/appengine/api/apiproxy_stub_map.py, line
 266,
in MakeSyncCall
rpc.CheckSuccess()
  File /opt/ktstudio/zope/instances/prod/swantafe.buildout/
google_appengine/google/appengine/api/apiproxy_rpc.py, line 111, in
CheckSuccess
raise self.exception
NameError: global name 'txdata' is not defined
 
--
2009-12-02T01:55:49 ERROR Zope.SiteErrorLoghttp://
 10.8.0.134:49081/swan/portal_skins/custom/send_uos
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 328, in _exec
  Module None, line 25, in send_uos
   - PythonScript at /swan/portal_skins/custom/send_uos
   - Line 25
  Module None, line 11, in push
   - PythonScript at /swan/portal_skins/custom/send_uos
   - Line 11
  Module Products.PlonePSC.tools.psc_manager, line 639, in
push_to_appengine
  Module google.appengine.ext.db, line 1064, in get_or_insert
  Module google.appengine.api.datastore, line 1884, in
RunInTransaction
  Module google.appengine.api.datastore, line 1982, in
RunInTransactionCustomRetries
  Module google.appengine.ext.db, line 1059, in txn
  Module google.appengine.ext.db, line 981, in get_by_key_name
  Module google.appengine.ext.db, line 1180, in get
  Module google.appengine.api.datastore, line 234, in Get
  Module google.appengine.api.apiproxy_stub_map, line 72, in
MakeSyncCall
  Module google.appengine.api.apiproxy_stub_map, line 

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

2009-12-02 Thread Eric Rannaud
Crossposting to App Engine Java group: the original thread is at
http://groups.google.com/group/google-appengine/browse_thread/thread/22018ef2e132ac13/54485b787d5a80b5

In a few words: I have a problem with reasonable queries taking a very
long time (several seconds). These queries return 128 entities, from a
total of 500,000 entities of that type in the datastore. Each entity
is about 400 bytes.

On Tue, Dec 1, 2009 at 6:49 PM, Stephen sdea...@gmail.com wrote:
 On Dec 1, 9:12 pm, Eric Rannaud eric.rann...@gmail.com wrote:
 On Tue, Dec 1, 2009 at 11:02 AM, Stephen sdea...@gmail.com wrote:
 On Dec 1, 9:55 am, Eric Rannaud eric.rann...@gmail.com wrote:
 SELECT * FROM MessageS where id = 0  id  128 order by id

     Calendar c = Calendar.getInstance();
     long t0 = c.getTimeInMillis();
     qmsgr = (ListMessageS) qmsg.execute(lo, hi);
     System.err.println(getCMIdRange:qmsg:  + (c.getTimeInMillis() - t0));

 Are you fetching all 128 entities in one batch? If you don't, the
 result is fetched in batches of 20, incurring extra disk reads and rpc
 overhead.

 Not sure how you do that with the Java API, but with python you pass
 '128' to the .fetch() method of a query object.

 As far as I can tell, there is no such equivalent in the Java API. The

 Something like this..?

 DatastoreService datastore =
    DatastoreServiceFactory.getDatastoreService();

 Query query = new Query(MessageS);
 query.addFilter(id, Query.FilterOperator.GREATER_THAN_OR_EQUAL, 0);

 ListEntity messages = datastore.prepare(query)
    .asList(FetchOptions.Builder.withLimit(128));

 You might also have to tweak chunkSize and/or prefetchSize, or ask on
 the Java list.

I did some tests with the code you proposed. The performance remains
essentially the same as with the JDO API, i.e. between 1 and 4 second
per execute/prepare statement (2.5s on average).

DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
Query query = new Query(MessageS);
query.addFilter(id, Query.FilterOperator.GREATER_THAN_OR_EQUAL, lo);
query.addFilter(id, Query.FilterOperator.LESS_THAN, hi);

long t0 = Calendar.getInstance().getTimeInMillis();

ListEntity r = datastore.prepare(query)
.asList(FetchOptions.Builder
.withLimit(128)
.prefetchSize(128)
.chunkSize(128));

System.err.println(LOW:getCMIdRange:qmsg: 
   + (Calendar.getInstance().getTimeInMillis() - t0)
   +   + r.size());

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-appeng...@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.




Re: [google-appengine] Re: Waiting already for 6 hours for 300 records to index

2009-12-02 Thread Prashant
It's more than an hr. and index still building just for 2 record. why
indexing has become dead slow?

--

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-appeng...@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: Querying datastore objects by last date/time accessed?

2009-12-02 Thread mscwd01
Thanks for confirming this Nick

On Dec 2, 5:48 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi,

 The method you describe (a datetime field that you update on each access) is
 the most efficient way of doing this.

 -Nick Johnson



 On Tue, Dec 1, 2009 at 7:22 PM, mscwd01 mscw...@gmail.com wrote:
  Hey,

  I wish to retrieve a single datastore object such that the object
  which has NOT been retrieved for the longest amount of time is
  returned.

  I.e. If object A was last retrieved 5 days ago, object B 2 days ago
  and object C 12 days ago the order of retrieval would be:

  Object B (first db call) - Object A (second db call), Object C (third
  db call)

  I could simply assign a datetime field to each object and update this
  time during each retrieval, then organise all the objects by this
  field upon each database query. However, if I were to have tens of
  thousands of objects would this be an efficient way of achieving this?

  I'd be interested to know if there may be a better way of doing it.

  Many 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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 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-appeng...@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: Request was aborted after waiting too long...

2009-12-02 Thread Mark
I am using BlazeDS - a remoting service for Flex.  I guess it takes a
while to initialize - although not sure why it is slow to init only a
small %age of the time - you would think it'd either always fail or
always succeed.

On Dec 2, 11:33 am, Ikai L (Google) ika...@google.com wrote:
 What are you doing on application startup that may be expensive?



 On Tue, Dec 1, 2009 at 4:04 PM, Mark markrobertdav...@gmail.com wrote:
  Hi,

   Could someone please help me?  I have a relatively simple app - but
  I am seeing that around 5% of the time, my app fails with error
  'Request was aborted after waiting too long to attempt to service your
  request. Most likely, this indicates that you have reached your
  simultaneous active request limit. This is almost always due to
  excessively high latency in your app. '

   This only happens if the application has not been in use for a few
  minutes.  I can refresh the web page, and my app always works
  immediately.  So I guess the problem is happening when GAE cycles my
  app out and then tries to wake it back up.

   Does anyone have any tips to get around this error?  Is it caused
  because my app is somehow too slow to initialize?

   My appid is mayihelpyoucam

  cheers

  Mark

  --

  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] Stuck Index

2009-12-02 Thread Prashant
It's more than an hr. and index still building just for 2 record, I guess it
is stuck. appid - gaewcms ; index - _Content_ (Uri asc, Weight asc, Added
desc)

--

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-appeng...@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] Weird memcached issue

2009-12-02 Thread Michael
I'm seeing a weird issue with memcached right now (app: sovpad)

About 1/5 of memcache requests goes to a different memcached server,
so I'm getting problems with consistency (probably the same key maps
to two different values?).

When I'm requesting stats, I'm seeing two distinct stats:

That's old server:
{'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
20397739314L}

That's a new one in about 1/5 of requests:
{'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}

--

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-appeng...@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.




Re: [google-appengine] Weird memcached issue

2009-12-02 Thread Ikai L (Google)
Hi Michael,

When did this start happening? We're currently doing a phased rollout to
support the upcoming SDK release, so there may be some inconsistent behavior
while this is happening to your instance. Can you do us a favor and track
this behavior? It should not last long.

On Wed, Dec 2, 2009 at 1:08 PM, Michael m...@mzlab.net wrote:

 I'm seeing a weird issue with memcached right now (app: sovpad)

 About 1/5 of memcache requests goes to a different memcached server,
 so I'm getting problems with consistency (probably the same key maps
 to two different values?).

 When I'm requesting stats, I'm seeing two distinct stats:

 That's old server:
 {'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
 'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
 20397739314L}

 That's a new one in about 1/5 of requests:
 {'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
 'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] Weird memcached issue

2009-12-02 Thread Joshua Smith
*Please* tell me that you are not going to repeat past mistakes and release the 
SDK into the servers *before* releasing it in the development platform.

You need to give the update to developers first, so we can check for you 
breaking things that you did not anticipate.

-Joshua

On Dec 2, 2009, at 4:17 PM, Ikai L (Google) wrote:

 Hi Michael,
 
 When did this start happening? We're currently doing a phased rollout to 
 support the upcoming SDK release, so there may be some inconsistent behavior 
 while this is happening to your instance. Can you do us a favor and track 
 this behavior? It should not last long.
 
 On Wed, Dec 2, 2009 at 1:08 PM, Michael m...@mzlab.net wrote:
 I'm seeing a weird issue with memcached right now (app: sovpad)
 
 About 1/5 of memcache requests goes to a different memcached server,
 so I'm getting problems with consistency (probably the same key maps
 to two different values?).
 
 When I'm requesting stats, I'm seeing two distinct stats:
 
 That's old server:
 {'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
 'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
 20397739314L}
 
 That's a new one in about 1/5 of requests:
 {'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
 'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}
 
 --
 
 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-appeng...@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.
 
 
 
 
 -- 
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 
 --
 
 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-appeng...@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.

--

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-appeng...@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: Weird memcached issue

2009-12-02 Thread Michael
At the time of the first post it was going for about 10 minutes.

It's still happening.

On Dec 2, 11:17 pm, Ikai L (Google) ika...@google.com wrote:
 Hi Michael,

 When did this start happening? We're currently doing a phased rollout to
 support the upcoming SDK release, so there may be some inconsistent behavior
 while this is happening to your instance. Can you do us a favor and track
 this behavior? It should not last long.



 On Wed, Dec 2, 2009 at 1:08 PM, Michael m...@mzlab.net wrote:
  I'm seeing a weird issue with memcached right now (app: sovpad)

  About 1/5 of memcache requests goes to a different memcached server,
  so I'm getting problems with consistency (probably the same key maps
  to two different values?).

  When I'm requesting stats, I'm seeing two distinct stats:

  That's old server:
  {'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
  'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
  20397739314L}

  That's a new one in about 1/5 of requests:
  {'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
  'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}

  --

  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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-appeng...@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: Weird memcached issue

2009-12-02 Thread Michael
The problem with consistency is: the same key maps to the different
values (when I'm hitting another memcached server), so randomly I'm
getting old value from memcache and it produces weird effects on my
application (like new message appearing, though they were marked as
read).

Is it going to be fixed soon?

On Dec 2, 11:33 pm, Michael m...@mzlab.net wrote:
 At the time of the first post it was going for about 10 minutes.

 It's still happening.

--

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-appeng...@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] Interim GAE failures happening right now

2009-12-02 Thread Alan Xing
Hi folks,

The app-id snsanalytics is running this interim problems at this moment. It
seems a file node failure inside GAE?

Alan

  File 
/base/data/home/apps/snsanalytics/1.338147245967300836/common/zip-packages/django-1.1.zip/django/template/loader.py,
line 108, in render_to_string
  File /base/data/home/apps/snsanalytics/1.338147245967300836/__init__.py,
line 178, in render

  File /base/data/home/apps/snsanalytics/1.338147245967300836/__init__.py,
line 779, in render

  File /base/data/home/apps/snsanalytics/1.338147245967300836/__init__.py,
line 792, in render_node

  File 
/base/data/home/apps/snsanalytics/1.338147245967300836/common/zip-packages/django-1.1.zip/django/template/loader_tags.py,
line 71, in render
  File 
/base/data/home/apps/snsanalytics/1.338147245967300836/common/zip-packages/django-1.1.zip/django/template/loader_tags.py,
line 64, in get_parent
  File 
/base/data/home/apps/snsanalytics/1.338147245967300836/common/zip-packages/django-1.1.zip/django/template/loader.py,
line 70, in find_template_source
  File 
/base/data/home/apps/snsanalytics/1.338147245967300836/common/zip-packages/django-1.1.zip/django/template/loaders/filesystem.py,
line 40, in load_template_source
class 'django.template.TemplateDoesNotExist': Tried
[u'/base/data/home/apps/snsanalytics/1.338147245967300836/templates/layout/content.html',
u'/base/data/home/apps/snsanalytics/1.338147245967300836/common/templates/layout/content.html']

--

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-appeng...@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] Iterator GWT

2009-12-02 Thread mkkm...@gmail.com
Hi,

I'm using an Iterator to retrieve lot of database objects.

Thoses objects will be display on web application. I'm using GWT and
all object that I use in client part, must be defined in this part.

The problem is when DAO method retrieve objects as Iterator, I must
transform each entity object into a client object.

It can be done by using a list as:
ListEntity lObject = query.execute();
ListGWTObject lGwtObjects = new ArrayListGWTObject();
for(Entity lEntity: lObject) {
 lGwtObjects.add(transform(lEntity));
}
return lGwtObjects


For more scalability, I want to use an Iterator.
How can I transform my Entity object in GWT object when I iterate over
the given iterator in my GWT panel?


Michael

--

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-appeng...@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] cannot import name signals

2009-12-02 Thread Koen Bok
I'm getting lots of these suddenly. I had them a few months ago too,
but didn't see them in a while. I use the appengine django 1.0.

Anyone else having this too?

Koen

--

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-appeng...@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: Is maintenance today?

2009-12-02 Thread Scott
Is there an update on this topic posted somewhere by Google?  Has the
maintenance been rescheduled or canceled?

Thanks,

Scott

--

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-appeng...@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.




Re: [google-appengine] Weird memcached issue

2009-12-02 Thread Barry Hunter
Joshua,

See:
http://groups.google.com/group/google-appengine-python/browse_thread/thread/6f251a0efacc1f62
and
http://groups.google.com/group/google-appengine-java/browse_thread/thread/fe334c9e461026fa



On 02/12/2009, Joshua Smith joshuaesm...@charter.net wrote:

 *Please* tell me that you are not going to repeat past mistakes and release
 the SDK into the servers *before* releasing it in the development platform.

 You need to give the update to developers first, so we can check for you
 breaking things that you did not anticipate.

 -Joshua


 On Dec 2, 2009, at 4:17 PM, Ikai L (Google) wrote:
 Hi Michael,

 When did this start happening? We're currently doing a phased rollout to
 support the upcoming SDK release, so there may be some inconsistent behavior
 while this is happening to your instance. Can you do us a favor and track
 this behavior? It should not last long.

 On Wed, Dec 2, 2009 at 1:08 PM, Michael m...@mzlab.net wrote:
  I'm seeing a weird issue with memcached right now (app: sovpad)
 
  About 1/5 of memcache requests goes to a different memcached server,
  so I'm getting problems with consistency (probably the same key maps
  to two different values?).
 
  When I'm requesting stats, I'm seeing two distinct stats:
 
  That's old server:
  {'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
  'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
  20397739314L}
 
  That's a new one in about 1/5 of requests:
  {'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
  'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}
 
  --
 
  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-appeng...@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.
 
 
 


 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine



 -- 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-appeng...@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.





 -- 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-appeng...@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.



-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--

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-appeng...@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.




Re: [google-appengine] Re: Is maintenance today?

2009-12-02 Thread Ikai L (Google)
No, the maintenance didn't take place yesterday. Apologies for not
mentioning it.

As far as I know, it has not been rescheduled. I'll post an update if it
will be.

On Wed, Dec 2, 2009 at 3:13 PM, Scott lea...@gmail.com wrote:

 Is there an update on this topic posted somewhere by Google?  Has the
 maintenance been rescheduled or canceled?

 Thanks,

 Scott

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] Weird memcached issue

2009-12-02 Thread Joshua Smith
Ah.  Why are they posting that down in the python/java specific groups?

That seems like a strange place to make such an important announcement.

-Joshua

On Dec 2, 2009, at 6:17 PM, Barry Hunter wrote:

 Joshua,
 
 See:
 http://groups.google.com/group/google-appengine-python/browse_thread/thread/6f251a0efacc1f62
 and
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/fe334c9e461026fa
 
 
 
 On 02/12/2009, Joshua Smith joshuaesm...@charter.net wrote:
 
 *Please* tell me that you are not going to repeat past mistakes and release
 the SDK into the servers *before* releasing it in the development platform.
 
 You need to give the update to developers first, so we can check for you
 breaking things that you did not anticipate.
 
 -Joshua
 
 
 On Dec 2, 2009, at 4:17 PM, Ikai L (Google) wrote:
 Hi Michael,
 
 When did this start happening? We're currently doing a phased rollout to
 support the upcoming SDK release, so there may be some inconsistent behavior
 while this is happening to your instance. Can you do us a favor and track
 this behavior? It should not last long.
 
 On Wed, Dec 2, 2009 at 1:08 PM, Michael m...@mzlab.net wrote:
 I'm seeing a weird issue with memcached right now (app: sovpad)
 
 About 1/5 of memcache requests goes to a different memcached server,
 so I'm getting problems with consistency (probably the same key maps
 to two different values?).
 
 When I'm requesting stats, I'm seeing two distinct stats:
 
 That's old server:
 {'hits': 15948553L, 'items': 297010L, 'bytes': 230207529L,
 'oldest_item_age': 131185L, 'misses': 2694500L, 'byte_hits':
 20397739314L}
 
 That's a new one in about 1/5 of requests:
 {'hits': 12005L, 'items': 13699L, 'bytes': 12456724L,
 'oldest_item_age': 571L, 'misses': 18283L, 'byte_hits': 11945345L}
 
 --
 
 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-appeng...@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.
 
 
 
 
 
 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 
 
 
 -- 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-appeng...@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.
 
 
 
 
 
 -- 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-appeng...@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.
 
 
 
 -- 
 Barry
 
 - www.nearby.org.uk - www.geograph.org.uk -
 
 --
 
 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-appeng...@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.
 
 

--

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-appeng...@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] Has anyone done a source code control system hosted on App Engine?

2009-12-02 Thread samwyse
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 group, send email to google-appeng...@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: Weird memcached issue

2009-12-02 Thread naan
Hi,

This happens for me too. I can't store any data into memcache. Also, I
can't get any results with memcache.get_stats(). The function returns
None.

On Dec 2, 1:45 pm, Michael m...@mzlab.net wrote:
 The problem with consistency is: the same key maps to the different
 values (when I'm hitting another memcached server), so randomly I'm
 getting old value from memcache and it produces weird effects on my
 application (like new message appearing, though they were marked as
 read).

 Is it going to be fixed soon?

 On Dec 2, 11:33 pm, Michael m...@mzlab.net wrote:

  At the time of the first post it was going for about 10 minutes.

  It's still happening.



--

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-appeng...@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: Migrating an existing PHP/MySQL web application to GAE

2009-12-02 Thread marksea
I'm certainly not a guru, but I would not start out by attempting to
migrate any non-trivial application to GAE.  From what I've seen so
far, in addition to requiring major rewrites due to a fundamentally
different db architecture, the platform is not stable or mature.  They
are calling it a preview for a reason.  Start small with a simple
web app or service and see how it works for you first.  By doing this
you'll get a much better idea of what is going to be involved.


On Dec 1, 6:16 am, Pawan Kumar pawankumar...@gmail.com wrote:
 Hi Gurus,

 I have a beginner's question which might have been answered earlier
 but I could not find it.
 I have a PHP/MySQL based web application running on my premises and I
 want to migrate it to Google Apps.
 Over the period, it has built into a good enough relational database
 schema and historic data.
 The question is is it possible to use this existing data schema and
 the data by uploading it on google apps environment? If yes then how
 and a sample would be appreciated.

 Regards,
 Pawan

--

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-appeng...@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.




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

2009-12-02 Thread Ikai L (Google)
Is this issue still occurring for you? If so, let me know your application
ID.

Michael, let me know if this is causing you problems in production. I can
attempt to migrate your application to a different pool, but this is not
something I'd advise if you're running in production and things are working
fine.

On Wed, Dec 2, 2009 at 4:26 PM, naan kaz...@gmail.com wrote:

 Hi,

 This happens for me too. I can't store any data into memcache. Also, I
 can't get any results with memcache.get_stats(). The function returns
 None.

 On Dec 2, 1:45 pm, Michael m...@mzlab.net wrote:
  The problem with consistency is: the same key maps to the different
  values (when I'm hitting another memcached server), so randomly I'm
  getting old value from memcache and it produces weird effects on my
  application (like new message appearing, though they were marked as
  read).
 
  Is it going to be fixed soon?
 
  On Dec 2, 11:33 pm, Michael m...@mzlab.net wrote:
 
   At the time of the first post it was going for about 10 minutes.
 
   It's still happening.
 
 

 --

 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.





-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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-appeng...@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.




Re: [google-appengine] Re: Migrating an existing PHP/MySQL web application to GAE

2009-12-02 Thread Niklas Rosencrantz
On Thu, Dec 3, 2009 at 12:24 AM, marksea mark...@gmail.com wrote:
 I'm certainly not a guru, but I would not start out by attempting to
 migrate any non-trivial application to GAE.  From what I've seen so
 far, in addition to requiring major rewrites due to a fundamentally
 different db architecture, the platform is not stable or mature.  They
 are calling it a preview for a reason.  Start small with a simple
 web app or service and see how it works for you first.  By doing this
 you'll get a much better idea of what is going to be involved.


 On Dec 1, 6:16 am, Pawan Kumar pawankumar...@gmail.com wrote:
 Hi Gurus,

 I have a beginner's question which might have been answered earlier
 but I could not find it.
 I have a PHP/MySQL based web application running on my premises and I
 want to migrate it to Google Apps.
 Over the period, it has built into a good enough relational database
 schema and historic data.
 The question is is it possible to use this existing data schema and
 the data by uploading it on google apps environment? If yes then how
 and a sample would be appreciated.

 Regards,
 Pawan
http://code.google.com/p/approcket/ I use  replicates AppEngine
datastore to a MySQL database and vice versa. Here gae is 1/10 code
compared to previous php/mysql nearly same functions
({www(php/mysql/java),web(gae),montao.com.br}) differ and takes long
time not very difficult we can smoothly transit eg. md5 a(old defunct)
nd sha1 (new gae) bothways. Good thing sync both for exitplan just
sync persistencelayers cron, batch, task or realtime.

--

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-appeng...@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 Model design, fan-out, lots of writes?

2009-12-02 Thread Julian Namaro

 Is there value in putting the MessageRead entity in the same entity
 group as the message?


Just to do transactional mark as read. I agree in most cases it's
not worth the trouble.

--

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-appeng...@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 Dashboard System Status page link ---server error 500

2009-12-02 Thread oldcomputer
says report,, gives server 500 error at system status page

--

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-appeng...@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: Multiple datastores or share datastore in one app

2009-12-02 Thread andreas_b
Thanks both of you!

Very helpful answers.

Best Regards, Andreas

On Dec 2, 8:24 pm, Ikai L (Google) ika...@google.com wrote:
 Creating a database per team is a very heavyweight way to address the
 problem of data segregation. This is unnecessary and in general, not a
 recommended best practice, as you would provide data isolation at the
 application layer. The intuitive solution here is to create an entity group
 for a league or team (depending on your transactional needs) and place child
 entities in that group.

 On Tue, Dec 1, 2009 at 10:40 AM, andreas_b andreas.borg...@gmail.comwrote:



  Hi all.

  I'm working on a GWT/GAE project where the idea is to create a portal
  for sport teams. Each sport team can sign up to get an account where
  they can register players, keep track of leagues, matches, statistics
  and so on. Each team should also be able to use their own domain,
  which automatically should load the site with their configuration when
  entered (basically just load the gwt-app with some url-parameter that
  is forwarded to server-side).

  So, coming from a normal SQL-environment, it seems to me that each
  team that signs up should get their own private database for all their
  data. As I understand it, this is not possible with GAE datastore?
  There is a one-to-one mapping between an application and a datastore?

  If this is the case, then what is the best way forward? I guess each
  entity could have a team ID, but it really doesn't seem like a good
  idea. There should be some kind of isolation between the different
  teams' data.

  Registering a new GAE app for each team is not an option either since
  we expect at least hundreds of teams.

  So, is there some way to isolate entities from each other within a GAE
  datastore?
  Also, would it be feasible from a performance point of view to do
  this?

  Or is simply GAE not the right way to go for this kind of web
  offering?

  Thanks in advance.

  BR, Andreas

  --

  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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-appeng...@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.