[appengine-java] Different Sleeping time on different app engine applications

2010-01-08 Thread Miroslav Genov
Hello, Currently I have same code deployed on two instances on the app engine. The issue that I'm encountering is that the first instance is forced to sleep after 30-40 seconds in time, whether the second instance is not sleeping. The strange thing is that both of them are using same version

[appengine-java] memcache and session on GAE

2010-01-08 Thread nicanor.babula
Hi everyone. How memcache works on GAE? Let me explain: Do I get one memcache instance per app instance or there is one memcache instance for all instastances of my app? My app uses google accounts to handle users. I am thinking that it might be faster reading the current user data from the

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
2010/1/8 nicanor.babula nicanor.bab...@gmail.com Hi everyone. How memcache works on GAE? Let me explain: Do I get one memcache instance per app instance or there is one memcache instance for all instastances of my app? one instance for all app instances. My app uses google accounts to

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Nicanor Cristian
On 01/08/2010 10:58 AM, Prashant Gupta wrote: 2010/1/8 nicanor.babula nicanor.bab...@gmail.com mailto:nicanor.bab...@gmail.com Hi everyone. How memcache works on GAE? Let me explain: Do I get one memcache instance per app instance or there is one memcache instance for all

[appengine-java] Re: Unable to run on local server after an upgrade to 1.2.8

2010-01-08 Thread Ice13ill
i have the same error: Initializing AppEngine server The server is running at http://localhost:/ Jan 8, 2010 11:37:15 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.NullPointerException at

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
2010/1/8 Nicanor Cristian nicanor.bab...@gmail.com On 01/08/2010 10:58 AM, Prashant Gupta wrote: 2010/1/8 nicanor.babula nicanor.bab...@gmail.com Hi everyone. How memcache works on GAE? Let me explain: Do I get one memcache instance per app instance or there is one memcache instance

Re: [appengine-java] memcache and session on GAE

2010-01-08 Thread Prashant Gupta
here is a small example : @PersistenceCapable public class Property implements Serializable{ @PrimaryKey @Persistent private String Key; @Persistent(serialized = true, defaultFetchGroup = true) private Object Value; @Persistent private Long Expiry; private Property(String key, Object value,

[appengine-java] Unable to update

2010-01-08 Thread sree
i am using appengine-java-sdk-1.3.0. when i deploy the application, i am getting the following exception Creating staging directory Scanning for jsp files. Compiling jsp files. Compiling java files. Scanning files on local disk. Scanned 250 files. Initiating update. java.net.SocketException: No

[appengine-java] Error creating EntityManagerFactory bean occasionally

2010-01-08 Thread Wong
Having problem in creating EntityManagerFactory bean occasionally on the production server. There is only one entityManagerFactory bean defined in my setup. bean id=entityManagerFactory class=org.springframework.orm.jpa.LocalEntityManagerFactoryBean property name=persistenceUnitName

[appengine-java] Re: Error creating EntityManagerFactory bean occasionally

2010-01-08 Thread Wong
I suspect the cause of the problem is the ping cron every 3 minutes. I also get the following warning: This request used a high amount of CPU, and was roughly 1.2 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be

[appengine-java] Re: Unable to run on local server after an upgrade to 1.2.8

2010-01-08 Thread Ice13ill
is there a problem if i have the java 1.6.0_14 installed? do i need a new one ? On Jan 8, 1:37 pm, Ice13ill andrei.fifi...@gmail.com wrote: i have the same error: Initializing AppEngine server The server is running athttp://localhost:/ Jan 8, 2010 11:37:15 AM

[appengine-java] Re: Purge _ah_SESSION ???

2010-01-08 Thread Jorge
I found another issue with the /_ah/sessioncleanup servlet. On almost every run, a huge amount of cpu usage is reported! Example: 01-08 07:40AM 53.487 /_ah/sessioncleanup?clear 200 12275ms 7365cpu_ms 3845api_cpu_ms 0kb Jorge Gonzalez On Jan 7, 8:15 pm, Jorge athenas...@gmail.com wrote: The

[appengine-java] how to get session id under a Class which doesn't extend HttpServlet?

2010-01-08 Thread Prashant Gupta
Hi, I am trying to implement my own user management system, for that I need some way to make session id available to all classes independent of whether it extends HttpServlet or not. I know there is some way to do that but I am not able to find it. Any kind of help would be appreciated. Thanks.

[appengine-java] Re: Data Nucleus Enhancer Exception

2010-01-08 Thread Alexander Fenske
The problem is not only an eclipse problem because it happens in netbeans too. I think this is a java problem. Sometimes java does not compile the right classes. If you have this error again go the the corresponding class file (not java file) and remove it. And if you recompile you will see that

[appengine-java] jsp work directory

2010-01-08 Thread siliconeagle
does anyone know where the jsp work directory is on the dev server? -- 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

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Thanks for the report, looks like a bug. Multiple contains() clauses are fine but I didn't properly account for the case where one of the clauses is on the primary key of the object. The fix should be straightforward but let me see if I can get you a workaround. Max On Thu, Jan 7, 2010 at 7:06

[appengine-java] Re: Increased reliability issues on AppEngine for the past 48h

2010-01-08 Thread Jerome
/quotas.htmlfor more details. Is this reliability degradation for the past 48 hours seen by other users? If a Googler needs our appId for review, please drop me an email. Thank you. Jerome  20100108-appengine_issue.png 80KViewDownload -- You received this message because you are subscribed

Re: [appengine-java] jpa query

2010-01-08 Thread Rusty Wright
Just out of curiosity, what happens when you do it with a parameter? Also note that I've simplified your query; I'm looking at the DataNucleus example for an implicit parameter (http://xrl.in/47e5). Query query = pm.newQuery(select from com.testing.model.Usertest.class where username =

Re: [appengine-java] Re: Increased reliability issues on AppEngine for the past 48h

2010-01-08 Thread Don Schwarz
for review, please drop me an email. Thank you. Jerome 20100108-appengine_issue.png 80KViewDownload -- 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

Re: [appengine-java] jsp work directory

2010-01-08 Thread Rusty Wright
What do you mean by work directory? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- 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

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
I'm really sorry but I've been unable to construct an equivalent query that avoids this bug. If the size of keyList isn't too large I'd recommend executing a batch get to retrieve all those objects by id and then applying the rest of your filter in-memory. Sorry for the trouble. Max On Fri,

[appengine-java] Re: Purge _ah_SESSION ???

2010-01-08 Thread Jorge
And worst. # 01-08 10:11AM 36.094 /_ah/sessioncleanup?clear 500 10275ms 17617cpu_ms 13845api_cpu_ms 4kb See details 0.1.0.1 - - [08/Jan/2010:10:11:46 -0800] GET /_ah/sessioncleanup? clear HTTP/1.1 500 4868 - - wcondominios.appspot.com # W 01-08 10:11AM 46.311 /_ah/sessioncleanup

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Issued filed: http://code.google.com/p/datanucleus-appengine/issues/detail?id=185 On Fri, Jan 8, 2010 at 10:12 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: I'm really sorry but I've been unable to construct an equivalent query that avoids this bug. If

Re: [appengine-java] [ANN] DataNucleus AccessPlatform 2.0 released

2010-01-08 Thread Max Ross (Google)
Congrats on the release Andy! The App Engine DataNucleus plugin is not going to work out-of-the-box with DN 2.0 so please wait until we (Google) update our stuff. This is going to take some time for us but we will get it taken care of. Max On Fri, Jan 8, 2010 at 9:44 AM, Rusty Wright

Re: [appengine-java] multiple contains() clauses on the same table

2010-01-08 Thread Max Ross (Google)
Fixed in trunk. On Fri, Jan 8, 2010 at 10:31 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Issued filed: http://code.google.com/p/datanucleus-appengine/issues/detail?id=185 On Fri, Jan 8, 2010 at 10:12 AM, Max Ross (Google) maxr+appeng...@google.com

[appengine-java] Empty DataNucleus Enhancer Log

2010-01-08 Thread David Fuelling
Is there a special trick to viewing the DataNucelus enhancer log in Windows Vista? In my {$USER}\AppData\Local\Temp directory I see new files like enhance5972975064635271229.log get created whenever the enhancer runs, but they're always empty. Am I looking in the wrong spot? Also, I have my

[appengine-java] Re: App Engine SDK 1.3.0 maven repo

2010-01-08 Thread James Cooper
Here's an article that documents how to deploy the App Engine JARs to your own maven repo: http://www.bitmechanic.com/blog/?p=30 -- James On Dec 22 2009, 1:32 pm, Andreas Källberg andreas.kallb...@gmail.com wrote: Is someone going to do something about this? It's has been wrong for some time

[appengine-java] Re: jsp work directory

2010-01-08 Thread siliconeagle
the directory where the jsps are translated into java files and compiled. like in tomcat. On Jan 8, 6:03 pm, Rusty Wright rwright.li...@gmail.com wrote: What do you mean by work directory? siliconeagle wrote: does anyone know where the jsp work directory is on the dev server? -- You

[appengine-java] Re: multiple contains() clauses on the same table

2010-01-08 Thread siliconeagle
No worries, when do you think it might be fixed? just out of interest, no pressure ;) On Jan 8, 6:12 pm, Max Ross (Google) maxr+appeng...@google.com wrote: I'm really sorry but I've been unable to construct an equivalent query that avoids this bug.  If the size of keyList isn't too large I'd

[appengine-java] Re: multiple contains() clauses on the same table

2010-01-08 Thread siliconeagle
That would be great as i am just taking a guess at what is the smallest select set at the moment and filtering the rest in memory. thanks for the response. regards, rob On Jan 8, 5:48 pm, Max Ross (Google) maxr+appeng...@google.com wrote: Thanks for the report, looks like a bug.  Multiple

[appengine-java] Persist/query test.test1.Test and test.test2.Test

2010-01-08 Thread w
I have two persistable classes: test.test1.Test and test.test2.Test, but I can't persist/query objects of these classes right. There is a simple example shows wrong behavior: test.TestServlet.java: package test; import java.io.IOException; import javax.jdo.JDOHelper; import

[appengine-java] No JDO support for datanucleus ObjectStringConverter?

2010-01-08 Thread inetdevboy
I wrote a datanucleus javaTypes plugin (for joda-time LocalDate) based on the org.datanuclues.store.types.ObjectStringConverter interface. You probably know that this interface allows non-basic types to declare their ability to marshal themselves to/from a String representation for persistence.

[appengine-java] Unauthorized sender for mail (when accessing GAE from Google Apps account)

2010-01-08 Thread therealjz
When sending mail, I get the following error: utils.Utils sendMail: javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Illegal Arguments (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized sender) The from address is set to the email address that I use

[appengine-java] Re: jpa query

2010-01-08 Thread asianCoolz
thank you for your response Rusty. I already tried with parameter. return 0, that is why i retry with simply statement select c from com.testing.model.Usertest c where c.username = 'test' . the example in datanucleus website is using pm. while i'm using jpa entitymanager. -- You received this

[appengine-java] Re: how to get session id under a Class which doesn't extend HttpServlet?

2010-01-08 Thread Elias Mårtenson
On 9 Jan, 01:27, Prashant Gupta nextprash...@gmail.com wrote: I am trying to implement my own user management system, for that I need some way to make session id available to all classes independent of whether it extends HttpServlet or not. I know there is some way to do that but I am not

[appengine-java] Re: Handling incoming emails, broken due incorrect attachment size.

2010-01-08 Thread de Witte
Can anyone verify this, problem still exists and is a show stopper. Response from google? -- 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

Re: [appengine-java] Re: App Engine SDK 1.3.0 maven repo

2010-01-08 Thread Rusty Wright
Those instructions seem a bit more than what is needed in my opinion. I just used the maven command to install the jars in my local repository ~/.m2 (actually some place different on my Windows pc). I use the following copy.cmd file on my pc; all of the jar files it references are in the

[appengine-java] Re: custom vs. generated keys / storage?

2010-01-08 Thread phraktle
could someone from Google weigh in on this? thanks, Viktor On Jan 6, 12:43 pm, phraktle phrak...@gmail.com wrote: Hi, I'm using the low-level DS API, thus short names for kinds, etc, and my keys are already quite compact. The encoded version is in fact significantly longer than my

[google-appengine] Re: Can't Parse Incoming Email

2010-01-08 Thread Wesley Chun (Google)
in other words, text should probably be called 'text_bodies'. then you can do something like: logging.info(%s: %s % ('Message bodies', ''.join('msg %d: %s; ' % x for x in enumerate(text_bodies))) in case it wasn't clear or seems to be obfuscated, here's a plain text example of what the

Re: [google-appengine] Application specific configuration vars

2010-01-08 Thread Wesley C (Google)
devraj, since it's your application, it's probably best that you maintain your own configuration files because those are specific application settings that you're adjusting, not App Engine settings. plus Python's syntax is so straight forward that i've seen many companies simply use a separate

Re: [google-appengine] Performance Issues

2010-01-08 Thread Wesley C (Google)
can you send us your application ID? we can help take a look at it. also, how was performance yesterday,... and today? just curious if there were any differences, or whether something else changed, like usage, latency, datastore access, etc. thx! -wesley On Mon, Jan 4, 2010 at 8:06 PM, Devel63

[google-appengine] Re: Django didn't fully load. Help!

2010-01-08 Thread aw
Is there any way to avoid a bad initialization? I seem to be having a lot of them. Thanks Alvin On Jan 7, 12:41 pm, Jason C jason.a.coll...@gmail.com wrote: Are you using Django 1.1? I've heard that it is better about being clean after a bad initialization - e.g., when a

[google-appengine] Key sorting.

2010-01-08 Thread Timofey Danshin
Hi. I am writing a cms, which has sections and articles. Both of them are represented by the same object of the type Node of my own composition. Among other fields, a node has a SetNode, representing it's children. Consequently, root nodes (i.e. sections have simple keys (say, Node(1))), and

[google-appengine] Re: Anyone operate a heavy-traffic large-scale web service on app engine?

2010-01-08 Thread Michael
For me it's CPU. But i use GAE only for back end for the flash app, so i don't have large HTML traffic. Payment for storage is minimal, because i started my app only at September. On Jan 6, 10:31 pm, lucrussell russell@googlemail.com wrote: For those people who mentioned the high cost of

[google-appengine] Re: Using MySQL

2010-01-08 Thread raees
Thanks folks On Jan 7, 10:55 pm, Devraj Mukherjee dev...@gmail.com wrote: On Fri, Jan 8, 2010 at 9:03 AM, raees ura...@gmail.com wrote: Can I use MySql on google app engine ? if not what database support is available If your app absolutely centric to MySQL then you might want to consider

[google-appengine] Re: Anyone operate a heavy-traffic large-scale web service on app engine?

2010-01-08 Thread Michael
In my experience, i can easily host the same amount of traffic (and more) from one dedicated server for $100/month (nowadays you can have quadcore with 8GB ram, 1Tb disk and 4000Gb traffic for that money). Of course, i wouldn't have the same amount of reliability. I started my app from scratch

[google-appengine] Re: GAE + Eclipse + Maven

2010-01-08 Thread KasperDK
Hi, I can see no one has answered Tim. I also uses Maven, and would like information about this. I've tried with the gae maven plugin, but I find this solution far from optimal. Is there plans to extend the eclipse plugin with maven support ? What is the current best practice ? :-) On Dec 7

Re: [google-appengine] Using MySQL

2010-01-08 Thread David
If you are committed to both an RDBS and to Appengine, take a look at Rdbhost. We host Postgresql relational databases, accessible via a web-service (ie: the GAE urlfetch module). We provide a Python DB API module that works under GAE. https://www.rdbhost.com There is a very simple GAE example

[google-appengine] GWT RPC + JDO - persisted object loses its id when sending from server back to client.

2010-01-08 Thread Kah0ona
I have a problem with the following things: @PersistenceCapable(detachable = false, identityType = IdentityType.APPLICATION) @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class Person { @PrimaryKey @Persistent(valueStrategy =

[google-appengine] Very high datastore latency at the moment

2010-01-08 Thread herbie
There seems to abnormally high datastore latency (writing) at the moment. Are people at Google aware of this? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To

Re: [google-appengine] Using MySQL

2010-01-08 Thread Niklasro.appspot.com
2010/1/7 raees ura...@gmail.com: Can I use MySql on google app engine ? if not what database support is available Thanks Raees approcket is an (inofficial) active workaround enabling MySQL replication I use if you like svn version http://approcket.googlecode.com/svn/trunk/ approcket-read-only

[google-appengine] Re: GAE + Eclipse + Maven

2010-01-08 Thread Grant
There are open bugs relating to this... Star these issues to add support to them. http://code.google.com/p/googleappengine/issues/detail?id=1515 and http://code.google.com/p/googleappengine/issues/detail?id=1296 Grant -- You received this message because you are subscribed to the Google

[google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread RyanD
One followup question to the case described above: If I want entity types that are application controlled, and dynamically created through the low level API (as described above), then there is no way to create indexes unless there is also some kind of low level API for index creation. As it

[google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread RyanD
Hmm, nevermind, I see the issue in the issue tracker related to an Index Management API. I guess I'm not the only one. Starring it. On Jan 8, 1:46 pm, RyanD r...@dewell.org wrote: One followup question to the case described above: If I want entity types that are application controlled, and

[google-appengine] Optimum keys-only request size

2010-01-08 Thread Derrick
Does anyone have data on how API time spent varies on a given query as you change the number of keys that you request for a keys only query? Is asking for 50 keys approximately the same cost as 1 or 200 or 500? -- You received this message because you are subscribed to the Google Groups Google

Re: [google-appengine] Using MySQL

2010-01-08 Thread Patrick Twohig
Whoever was asking about HIPPA compliance, that may be a way to stay in compliance. If you put your actual sensitive records in an encrypted database on your own servers it'd probably be okay. I seem to recall when I worked for a medical company, that transmission and storage of patient names

[google-appengine] torrent-server : store and serve really big files using BitTorrent

2010-01-08 Thread Gavin Andresen
I wanted to learn more about App Engine and the BitTorrent protocols, and I figured the best way to learn is by doing. So I've created 'torrent-server'; it lets you: Upload arbitrarily large files into the App Engine datastore (using a command-line python client and the App Engine remote_api,

[google-appengine] Re: delete database

2010-01-08 Thread Andrew Barilla
Run dev_appserver.py --help and under the details for -- datastore_path and --history_path it will show you the default location. The files should be in your temp directory. On Jan 7, 1:20 pm, siliconeagle rrmu...@gmail.com wrote: how do i delete the database on the developemnt server? -- You

[google-appengine] Re: Random Deadline Exceeded exceptions

2010-01-08 Thread ekampf
Happens to me too... Even worse is that it's thrown during django's loading... doesn't even reach my code... On Jan 8, 8:32 am, Arun Shanker Prasad arunshankerpra...@gmail.com wrote: Hi, Starting yesterday, I am getting random Deadline Exceeded exceptions in my application. This creeps at

[google-appengine] What's the quickest way to insert into DB in either Java or Python?

2010-01-08 Thread Sameer
Of the two languages and the associated web frameworks, what is the quickest way to insert or update an entry into the datastore? Specifically, which framework on either appengine python or java has the lowest per request overhead? In python, I imagine it would be webpy, is there anything

Re: [google-appengine] Using MySQL

2010-01-08 Thread Sandeep Sathaye
You can also look at Cloud2db. We have implemented a relational database on Google Bigtable accessible via JDBC and SQL. http://www.cloud2db.com On Fri, Jan 8, 2010 at 10:14 AM, David dvkee...@gmail.com wrote: If you are committed to both an RDBS and to Appengine, take a look at Rdbhost. We

Re: [google-appengine] torrent-server : store and serve really big files using BitTorrent

2010-01-08 Thread OvermindDL1
On Fri, Jan 8, 2010 at 11:22 AM, Gavin Andresen gavinandre...@gmail.com wrote: I wanted to learn more about App Engine and the BitTorrent protocols, and I figured the best way to learn is by doing.  So I've created 'torrent-server'; it lets you: Upload arbitrarily large files into the App

Re: [google-appengine] Re: Quota on number of entity types / kinds?

2010-01-08 Thread Nickolas Daskalou
You could get the dev server to update index.yaml with the dynamic indexes by running a query on the dev Datastore that would require the desired index on your dynamic entity kind. However if it's not possible to know all the dynamic entity kinds you'll need on the live server, then this wouldn't