[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/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(UploadBlobServlet.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(UploadBlobServlet.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=11160&vers...
>
> 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: XML to Object libraries and Vice Versa

2009-11-08 Thread LUAI KASSAR
Use Apache betwixt ,its works on GAE
http://commons.apache.org/betwixt/

On Sun, Nov 8, 2009 at 7:46 PM, Ravi Sharma  wrote:

> I am not sure if i understand you.
> Can you explain bit more, an example or link would be great.
> I can do normal Sax parsing but then writing code for each different kind
> of xml is gonna be very tidious work.So looking for some GAE supported
> libararies like JAXB or XMLBEAN
>
> My Requirment is as follows(in cae is there was any misunderstanding)
> 
> 
>
>   
>   
>
>
> 
> PersonName
> 2
> 
> 
>
>
>My Venod ltd
>ABC 234
>
> 
>
> and now in java if i want to get the vbendor name
> tehn i should be able to access it using classes directly(which will be
> generated compile time)
> Order  order = SomeMarsheller.unmashel("fullxml");
> String vendorName = order.getVendor().getName();
>
> My Orginal Mail was
> Hi,
> Is there any library like Apache XMLBeans/JAXB supported in Google APP
> Engine which can be used for converting XML to Java Object and Java
> Objects to XML.
> I checked the White lists of libraries and found that
>
> JAXB is not supported ( I have already stared the issue related to it)
> and Xmlbeans was not mentioned as Supported Library.
>
> I am sure lots of people here doing this normal thing to convert Java
> Object to XML and Vice Versa.
> Please Suggest some thing
>
> Ravi.
>
> On Fri, Nov 6, 2009 at 3:59 PM, rakeshv  wrote:
>
>>
>> > I am sure lots of people here doing this normal thing to convert Java
>> > Object to XML and Vice Versa.
>> > Please Suggest some thing.
>>
>> The XML element/attribute pair maps quite well into the low level API
>> Entity/properties structure.  That should be all you need.
>>
>> Rakesh
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread Luai kassar

You can use DatastoreService.delete(Key...)
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...)

On Nov 7, 11:05 am, Peter Recore  wrote:
> Is there a way to delete an entity without having to fetch it from the
> datastore first?
> Ideally, there would be a deleteObjectById analogue to getObjectById
> on PersistenceManager.
>
> The closest I can think of is using Query.deletePersistentAll() and
> specifying a keys only query, but I can't tell if that is going to
> fetch the entity before deleting it.
>
> -peter

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---



[appengine-java] Re: Delete without getting, using JDO

2009-11-07 Thread LUAI KASSAR
You can use DatastoreService.delete(Key...)
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#delete(com.google.appengine.api.datastore.Key...)

On Sat, Nov 7, 2009 at 11:05 AM, Peter Recore  wrote:

>
> Is there a way to delete an entity without having to fetch it from the
> datastore first?
> Ideally, there would be a deleteObjectById analogue to getObjectById
> on PersistenceManager.
>
> The closest I can think of is using Query.deletePersistentAll() and
> specifying a keys only query, but I can't tell if that is going to
> fetch the entity before deleting it.
>
> -peter
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~--~~~~--~~--~--~---