[appengine-java] Issue with OpenId Login implementation

2010-07-05 Thread vinothkumar
If we use  blogger as OpenId provider and login, the User object
doesn't have the email. This causes a Server Error A server error has
occurred. when looking up the entity with User object in Datastore
viewer.

Also, with Wordpress as OpenId Provider, the email is received at the
first time login. With the Always Allow option, the email is not
received in subsequent logins, resulting in server error for the
entity with User object lookup.

It appears that the User class internally expects email to be
mandatory and toString method prints the same. Since the toString
prints empty, it could be failing some validation and resulting in
server error.

Please advise anything can be worked around to overcome this.

-- 
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] Data handling in GAE: BigTable vs. OO Data models

2010-07-05 Thread MArtin Schumacher
Hi everyone,

I wanted to try GAE for a tiny private project to test the
technology.

I am working with a Data model looking like this: http://yuml.me/284c95e9

Persisting of each entity works fine. Just when I try to handle the
associations, I am confused.

i.e. in my example I have two associations between Person and
ContactData. One holds all ContactData of a Person, the other marks
the registrationData. The registrationData is included in all
ContactData. As I learned, I cannot use a field of type ContactData
and ListContactData, instead I have to use Key and ListKey. Ok.
got it. Person and ContactData (until now just Email) works.
Now I want to search a Person with a specific email-address as
registrationData. As far as I understand, I cannot use queries with
joins, right? How do I run such kind of queries? Do I have to search
all Emails and than another query with the found email-Key?
How do I delete a Person with all ContactData? Manually with foreach-
blocks?

Overall I think this kind of data handling is not very handy. It
throws us back to stoneage, because developers have to handle
associations by their own...

Martin

-- 
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: SQL Like operator with %

2010-07-05 Thread Khor Yong Hao
Why not directly use String.contains(searchstring) method?

-- 
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] Automatic restart of development server in Eclipse

2010-07-05 Thread jesbox
Hi!
I have read that it should be sufficient to save a java source file
and that the development server would reload the class. Then I could
reload the page and it would be the latest version I would look at.

This does not happen to me, I have to stop the development server and
then run the application again.

Many thanks for advice on this.

-- 
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] populate datastore with a new kind

2010-07-05 Thread dukefan
Hello,
Does anybody have a procedure to create a kind in the datastore (in
development and production mode) using a script ?
The new step is for example to upload data reference to the datastore,
in python it is possible using 
http://code.google.com/intl/fr/appengine/docs/python/tools/uploadingdata.html
I would like to know if in java there is an equivalent ?
Regards


-- 
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] New to Google App Engine: App Engine + GWT

2010-07-05 Thread alan
I'm COMPLETELY new to Google App Engine, but am moderately experienced
with GWT, and am a very experienced Java developer. I've recently
decided to go all in and learn App Engine, but have numerous
questions that I've not so far seen answers to in the documentation.
I'd like to ask the series of question here.  (If that doesn't work
I'll spin the important one out into separate posts later.)


#1)  What are some best practices for a GWT + App Engine project. For
example, since Google App Engine works off a white list of classes
should the GWT project be separate from the App Engine project.

#2) I plan on creating a Service layer to abstract out the GQL calls
from the client side, and keep open the possibility of moving the
project away from App Engine. As part of this (I'm considering Spring
MVC vs. Guice) for the dependency injection.  Any recommendations
there? I've got basic experience with Spring and none with Guice.

#3) The quota's part of Google App Engine scares me a bit. I'd be
afraid if the project becomes popular (small change, but you never
know) I'd might face a bill that the project's income would not
cover.  Could someone please let me in on a few stories to reduce
these concerns.
  a) For example could the income from putting AdWords on pages pay
for the cost of exceeding the quota.
  b) What happens to our page if you do bump up against the quota. How
many pages can you realistically expect from the quota.
  c) Has anyone been part of a project that grew suddenly beyond the
quota. I'd like to hear about it.

Advice to a App Engine newbie appreciated,
Alan


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

2010-07-05 Thread Bert Peters
I succesfully tested FreeMarker (www.freemarker.org) on App Engine.
Care to add it to the list?

-- 
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: SDK 1.3.5 released!

2010-07-05 Thread Christian Goudreau
DatastoreServiceConfig doesn't exist anymore !?

void setServiceFromConfig(DatastoreServiceConfig config);


I should chande this to what ?

Christian

On Thu, Jul 1, 2010 at 2:00 PM, Ikai L (Google) ika...@google.com wrote:

 End cursors allow you to set a query to say, stop this query when you get
 to this cursor. Docs will be up soon. The Javadocs are already up:


 http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/FetchOptions.html

 For instance, let's pretend our index references the following keys:

 a, b, c, d, e, f, g

 You create 3 cursors

 cursor1 - a
 cursor2 - d
 cursor3 - g

 You can now create queries that say, start at cursor1 and end at cursor 2
 and start at cursor 2 and end at cursor 3. This is most useful for
 breaking up work in task queues. It has the advantage over using offsets
 such as start at cursor1 and get the next N elements because if we insert
 new keys  b2 and b3 such that your index looks like this:

 a, b, b2, b3, c, d, e, f, g

 Keys between cursor1 and cursor 2 now reference b2 and b3. You can now
 break up work and be insert-proof.


 On Thu, Jul 1, 2010 at 12:28 AM, Nacho Coloma icol...@gmail.com wrote:

 The datastore now supports both end cursors.

 I have checked out the documentation and cannot find what this is
 about. Anyone?

 On Jul 1, 1:10 am, Ikai Lan i...@google.com wrote:
  Hey everybody,
 
  We've released the 1.3.5 SDK. Blog post here:
 
  http://googleappengine.blogspot.com/2010/06/app-engine-sdk-135-releas.
 ..
 
  The big announcements are the raising of the Task Queue rate, Python
  precompilation, and new Blob features. You can get it from the downloads
  page:
 
  http://code.google.com/appengine/downloads.html
 
  Release notes are below:
 
  Java
  ---
  - Ability to configure the Task Queue storage limit with the
  total-storage-limit field in the queue.xml file.
  - Task Queues now support up to 50 qps per queue, up from 50 qps per
 app.
  - Developers can programmatically access Blobs with
 BlobstoreInputStream,
  which provides an InputStream view of a blob in Blobstore.
  - Bulkloader transform helpers for lists and hierarchical keys were
 added.
  - remote_api_shell commands can be sent over HTTPS or HTTP.
  - Admin Console logs now include information on request time latency.
  - The datastore now supports both end cursors.
  - Fixed an issue where requesting /appstats would not properly direct to
  /appstats/.
  - Fixed an issue with inconsistent URL mappings between the SDK and
  production.
  -http://code.google.com/p/googleappengine/issues/detail?id=2598
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blog:http://googleappengine.blogspot.com
  Twitter:http://twitter.com/app_engine
  Reddit:http://www.reddit.com/r/appengine

 --
 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
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine

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




-- 
Christian Goudreau

-- 
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: SQL Like operator with %

2010-07-05 Thread RAVINDER MAAN
You mean retrieve all entities and then use contains method?


On Mon, Jul 5, 2010 at 8:29 AM, Khor Yong Hao fyh...@gmail.com wrote:

 Why not directly use String.contains(searchstring) method?

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




-- 
Regards,
Ravinder Singh Maan

-- 
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: Automatic restart of development server in Eclipse

2010-07-05 Thread l.denardo
This is true only for the GWT client side (and not completely, since
Gin modules don't seem to be refreshed correctly).

For server side, JSPs look to be refreshed automatically, but you must
reload the server to have your RPC services updated.
If you use Eclipse there's a reload icon in the Development Mode
tab, just near the one to stop the server (yes, it looks like tab's
refresh...)
Be careful when doing this, since restart adds up space to the process
and it eventually goes out of memory after a couple of reloads (at
least, this happens to me. Should be configurable but I never tried).

Regards
Lorenzo

On Jul 4, 6:40 am, jesbox jesb...@gmail.com wrote:
 Hi!
 I have read that it should be sufficient to save a java source file
 and that the development server would reload the class. Then I could
 reload the page and it would be the latest version I would look at.

 This does not happen to me, I have to stop the development server and
 then run the application again.

 Many thanks for advice on this.

-- 
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] Help! Datastore Viewer Server Error

2010-07-05 Thread Tapir
Server Error
A server error has occurred.
Return to Applications screen »

For 3 days, I feel helpless. I really can't understand where is 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: Maximum size of blob data on AppEngine

2010-07-05 Thread Tapir
for the com.google.appengine.api.datastore.Blob type, max size is 1M
bytes.
I get this info from the pyhon document:
http://code.google.com/appengine/docs/python/datastore/entitiesandmodels.html#Strings_Long_Strings_and_Blobs

On Jul 6, 1:36 am, dudu eduardopich...@gmail.com wrote:
 What's the maximum size of a blob data I can store in one single
 registry of the BigTable, on Appengine?

-- 
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: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Adrian Petrescu
I've also posted about the issue on Stack Overflow here:
http://stackoverflow.com/questions/3177092/uploading-to-blobstore-gives-a-java-heap-outofmemoryerror

Hopefully getting some more eyeballs on it will help.

On Jul 4, 10:47 pm, Adrian Petrescu apetr...@gmail.com wrote:
 I'm having the exact same issue too, down to the line numbers in the
 stack trace.

 Has anyone figured out what is causing this? I find it hard to believe
 we've all made the exact same identical mistake, all within the last
 month. Is something wrong on Google's end?

 Cheers,
 Adrian

 On Jun 2, 7:14 pm, Jean Hsu jeanhs...@gmail.com wrote:



  Hi all,

  I am trying to set up a basic file upload to blobstore,  but I get
  this OutOfMemoryError:

  WARNING: Error for /_ah/upload/
  aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
  java.lang.OutOfMemoryError: Java heap space
          at java.util.Arrays.copyOf(Arrays.java:2786)
          at 
  java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
          at
  javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
  316)
          at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
          at 
  javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
          at
  com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa 
  dBlobServlet.java:
  135)
          at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
  $000(UploadBlobServlet.java:72)
          at com.google.appengine.api.blobstore.dev.UploadBlobServlet
  $1.run(UploadBlobServlet.java:100)
          at java.security.AccessController.doPrivileged(Native Method)
          at
  com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS 
  ervlet.java:
  98)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
          at 
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  511);

  I used the Memory Analyzer on Eclipse and it said that the memory leak
  suspect is QueuedThreadPool.  I found this information about a memory
  leak bug:

 http://jira.codehaus.org/browse/JETTY-1188

  How can I figure out what release of jetty is running locally?  It
  looks like they fixed this in version 6.1.23:

 http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...

  Has anyone else had this issue?

  Thanks,
  Jean

-- 
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: Help! Datastore Viewer Server Error

2010-07-05 Thread Tapir
From this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/af0110d8f8d2f7c9/4a5678166394452f?lnk=gstq=Server+Error+byte#4a5678166394452f
I find it said byte[] is not valid table field type.
Then I cheked my app, there is no byte[] types, but there are 2 byte
fields.
Would it be the reason?

On Jul 6, 7:57 am, Tapir tapir@gmail.com wrote:
 Server Error
 A server error has occurred.
 Return to Applications screen »

 For 3 days, I feel helpless. I really can't understand where is 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: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Thomas
Hi:

I read the post on Stack Overflow. My opinion is that you had better
use a plain normal HttpServlet#doPost to handle the upload. I also
encountered 500 Internal Server Error, but it worked well after I
replace original handler with a plain servlet.

Hope the above helps!

On 7月6日, 上午8時25分, Adrian Petrescu apetr...@gmail.com wrote:
 I've also posted about the issue on Stack Overflow 
 here:http://stackoverflow.com/questions/3177092/uploading-to-blobstore-giv...

 Hopefully getting some more eyeballs on it will help.

 On Jul 4, 10:47 pm, Adrian Petrescu apetr...@gmail.com wrote:

  I'm having the exact same issue too, down to the line numbers in the
  stack trace.

  Has anyone figured out what is causing this? I find it hard to believe
  we've all made the exact same identical mistake, all within the last
  month. Is something wrong on Google's end?

  Cheers,
  Adrian

  On Jun 2, 7:14 pm, Jean Hsu jeanhs...@gmail.com wrote:

   Hi all,

   I am trying to set up a basic file upload to blobstore,  but I get
   this OutOfMemoryError:

   WARNING: Error for /_ah/upload/
   aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
   java.lang.OutOfMemoryError: Java heap space
           at java.util.Arrays.copyOf(Arrays.java:2786)
           at 
   java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
           at
   javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
   316)
           at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
           at 
   javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
           at
   com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
dBlobServlet.java:
   135)
           at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
   $000(UploadBlobServlet.java:72)
           at com.google.appengine.api.blobstore.dev.UploadBlobServlet
   $1.run(UploadBlobServlet.java:100)
           at java.security.AccessController.doPrivileged(Native Method)
           at
   com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
ervlet.java:
   98)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
           at 
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   511);

   I used the Memory Analyzer on Eclipse and it said that the memory leak
   suspect is QueuedThreadPool.  I found this information about a memory
   leak bug:

  http://jira.codehaus.org/browse/JETTY-1188

   How can I figure out what release of jetty is running locally?  It
   looks like they fixed this in version 6.1.23:

  http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...

   Has anyone else had this issue?

   Thanks,
   Jean

-- 
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: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Adrian Petrescu
Hi Thomas,

Thanks for your reply :) But I'm not sure what you mean by a plain normal
HttpServlet#doPost to handle the upload; in what sense am I not doing that?
Do you mean the fact that I'm uploading to Blobstore? Why would that be a
problem, and how else would I get them in there?

Thanks,
Adrian

On Mon, Jul 5, 2010 at 10:03 PM, Thomas mylee...@gmail.com wrote:

 Hi:

 I read the post on Stack Overflow. My opinion is that you had better
 use a plain normal HttpServlet#doPost to handle the upload. I also
 encountered 500 Internal Server Error, but it worked well after I
 replace original handler with a plain servlet.

 Hope the above helps!

 On 7月6日, 上午8時25分, Adrian Petrescu apetr...@gmail.com wrote:
  I've also posted about the issue on Stack Overflow here:
 http://stackoverflow.com/questions/3177092/uploading-to-blobstore-giv...
 
  Hopefully getting some more eyeballs on it will help.
 
  On Jul 4, 10:47 pm, Adrian Petrescu apetr...@gmail.com wrote:
 
   I'm having the exact same issue too, down to the line numbers in the
   stack trace.
 
   Has anyone figured out what is causing this? I find it hard to believe
   we've all made the exact same identical mistake, all within the last
   month. Is something wrong on Google's end?
 
   Cheers,
   Adrian
 
   On Jun 2, 7:14 pm, Jean Hsu jeanhs...@gmail.com wrote:
 
Hi all,
 
I am trying to set up a basic file upload to blobstore,  but I get
this OutOfMemoryError:
 
WARNING: Error for /_ah/upload/
aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at
 java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
at
   
 javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
316)
at
 javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
at
 javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
at
   
 com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
 dBlobServlet.java:
135)
at
 com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
$000(UploadBlobServlet.java:72)
at com.google.appengine.api.blobstore.dev.UploadBlobServlet
$1.run(UploadBlobServlet.java:100)
at java.security.AccessController.doPrivileged(Native Method)
at
   
 com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
 ervlet.java:
98)
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511);
 
I used the Memory Analyzer on Eclipse and it said that the memory
 leak
suspect is QueuedThreadPool.  I found this information about a memory
leak bug:
 
   http://jira.codehaus.org/browse/JETTY-1188
 
How can I figure out what release of jetty is running locally?  It
looks like they fixed this in version 6.1.23:
 
   
 http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...
 
Has anyone else had this issue?
 
Thanks,
Jean

 --
 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: Uploading to blobstore gives OutOfMemoryError

2010-07-05 Thread Thomas
Hi Adrian:

 By plain normal servlet I meaned the url path (of the call to
blobstoreService.createUploadUrl(url) ) is mapping to a simple plain
HttpServlet implementation. And it is better to have the servlet
bypass any filter mapping in development phase. It's how I finally
succeeded to upload lots of blobs without any problems.

On 7月6日, 上午10時07分, Adrian Petrescu apetr...@gmail.com wrote:
 Hi Thomas,

 Thanks for your reply :) But I'm not sure what you mean by a plain normal
 HttpServlet#doPost to handle the upload; in what sense am I not doing that?
 Do you mean the fact that I'm uploading to Blobstore? Why would that be a
 problem, and how else would I get them in there?

 Thanks,
 Adrian

 On Mon, Jul 5, 2010 at 10:03 PM, Thomas mylee...@gmail.com wrote:
  Hi:

  I read the post on Stack Overflow. My opinion is that you had better
  use a plain normal HttpServlet#doPost to handle the upload. I also
  encountered 500 Internal Server Error, but it worked well after I
  replace original handler with a plain servlet.

  Hope the above helps!

  On 7月6日, 上午8時25分, Adrian Petrescu apetr...@gmail.com wrote:
   I've also posted about the issue on Stack Overflow here:
 http://stackoverflow.com/questions/3177092/uploading-to-blobstore-giv...

   Hopefully getting some more eyeballs on it will help.

   On Jul 4, 10:47 pm, Adrian Petrescu apetr...@gmail.com wrote:

I'm having the exact same issue too, down to the line numbers in the
stack trace.

Has anyone figured out what is causing this? I find it hard to believe
we've all made the exact same identical mistake, all within the last
month. Is something wrong on Google's end?

Cheers,
Adrian

On Jun 2, 7:14 pm, Jean Hsu jeanhs...@gmail.com wrote:

 Hi all,

 I am trying to set up a basic file upload to blobstore,  but I get
 this OutOfMemoryError:

 WARNING: Error for /_ah/upload/
 aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
 java.lang.OutOfMemoryError: Java heap space
         at java.util.Arrays.copyOf(Arrays.java:2786)
         at
  java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71)
         at

  javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java:
 316)
         at
  javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186)
         at
  javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109)
         at

  com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa
  dBlobServlet.java:
 135)
         at
  com.google.appengine.api.blobstore.dev.UploadBlobServlet.access
 $000(UploadBlobServlet.java:72)
         at com.google.appengine.api.blobstore.dev.UploadBlobServlet
 $1.run(UploadBlobServlet.java:100)
         at java.security.AccessController.doPrivileged(Native Method)
         at

  com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS
  ervlet.java:
 98)
         at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
         at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511);

 I used the Memory Analyzer on Eclipse and it said that the memory
  leak
 suspect is QueuedThreadPool.  I found this information about a memory
 leak bug:

http://jira.codehaus.org/browse/JETTY-1188

 How can I figure out what release of jetty is running locally?  It
 looks like they fixed this in version 6.1.23:

 http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160vers...

 Has anyone else had this issue?

 Thanks,
 Jean

  --
  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] Unable to Deploy to app engine with session enabled

2010-07-05 Thread Hariharan Anantharaman
Hi,
I am using Appengine SDK 1.3.5 and Eclipse Ganymede version Version: 3.4.1.
 I am able to run my application in local server with
*sessions-enabled   *set as True.  But with this setting, i am unable to
deploy to google app engine(in eclipse select project--Right
click--google--Deploy to appengine).

When deploying, I am getting an error, Error validating app-engine.xml with
GAE path/docs/appengine-web.xsd.

Can any one please help me on this.


Thanks and Regards
Hariharan

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