[appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Edwin Hautus
I also did some experiments trying to improve my app initial load time and think simply loading new classes in GAE is quite expensive - probably due to all the security restrictions of the class loader. It may be that the first use of a JSP causes a lot of classes to be loaded which causes the init

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Eduardo Ramírez
Hi, I think that this extra time you're seeing is the time expended in compiling the JSP, which occurs the first time a particular JSP is accessed, as you can see in: http://en.wikipedia.org/wiki/JavaServer_Pages_compiler You can google around for some precompilation techniques for your JSP

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Brian Wawok
My advice stands though. No jsp means nothing to compile ;) On Feb 14, 2010 12:58 AM, "Spines" wrote: That is called a loading request. What I am talking about is not the extra time due to a loading request. I'm talking about the first access to a jsp. I know that it is not a loading request

[appengine-java] Concatenate 2 images into one image

2010-02-14 Thread Don
Hi, Is there way to concatenate 2 images into one image using ImagesService? Thanks -- 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

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Daniel Benamy
I think google just turned on precompilation in 1.3.1. On Sun, Feb 14, 2010 at 8:31 AM, Eduardo Ramírez wrote: > >   Hi, > >   I think that this extra time you're seeing is the time expended in > compiling the JSP, which occurs the first time a particular JSP is accessed, > as you can see in: htt

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Brian Wawok
* Precompilation makes loading requests faster by doing class-loading work ahead of time in the App Engine environment* * * *I suspect precompile only hits .java files and not .jsp files * On Sun, Feb 14, 2010 at 9:17 AM, Daniel Benamy wrote: > I think google just turned on precompilation in 1.3.

[appengine-java] Re: Mail with ODT attachment

2010-02-14 Thread Peter Ondruska
Feature request created as http://code.google.com/p/googleappengine/issues/detail?id=2778 please star it. On Feb 14, 7:56 am, seleronm wrote: > Hi, > > I think it is a good idea. > > On 2月13日, 午前1:34, Peter Ondruska wrote: > > > > > Shall we file a bug report for enhancement to include open doc

[appengine-java] has multiple relationship fields - error

2010-02-14 Thread aswath satrasala
public class Party { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") private String id; @Persistent private PartyUserLogin userLogin; @Persistent private List collaborator

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Eduardo Ramírez
On Sun, Feb 14, 2010 at 17:05, Brian Wawok wrote: > ** > ** > *I suspect precompile only hits .java files and not .jsp files* > From http://code.google.com/appengine/kb/java.html#initfailed it seams that JSP should also be precompiled, but sometimes it doesn't. -- Eduardo Ramírez http://kyne

[appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Spines
Yea, it seems that according to Eduardo's link the jsps are precompiled, so it is probably something else. On Feb 14, 8:45 am, Eduardo Ramírez wrote: > On Sun, Feb 14, 2010 at 17:05, Brian Wawok wrote: > > ** > > ** > > *I suspect precompile only hits .java files and not .jsp files* > >   Fromht

Re: [appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Brian Wawok
There are all kinds of random hidden delays when a app isn't used in a while. One that I think I discovered, is the first time you load an object of type X from the database, there is a 2000ms lag. At least working this way in my app. Can be very active using object A from the data store, but the s

[appengine-java] Bulk Upload with Authentication

2010-02-14 Thread lembas
I have a Java-app-with-authentication. I created it this way. I wish I had not. I need to upload bulk data. I am waiting for months but Java "still" cannot do it. I tried to do it with Python. I cannot do with it either because I have created my app with authentication and I cannot change my app b

[appengine-java] JPA still has the 1000 record limit in GAE 1.3.1?

2010-02-14 Thread mjustin
My application uses JPA and I see the same errors as in version 1.3.0 now. If I count records in a table which has more than 1000 entries, the result is 1000. If I try to start a Query at an offset > 1000, this error occurs: Caused by: java.lang.IllegalArgumentException: offset may not be above

[appengine-java] Re: Mobile phone picture message HowTo

2010-02-14 Thread A1programmer
I'm having the same problem, specifically using verizon. I can send text messages to vtext.com, but cannot send images to vzwpix.com. I set up a forward from a different email address, to my phone (@vzwpix.com), and it worked without problems. On Feb 13, 3:40 pm, moca wrote: > I am able to send

[appengine-java] Using URLFetchService to post Twitter updates always fails with 403

2010-02-14 Thread Gero
Hi, I'm using the Scala code snippet below to post to Twitter from a GAE application. val credentials = "X" // Base64 encoded version of username:password val req = new HTTPRequest(new URL("http://twitter.com/statuses/ update.xml"), HTTPMethod.POST) req.addHeader(new

[appengine-java] Re: Mobile phone picture message HowTo

2010-02-14 Thread A1programmer
I have performed more testing. I can send pic messages using the exact same email address (hosted by google) which is used to send pics out from my app engine application. However, I have not been able to get a configuration to work directly from app engine. It is critical that I get this workin

[appengine-java] Issue with URLFetchService & HTTPResponse .getContent()

2010-02-14 Thread Johnnie Walker
Hi, I might be my environment but could somebody else please check if they can replicate this: URLFetchService f=URLFetchServiceFactory.getURLFetchService(); HTTPResponse r=f.fetch(new URL(url)); If then I execute this line: r.getContent().getClass().getName() it returns this: [B (Yes, squ

[appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Spines
Yes, that database lag you talk about is JDO setting up the metadata for objects. If you go into your logging.properties and change the logging level to FINE, you can see what it is doing. On Feb 14, 11:26 am, Brian Wawok wrote: > There are all kinds of random hidden delays when a app isn't used

Re: [appengine-java] Issue with URLFetchService & HTTPResponse .getContent()

2010-02-14 Thread John Patterson
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#getName() On 15 Feb 2010, at 05:40, Johnnie Walker wrote: Hi, I might be my environment but could somebody else please check if they can replicate this: URLFetchService f=URLFetchServiceFactory.getURLFetchService(); HTTPResponse r=f

[appengine-java] Re: First access to a jsp takes a while

2010-02-14 Thread Spines
All of this would not be an issue if users didn't have to actually wait for the initialization of everything. If Google would implement this warm-up request feature http://code.google.com/p/googleappengine/issues/detail?id=2690 then we wouldn't have to worry about slowness due to initialization.

[appengine-java] Re: JPA still has the 1000 record limit in GAE 1.3.1?

2010-02-14 Thread Timofey Koolin
Offset get all records from datastore, than skip first n records. You can try to read http://code.google.com/appengine/articles/paging.html On Feb 15, 12:02 am, mjustin wrote: > My application uses JPA and I see the same errors as in version 1.3.0 > now. > > If I count records in a table which

[appengine-java] Re: Getting the size of a http request?

2010-02-14 Thread armanuj
Ok, Thanks, Ikai. I will try this (subject to latency considerations), and let you know. I am assuming GAE tracks the bytes flowing on the wire and log it - could there be access to such data from the logs for each request? If so, how to enable such logging and how to access such data from the log

Re: [appengine-java] Setting the key of a child entity

2010-02-14 Thread Manny S
Thanks Ikai, I am doing it the way you described and it does work. Just wanted to know if there is a way to set the child key explicitly as parent + "const string". But I understood that will not work with datastore generated keys since the parent needs to be persisted in order to get a key. Apolog