Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jeff Schnitzer
I don't understand this code at all. You're querying the data and then iterating over a separate call? And what does the extra call to list.size() have anything to do with this? The code linked from http://slim3demo.appspot.com/performance/ has just gone back to calling list.size() without

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Yasuo Higa
It's *NO* bogus benchmark because the sample iterates the results. http://code.google.com/p/slim3/source/browse/trunk/slim3demo/src/slim3/demo/controller/performance/GetLLController.java Yasuo Higa The code linked from http://slim3demo.appspot.com/performance/ has just gone back to calling

[appengine-java] Re: Federated Login authentication Issues.

2011-06-09 Thread Aswath Satrasala
Fedarated Login authentication option is enabled. - The user logs in using the Google apps account. - The user will not be able to send emails. Email service is broken with FederatedLogin with Google Apps account. Why I need Federated Login: One of the requirement to list in the googlapps

[appengine-java] Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-09 Thread cghersi
Hi all, I've got an issue with a property with type ArrayListString. Let's suppose I've got a class like this: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) @Inheritance(strategy=InheritanceStrategy.SUBCLASS_TABLE) public class CommContact implements

[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-09 Thread Ian Marshall
Hi, A few trouble-shooting questions: · What's in your logging.properties file? · Where is this file? Has it moved recently? Have you more than one copy of this file? On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote: Hi I always was writing the info messages to the log (like described

[appengine-java] Re: Why does the info messages stopped appearing in the Logs?

2011-06-09 Thread Ian Marshall
Hi, A few trouble-shooting questions: · What's in your logging.properties file? · Where is this file? Has it moved recently? Have you more than one copy of this file? · Do you use java.util.logging.Logger or something else like Log4J? On Jun 8, 2:00 pm, Daniel vedm...@gmail.com wrote:

[appengine-java] getInputStream.read() returns -1 always

2011-06-09 Thread Pradeep
Hello all, I am using the request.getInputStream().read() and the return value is always -1. Here is my code public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { resp.getWriter().println(req.getInputStream().read());

[appengine-java] Memcache Problem

2011-06-09 Thread Rittik
Hi, I am trying to cache a huge amount of data and getting this exception MemcacheServiceException: Memcache put: Error setting single item. Is there any possible way to cache data of huge size. How does google achieve it while displaying the search results. I bet there the data is far greater

[appengine-java] Google app engine plugin for Eclipse

2011-06-09 Thread qldvoipster
Reading the howto on how to install the plugin and recommendations for Java versions on Google app engine. The recommendation is to use Java 1.6 as this is what the App Engine servers run. That's great. That's the JDK I'm using with Eclipse as well. Followed the plugin instructions in the Google

[appengine-java] Re: How do I migrate old data (change schema) in a deployed Java app?

2011-06-09 Thread Sandeepa Nadahalli
Hello, I have the same problem. But your solution is not working for me. Can you help? Thanks, SN -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit

[appengine-java] Dead link report

2011-06-09 Thread Jakkrit Vongsraluang
Page: https://code.google.com/appengine/docs/java/datastore/jdo/dataclasses.html Section: Class and Field Annotations Dead link: the DataNucleus documentationhttp://www.datanucleus.org/products/accessplatform_1_1/jdo/types.html -- You received this message because you are subscribed to the

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jeff Schnitzer
Ok - so what you're saying is that the extra call to list.size() before iterating through the list makes list iteration faster? Oddly enough, this does seem to make a difference. This looks like some sort of performance bug in the Low-Level API. It's clearly not related to Slim3... except in as

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jeff Schnitzer
On Thu, Jun 9, 2011 at 1:32 AM, Gal Dolber gal.dol...@gmail.com wrote: I am not comparing reflexion vs byte-code generation or anything like that, apt generates code, is not a runtime technology. Like or not reflexion is known to be slower than actually writing the code. This is entirely

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jeff Schnitzer
Star this issue: http://code.google.com/p/googleappengine/issues/detail?id=5167 I'm willing to bet I know exactly what's going on. When you call size() first, the backing ArrayList is being created initially with the proper size. If you don't call size() first, the backing ArrayList is

[appengine-java] Some very long logs are cut in the Admin Console

2011-06-09 Thread cghersi
Hi all, I'm experiencing a problem checking the logs of my app in AdminConsole. I've got a very long task started as a cron job with a task queue. It produces a very long log, composed by hundreds of message. But suddenly the log is cut in the middle of an action. I'm totally sure that there

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Dennis Peterson
Haha, excellent. I studied cargo cults a bit in anthropology classes, long ago, and never suspected how relevant they would be. You would probably enjoy this: http://www.fanfiction.net/s/5782108/1/Harry_Potter_and_the_Methods_of_Rationality Until Google makes a change, maybe the other

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Gal Dolber
Ok, you actually got me to waste 1 hour on benchmarking and I hate to say that you are right. The use of reflexion seems not to be heavy enough to make the difference. Some extra features on slim3 make it slower when you don't make use them, I almost have a working path to avoid this problem, but

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jeff Schnitzer
Don't feel bad - I've now wasted over a day on this! Sorry if I've come across as grumpy in previous emails... but I've wasted over a day on this :-( Jeff On Thu, Jun 9, 2011 at 4:25 PM, Gal Dolber gal.dol...@gmail.com wrote: Ok, you actually got me to waste 1 hour on benchmarking and I hate

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Jay Young
When frameworks compete, everyone wins! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/3zCQizDuxPIJ. To post to this group, send

Re: [appengine-java] Re: Is the native API really so much faster than JDO and slim3?

2011-06-09 Thread Gal Dolber
No problem... I say what I think, but have no shame to admit when I'm wrong On Thu, Jun 9, 2011 at 8:55 PM, Jay Young jayyoung9...@gmail.com wrote: When frameworks compete, everyone wins! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java

[appengine-java] Re: DLL how to handle data tables

2011-06-09 Thread Nathan Stiles
I didn't hear from anyone on this topic so maybe I posted in the wrong forum. What I've decided is that I need a tool to handle this issue. I'm hoping there is not something better and already made(there probably is but I didn't find it, I didn't look too hard). Here's my plan: *OBJECTIVE*

[appengine-java] Re: How do I migrate old data (change schema) in a deployed Java app?

2011-06-09 Thread Nathan Stiles
What is this DataViewer? How do I use this? Eclipse? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/skuDsBkU2CUJ. To post to this

[appengine-java] Re: Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-09 Thread Nathan Stiles
I have almost 0 experience I'm just reading to learn a bit. It seems rather ambitious to store an ArrayList? Maybe modifying your tags to be an array would be more successful. You could probably keep your g/setters and modify them slightly. Then you have to convert exiting datastores. I

[appengine-java] Re: Sometimes arraylist stored in Datastore are not correctly retrieved

2011-06-09 Thread yuvi
Hi, My declarations are a bit different but I have seen this happening GAE not loading the subitems by default in some cases, then if you close the PersistenceManager, subitems List is null. I have solved it by looping all items and subitems before closing the PersistenceManager On