Solved : Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-24 Thread Ravi Sharma
Hi Guys, I tried Betwixt from apache(http://commons.apache.org/betwixt/index.html). And it works out of box. I only got into some problems as i downloaded some older version of dependecies(Digester and beanutils). So when using Betwixt make sure you have latest version of all dependecnies. Also

[appengine-java] Weird results for JOD query with List item filter (List.contains(....))

2009-11-24 Thread Prashant
Hi, Following is a snippet of JDO class: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class _Contact{ @Persistent(primaryKey = true) private String EmailID; @Persistent private String Name; @Persistent private ListString Groups; I am trying

[appengine-java] Re: Server Code for Chat Service / Matchmaking

2009-11-24 Thread Craig
Great, thank you for the clarification. Craig On Nov 23, 10:32 pm, Timothy Spear tsp...@green20now.com wrote: Craig,         The short answer is. No threads may not be spawned. Use the datastore   to update/change status for the users. Only use memcache for reference   information or

[appengine-java] Re: Help Requested: How to persist a HashMapString, T extends Object?

2009-11-24 Thread Nick
I had the same problem and came up with this snippet of code to work around the issue. Use it when you are updating your object: /** * Iterates through the object and makes any persistent annotated objects that are serialized = true * dirty using

[appengine-java] Re: Weird results for JOD query with List item filter (List.contains(....))

2009-11-24 Thread Prashant
this is surely a bug following is my test case PersistenceManager pm = pmf.getPersistenceManager(); Query query = pm.newQuery(_Contact.class); query.setOrdering(EmailID); query.setFilter(Groups.contains(\mygroup\)); int i = 1; for(_Contact

[appengine-java] Re: Is there a recommended way to differentiate between production and dev GAE environments?

2009-11-24 Thread Marcel Overdijk
Or use a Listener as described here http://marceloverdijk.blogspot.com/2009/10/determining-runtime-environment-on.html On 23 nov, 15:58, Nacho Coloma icol...@gmail.com wrote: To answer my own question, this has been my best shot this far: SecurityManager sm = System.getSecurityManager();

[appengine-java] List of Child Objects Not Loading

2009-11-24 Thread Justin
Hello: I am having trouble retrieving a collection of child objects (PackageEntry) in my parent class(Student). The PackageEntry objects are persisting correctly and I can see that they are in the same entity group as their associated student, but when I retrieve the parent parent Student, the

[appengine-java] Problem in uploading jsp file

2009-11-24 Thread sahil mahajan
Hello I am working on java google app engine. When I try to upload my application, I receive following error Error Details: Nov 24, 2009 10:18:11 PM org.apache.jasper.JspC processFile INFO: Built File: \addressbook.jsp java.lang.IllegalStateException: cannot find javac executable based on

[appengine-java] Re: Weird results for JOD query with List item filter (List.contains(....))

2009-11-24 Thread Prashant
Max please help me out, it is killing my app. :( On Tue, Nov 24, 2009 at 8:45 PM, Prashant antsh...@gmail.com wrote: this is surely a bug following is my test case PersistenceManager pm = pmf.getPersistenceManager(); Query query = pm.newQuery(_Contact.class);

[appengine-java] memcache memory leak on dev server

2009-11-24 Thread Vince Bonfanti
There appears to be a memory leak with the memcache implementation on the dev server; I've opened a new issue for this: http://code.google.com/p/googleappengine/issues/detail?id=2428 I have some testcases that make heavy use of memcache that are failing due to this issue. Vince -- You

Re: [appengine-java] Problem in uploading jsp file

2009-11-24 Thread Stephan Hartmann
You are using a Java Runtime Environment (JRE) which does not include a compiler. You have to use a JDK instead. Regards, Stephan sahil mahajan schrieb: Hello I am working on java google app engine. When I try to upload my application, I receive following error Error Details: Nov

Re: [appengine-java] Re: InputStream read returning -1, but avalible btyes correct ?

2009-11-24 Thread Ikai L (Google)
Toby's email is correct. The correct way to read from an InputStream is to create a buffer of bytes, then iterate over it. You should be doing something like this: while ((len = stream.read(buffer, 0, buffer.length)) != -1) { output.write(buffer, 0, len); } As far as your question goes, per

Re: [appengine-java] Datastore Issues

2009-11-24 Thread Jeffrey Goetsch
Here is a subset of the code. It doesn't run or have the logic that changes the values. I have included the ChallengeDao, which highlights what I had to do to make work correctly. If I remove the PM.closePersistentManager() it fails in many different ways. I can even get a failure about can't

[appengine-java] Re: List of Child Objects Not Loading

2009-11-24 Thread datanucleus
What is going on? So you didn't put them in the fetch group then, so they weren't fetched. aka lazy loading. Read up on fetch groups and JDO -- 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

[appengine-java] out of memory on javax.mail.internet.MimeMultipart.getCount

2009-11-24 Thread david ruescas
When receiving email I get an out of memory error when calling getCount on the MimeMultipart object. Heres the stack trace: Error for /_ah/mail/rev...@reviewengine.appspotmail.com java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Unknown Source) at

Re: [appengine-java] memcache memory leak on dev server

2009-11-24 Thread Toby Reyelts
My apologies Vince, I didn't take a close enough look to notice that you were using the same key. There's certainly something unusual going on there. On Tue, Nov 24, 2009 at 1:42 PM, Vince Bonfanti vbonfa...@gmail.com wrote: But in the testcase I attached to the issue report, I'm doing a put

Re: [appengine-java] Re: convert JDO query to JPA

2009-11-24 Thread Ikai L (Google)
This actually makes more sense. JPA does not write to the data store until either the EntityManager is closed or the transaction is flushed. Here's an example using transactions: EntityManager em = EMF.get().createEntityManager(); PrintWriter out = response.getWriter(); ListDog

[appengine-java] Discussion on will-it-play-in-app-engine

2009-11-24 Thread Lombo
%...@tag isElIgnored=false % didn't compile to me %...@tag isELIgnored=false % with capital L did -- 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

[appengine-java] request for example [links] -- { gwt + appengine + bigtable + jpa + maven + {xstream(JSON)} } CRUD

2009-11-24 Thread James Northrup
for some context on my request, first, and foremost, it sure is hard to find complete, and contemporary examples of the numerous open source advancements since the first, and seemingly only literature of gwt was rushed out in the 2007-2008 timeframe. there is 0 literature for purchase about

Re: [appengine-java] Make application available for Google Apps customers

2009-11-24 Thread Ikai L (Google)
Peter, The recommended approach is to create a new app per Google Apps domain. This won't be a violation of the terms of service. On Sun, Nov 22, 2009 at 7:32 AM, Peter Ondruska peter.ondru...@gmail.comwrote: This is less technical question and I am not sure if it can be answered. I have a

[appengine-java] Package.getImplementationVersion() not supported?

2009-11-24 Thread Peter Niederwieser
I've tried the following in Groovy Web Console (http:// groovyconsole.appspot.com/): println Closure.getClassLoader() println Closure.getPackage() println Closure.getPackage().getImplementationVersion() Output: com.google.apphosting.runtime.security.userclassloa...@4bb369 package groovy.lang

Re: [appengine-java] Package.getImplementationVersion() not supported?

2009-11-24 Thread Toby Reyelts
If the classes are being loaded from UserClassLoader from a jar in your WEB-INF/lib containing a manifest, they should get package information from that manifest. If that's not what you're seeing, please file an issue in the tracker for us with a simple reproducing webapp. On Tue, Nov 24, 2009 at

[appengine-java] Re: out of memory on javax.mail.internet.MimeMultipart.getCount

2009-11-24 Thread m seleron
Hi, I want you to teach the value of [javax.mail.internetMimeMessage.getContentType() ] for confirmation. thanks. On 11月25日, 午前3:57, david ruescas fastn...@gmail.com wrote: When receiving email I get an out of memory error when calling getCount on the MimeMultipart object. Heres the stack

Re: [appengine-java] Persistable JDO object - low-level entity?

2009-11-24 Thread Ikai L (Google)
Erem, You can use the makePersistentAll() method of PersistenceManager to batch put items. See here: http://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.html#Making_Objects_Persistent This was introduced in SDK 1.2.5. On Mon, Nov 23, 2009 at 2:37 PM, Erem

Re: [appengine-java] Re: any plans for deferred.defer in Java?

2009-11-24 Thread Jeff Schnitzer
Attached is a modified version of that class that lets you define any path you want for the servlet and lets you specify which queue to use like this: Deferred.defer(task, queueName); (I needed this for my own purposes) Do with it as you wish :-) The only other major change I would make is to

Re: [appengine-java] Re: problem with using session.getAttribute()

2009-11-24 Thread Rusty Wright
Did you enable sessions? http://code.google.com/appengine/docs/java/config/appconfig.html See the section near the end, Enabling Sessions. Steph wrote: I also have the same issue when retrieving session objects from a servlet filter, and running in the local sandbox. On Nov 21, 10:11 pm,

[appengine-java] 1.2.8 SDK Prerelease - help us verify!

2009-11-24 Thread Ikai L (Google)
Hello App Engine Developers, As part of our ongoing efforts to improve release quality and transparency, we will start prereleasing SDKs for early testing. We hope this gives developers a chance to participate in our release process by trying out new changes and sending feedback. As of this

Re: Solved : Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-24 Thread Rusty Wright
(In case anyone is searching for this topic in the archives.) There's also Simple: http://simple.sourceforge.net/ http://www.ibm.com/developerworks/xml/library/x-simplexobjs/ Ravi Sharma wrote: Hi Guys, I tried Betwixt from apache(http://commons.apache.org/betwixt/index.html). And it works

Re: [appengine-java] Re: Is there a recommended way to differentiate between production and dev GAE environments?

2009-11-24 Thread Rusty Wright
The filesystem is read only on app engine; would trying to create a file, in WEB-INF for example, work? I'm wondering if there are corner cases I'm not thinking of where that might fail and falsely report that you're on app engine; for example, if you were doing integration tests under Hudson.

[appengine-java] UUID.ramdomUUID() extremely slow

2009-11-24 Thread Brian Hayward
Looking through my logs, it seems like just about every call for UUID.randomUUID() takes about 5 seconds. Is there a better way to generate UUID's than this when using the app engine? I know at least some of this is from an inactive app (there are a few minutes between most requests), but it

[appengine-java] Re: Persistable JDO object - low-level entity?

2009-11-24 Thread Erem
Ikai, Thanks for the response. The issue is that I have two types of objects that need to be persisted: (1) a bunch of JDO managed objects (2) a bunch of low-level Entity objects. Is there any way that I could batch put all of them at once through the same API rather then calling the JDO api

Re: [appengine-java] UUID.ramdomUUID() extremely slow

2009-11-24 Thread Toby Reyelts
Do you have actual timing code around that one single call, or is other stuff going on during your request? If you can create a trivial webapp that consistently shows 5 seconds just to call UUID.randomUUID() please file an issue for it, and we can look into it. On Tue, Nov 24, 2009 at 9:19 PM,

Re: [appengine-java] Re: Persistable JDO object - low-level entity?

2009-11-24 Thread Ikai L (Google)
No, there is no easy way to throw them all in. If this is a performance bottleneck, you could always write converters for each of your JDO managed entities. On Tue, Nov 24, 2009 at 6:48 PM, Erem ehb...@gmail.com wrote: Ikai, Thanks for the response. The issue is that I have two types of