[appengine-java] Re: URL Fetch problems

2011-03-07 Thread Kim Kha Nguyen
I found the solution: Use low-level API (help here: http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/ - thank Ikai Lan so much). And you must use FetchOptions.Builder.doNotValidateCertificate() to turn of Validate certificate process... -- You received

[appengine-java] Creating/Compiling new Java class at run time

2011-03-07 Thread Rick Smith
Hi all Can I create and compile a java class at run time on goolge appengine. Use case: I have given a UI to my application user that they can define their own business logic.Now what is going to be main challenge is that I need to make new deployment each time when some one need to modify its

Re: [appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-07 Thread Cláudio Coelho
Hi I'm quite new at GAE, so I'm probably saying something silly, but for what I read on GAE Java and GWT Application Development, I was under the impression that GAE would generate indexes automatically except for some variable types (blobs, text, etc) and for when we explicitly asked it not to.

[appengine-java] Re: Logging message info-level

2011-03-07 Thread Jonas Gehring
thanks, now it works. On 1 Mrz., 21:13, Ikai Lan (Google) ikai.l+gro...@google.com wrote: Can you post your logging.properties? You'll want this setting: .level=INFO Once you have that working, it'll be easier to fine tune for more granular control over levels. -- Ikai Lan Developer

[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-07 Thread Didier Durand
Hi, Could you please disclose the source code of your objects stored in the ds ? You maybe right or wrong depending on how they were defined. regards didier On Mar 7, 9:41 am, Cláudio Coelho ereb...@gmail.com wrote: Hi I'm quite new at GAE, so I'm probably saying something silly, but for

[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-07 Thread Cláudio Coelho
Since the bottleneck occurs when making objects of Location persistent, I assume that is the only relevant class. If anything else is relevant, tell me and I'll disclose. @PersistenceCapable(identityType = IdentityType.APPLICATION,detachable=true) public class Location{ @PrimaryKey

[appengine-java] UserService error

2011-03-07 Thread Aswath Satrasala
Hello, I had a situation, where I encountered an UserService returning a null User. I can see in my logs, that the end user is logged in and performing some operations. He waits for 10-20 seconds and performs another operation. From the logs, I can trace that UserService returned a null User.

[appengine-java] Re: What is maximum number of entities I can update within the 30 sec time limit of App engine ?

2011-03-07 Thread Didier Durand
Hi, I have a personal rule of thumb of 10 udpated entities / second [Ds is made for heavy read throughput but is not so fast on writes] The new High Replication datastore seems (not tried it personally...) slower: 1 update per second is what is the max recommended. See

[appengine-java] compute intensive application

2011-03-07 Thread broiyan
I want to set-up a compute intensive application on GAE and I would like to know if the Task Queue is going to pose serious obstacles to reducing the elapsed time. I am presently running a test application (not using task queues) that takes about 1 second (a 650 million iteration no-op loop).

Re: [appengine-java] Re: What is maximum number of entities I can update within the 30 sec time limit of App engine ?

2011-03-07 Thread suersh babu
Thanks Didier, That is really helpful, but I have another question, We have a web application, and we use GWT for this web application, so If I need to update the entities by task queue and show it as a report to the user. What is the assurance that our task job get started as soon as we put

Re: [appengine-java] Re: What is maximum number of entities I can update within the 30 sec time limit of App engine ?

2011-03-07 Thread Matija
If your user starts some action that updates a lot of entities and you need to show him soon after that action all or many of these entities then you should probably change your entities model or user interface. -- You received this message because you are subscribed to the Google Groups

[appengine-java] Re: compute intensive application

2011-03-07 Thread Simon Knott
A few thoughts: - Are you taking into consideration loading requests? These will cause pauses which can last a few seconds. - Have you enabled warm-up requests? - What do your logs say are causing the 5xx errors? - Have you looked at the logs for what may be causing the long

[appengine-java] Re: compute intensive application

2011-03-07 Thread Didier Durand
My 2 cents: - queues scale up very well: I tried them with no throttle (on bucket size) and you easily get 12-15 jvm running your computations. To my knowledge, queues are the best way to get parallelism on GAE. but - data access / contention may be the issue: don't you write anything back ? That

[appengine-java] Re: compute intensive application

2011-03-07 Thread Simon Knott
Your GAE logs should be able to give you more information as to whether the pauses are within GAE, or connectivity/routing issues. What exactly are you trying to do? 1000 JVMs seems quite excessive -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: compute intensive application

2011-03-07 Thread Didier Durand
Hi, I gave my number of 12-15 because that's all what I have used personally until now but you surely can go much higher regards didier On Mar 7, 6:02 pm, broiyan brian.lim...@gmail.com wrote: Simon: The long pauses (5 to 30 seconds or more) are definitely not inside the servlet since the

[appengine-java] Re: running example app get error java.lang.IllegalArgumentException: appId not set

2011-03-07 Thread Liendro Jose
? -- 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

[appengine-java] java.lang.RuntimeException: FacesContext not found

2011-03-07 Thread sri
hi all, I am getting java.lang.RuntimeException: FacesContext not found when running my sample faces project in GAE. My web.xml looks like this, ?xml version=1.0 encoding=utf-8? web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee;

[appengine-java] Re: Login redirect failing all of a sudden /_ah/conflogin

2011-03-07 Thread Ralph
Hi, I'm also seeing this issue. Is it related also to the fact that I have multiple login enabled? If someone that has solved it, can post some example code, that would be appreciated. Thanks, Ralph On Mar 4, 2:59 pm, Jon McAlister jon...@google.com wrote: The workaround is to have the app

[appengine-java] Need Help in Unit Testing (How to convert btw Entity and JDO class)

2011-03-07 Thread Erencie
I am quite confused when I read the instructions about unit testings on the official site. It mentions that we need to have LocalServiceTestHelper set up to do the unit testings. Currently, I have a huge system which consists of 6 different JDO persistent data classes; and in testings I would

[appengine-java] Re: running example app get error java.lang.IllegalArgumentException: appId not set

2011-03-07 Thread Liendro Jose
Hi, i have the same problem and lucky i resolved :p , first remove from WEB-INF/lib all appengine and datanucleus jars that have old version that App engine SDK library. For example in my App engine eclipse library i had appengine-api-1.0-sdk-1.4.2.jar and in WEB-INF/ lib directory i had and old

[appengine-java] Re: Login redirect failing all of a sudden /_ah/conflogin

2011-03-07 Thread Lars Rönnbäck
Where and when was this change announced? It is causing a major inconvenience right now before we are able to push a new release with the suggested workaround. I don't want to end up in this situation ever again. We have built a client-side web application using HTML5 that stores information in

[appengine-java] Help me understand adding objects to existing entity groups

2011-03-07 Thread mscwd01
Pardon my ignorance, I have read the docs over and over and this still alludes me. I have two objects, lets call them User and Skill. When a person signs up to my site they are saved as a User. A user may have multiple skills, these are stored as a list within the User object, e.g. @Persistent

Re: [appengine-java] how to keep fields unique

2011-03-07 Thread emurmur
It turns out the technique I described in my previous post has two issues. 1. Because only one transaction can be running at a time within a process, and the entity used as the mutex really cannot be in the same entity group as the primary entity, you can get into a situation where the mutex

Re: [appengine-java] Google App Engine Java Cookbook Sceencast

2011-03-07 Thread Vinny
Awesome! I will be there as well. See you in Atlanta! -- biz: http://www.linkedin.com/in/vincentstoessel/ personal: http://xaymaca.tumblr.com/ On Sat, Mar 5, 2011 at 11:45 PM, systemsplanet m...@systemsplanet.com wrote: I'm demoing Google App Engine at DevNexus 2011 on March 21st as part of

[appengine-java] Re: Need Help in Unit Testing (How to convert btw Entity and JDO class)

2011-03-07 Thread lp
i havent unit tested with JDO but with JPA. But i expect it to work the same. the example on the http://code.google.com/appengine/docs/java/tools/localunittesting.html is using the datastoreService, since u are using JDO u will need a persistence manager. no need for 'Entity' just use JDO or

[appengine-java] Undocumented limit on URL length?

2011-03-07 Thread Jeff Schnitzer
Is there an undocumented limit on the length of a URL that can be fetched using the URLFetch service? There is no mention of a limit in this document, other than 1MB total for the request: http://code.google.com/appengine/docs/java/urlfetch/overview.html#Quotas_and_Limits I'm getting a

[appengine-java] Sub domain for static content

2011-03-07 Thread Jeff Knox
I am sure this is a simple thing but my brain just doesn't want to make it so simple today. Say I point two sub-domains to my application: www.mydomain.com app.mydomain.com That is all well and good - both now serve up my application. What I would like is for the WWW sub-domain to serve up

Re: [appengine-java] Sub domain for static content

2011-03-07 Thread Nick Johnson (Google)
Hi Jeff, There's no way to distinguish based on domain in app.yaml/web.xml. You'll need to either have the same mappings in both (but only request static files off one of the domains) or use a servlet and serve them dynamically. -Nick Johnson On Mon, Mar 7, 2011 at 5:56 PM, Jeff Knox

Re: [appengine-java] Sub domain for static content

2011-03-07 Thread Jeff Knox
Nick, thanks for the reply. Can you elaborate on the first option? I'm not sure what you mean by the same mappings in both. (Yes my brain is mush today.) In my current configuration I have a single application (yet another photo gallery). I would like www.jeffknox.com to go to my general web

[appengine-java] Google apps account does not remove appengine service

2011-03-07 Thread Vik
Hie i have a google apps account for domain sakshum.org. We added app engine service signed with account v...@sakshum.org (which is the admin account) Now even after repeated try to disable this service from dashboard it does not go we waited also for a day etc just in case it takes time

[appengine-java] Request CPU variance with 'Always-on'

2011-03-07 Thread lp
hi all, i have getting large variance in my request and api cpu. I have read the countless articles on the topic and the quota doc. what i am seeing is *not* do to process startup as i have 'Always on' enabled since there is no more of the ' This request required a process to startup. Below

[appengine-java] Re: uploading 100k lines into the datastore is enough to max out the CPU time?

2011-03-07 Thread captain
Hi Claudio Try makePersistentAll() It will certainly help Cheers CB On Mar 7, 2:57 am, Cláudio Coelho ereb...@gmail.com wrote: Since the bottleneck occurs when making objects of Location persistent, I assume that is the only relevant class. If anything else is relevant, tell me and I'll

[appengine-java] Re: Help me understand adding objects to existing entity groups

2011-03-07 Thread Ian Marshall
Have you looked at the Google App Engine for Java persistence blog at http://gae-java-persistence.blogspot.com You should find some excellent JDO and JPA working examples here. I have found these very beneficial for me. There are other persistence interfaces available for GAE/J as well as JDO

[appengine-java] How to check App Engine's Mail Quota?

2011-03-07 Thread Chandana Napagoda
Hi, Is there any way to check Google App Engine reaming Quota?I need to check Quota using Java Api. How can I do it? Thank You. -- 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