Re: [appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-10-25 Thread Adrian Petrescu
No, we had the enctype; that's what the "uploadForm.setEncoding(FormPanel. ENCODING_MULTIPART);" was about. As several of us have discovered, it's the name we were missing. The requirement to have encoding set is well-documented, the name is not so much. And the point remains that even if it is do

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-10-25 Thread zen
Despite all the documentations and examples you have missed adding the enctype! add this to the form enctype="multipart/form-data" you should have no problems. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-07-13 Thread xiyuan76
hi, Adrian If I upload an not image file ,I met the oom error. If I upload an image file,I met "Must call one of set*BlobStorage() first." Where to add "fileInput.setName("file");" I use java. -- You received this message because you are subscribed to the Google Groups "Google App Engine fo

Re: [appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-07-06 Thread Adrian Petrescu
Okay guys, I think I've figured out the source of the problem. If you fail to add a "setName()" attribute on your FileInput element (or, presumably, any other in the form), the resulting HTTP request is unparseable which causes the MimeMultipart parser to explode in the way all of you have encount

[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

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

[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分, Adr

[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 wrote: > I'm having the exact same issue too, do

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-07-04 Thread Adrian Petrescu
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 p

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-22 Thread Mouseclicker
Did you try to upload a binary object like an image? It seems that app- engine has hard-coded to parse the content for multipart/form-data. The error appears when your message body is not formatted to the multipart rules and parsing fails. The stacktrace gives an indication: javax.mail.internet.Mi

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-11 Thread Vishal Singh
I have the same issue. On Jun 4, 11:51 am, eighty wrote: > +1 > > On Jun 2, 4:14 pm, Jean Hsu 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/ > > aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2F

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-07 Thread Jean Hsu
Here's what I get from live http headers when I deploy and try to upload. It tries to do a get on the uploadUrl, for test.nocache.js, and also later for css. I get a 405 Method Not Allowed for these. Any ideas why it's trying to do a get?? POST /_ah/upload/ AMmfu6ZRpZf67ospmbfJKHd0AKnI9LFkWSDeD

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-07 Thread Jean Hsu
Anyone NOT getting an outOfMemory error? I tried to deploy to appengine, and don't get an outofmemory error, but instead eventually get a methodNotFound. Anyone have a small working example? Jean On Jun 5, 5:22 pm, Luai kassar wrote: > I am getting OutOfMemoryError too for any file i try to up

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-06 Thread Luai kassar
I am getting OutOfMemoryError too for any file i try to upload . can someone explain what the problem is please? Thanks Luai. On Jun 3, 12:14 am, Jean Hsu wrote: > Hi all, > > I am trying to set up a basic file upload to blobstore,  but I get > this OutOfMemoryError: > > WARNING: Error for /_ah/

[appengine-java] Re: Uploading to blobstore gives OutOfMemoryError

2010-06-04 Thread eighty
+1 On Jun 2, 4:14 pm, Jean Hsu 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 j