[appengine-java] Re: Cache stops returning results under heavy load

2009-12-08 Thread Martin Caslavsky
Sorry, it is dmczum. FYI redeploy of the app helps for a few hours. Martin On Dec 8, 2:20 am, Ikai L (Google) ika...@google.com wrote: Martin, Can you provide your app ID? I'm not able to look up czumdm. On Sun, Dec 6, 2009 at 4:40 PM, Martin Caslavsky mcaslav...@gmail.comwrote: Hi,

[appengine-java] database transaction problem

2009-12-08 Thread lent
Hello, I have a daily cron job which kicks off a sequential 500 tasks (chained). These usually run successfuly but a few days ago, on the first task, I got the following error: [xxx/1.338222621935386721].stderr: java.lang.IllegalStateException: Attempted to deregister a transaction that

[appengine-java] Re: database transaction problem

2009-12-08 Thread lent
I took a look at the log entries more closely and it looks like the cron job which is to run daily got kicked off twice for some reason. Instead of one chain of 500 sequential tasks being started up two chains of 500 were running in parallel. This may explain the errors I was getting though I

[appengine-java] Re: Datastore Statistics vs. Quota

2009-12-08 Thread Toby
Hello Eric, Thank you for you explanation. It sounds kind of logical but still I am confused about the index thing. Reading the doc carefully it tells me that indexes are created based on the queries I make. Hence if I never query an entity on a certain property there should be no index. Also

[appengine-java] Re: Nearly doubled CPU usage since december 3rd

2009-12-08 Thread SCMSoft
This seems very weird, as the pricing is all dependent on CPU time, and is similarly prices as for instance Amazon EC2. Now when the CPU seconds are not actually CPU seconds but some bogus unit (that happens to increase much faster than actual CPU usage), this suddenly makes appengine a lot less

[appengine-java] Re: Multipart mail regression in 1.2.8 ?

2009-12-08 Thread mably
If you encounter the same problem, please vote for issue http://code.google.com/p/googleappengine/issues/detail?id=965 On 8 déc, 12:16, mably fm2...@mably.com wrote: Hi Ikai, Effectively the code you provided seems to work but not exactly as I hoped. Before 1.2.8, I was able to send an html

[appengine-java] Re: What's the right way to use PersistenceManager?

2009-12-08 Thread David Chandler
I've created an interface PMF: PMF.java package com.turbomanage.gwt.server; import javax.jdo.PersistenceManager; public interface PMF { PersistenceManager getPersistenceManager(); } and a default implementation that I inject via Guice into my service classes: DefaultPMF.java package

[appengine-java] How to set the output format for the Image service?

2009-12-08 Thread hzqtc
In the documents, it says: The service accepts image data in the JPEG, PNG, GIF (including animated GIF), BMP, TIFF and ICO formats. It can return transformed images in the JPEG and PNG formats. If the input format and the output format are different, the service converts the input data to the

Re: [appengine-java] How to set the output format for the Image service?

2009-12-08 Thread Don Schwarz
ImagesService.applyTransform() and ImagesService.composite() take an optional OutputEncoding argument. On Tue, Dec 8, 2009 at 10:07 AM, hzqtc hzqtc1...@gmail.com wrote: In the documents, it says: The service accepts image data in the JPEG, PNG, GIF (including animated GIF), BMP, TIFF and ICO

[appengine-java] Re: images over http

2009-12-08 Thread nicanor.babula
Sorry for the delay, but I canceled my subscription to this group on nov 2 and therefore I saw your answer just now. Anyway, the problem is still present. I haven't solved this issue, as I preferred going on by implementing other functionalities and hoping that in a successive GAE release it would

[appengine-java] Re: FOP support / workaround

2009-12-08 Thread nicanor.babula
I got FOP working. On Oct 19, 6:37 pm, Stakka henrik.lindqv...@gmail.com wrote: I've tried to get ApacheFOPworking on GAE, using java.awt.* classes from Harmony. I came to the conclusion it's just to much work. Problems: * Implement the required java.awt.* and javax.imageio.* classes. *

Re: [appengine-java] Re: FOP support / workaround

2009-12-08 Thread Toby Reyelts
Neat! Care to elaborate? On Tue, Dec 8, 2009 at 11:44 AM, nicanor.babula nicanor.bab...@gmail.comwrote: I got FOP working. On Oct 19, 6:37 pm, Stakka henrik.lindqv...@gmail.com wrote: I've tried to get ApacheFOPworking on GAE, using java.awt.* classes from Harmony. I came to the

[appengine-java] Re: FOP support / workaround

2009-12-08 Thread nicanor.babula
Sure thing! http://nicanorcristian.blogspot.com/2009/11/apache-fop-on-google-application-engine.html On Dec 8, 5:57 pm, Toby Reyelts to...@google.com wrote: Neat! Care to elaborate? On Tue, Dec 8, 2009 at 11:44 AM, nicanor.babula nicanor.bab...@gmail.comwrote: I got FOP working. On Oct

Re: [appengine-java] Re: Datastore Statistics vs. Quota

2009-12-08 Thread Eric Rannaud
On Tue, Dec 8, 2009 at 1:26 AM, Toby tobias.ro...@sunnymail.mobi wrote: Reading the doc carefully it tells me that indexes are created based on the queries I make. Hence if I never query an entity on a certain property there should be no index. That's not exactly what it says. Only the

[appengine-java] Re: updating object doesn't work anymore

2009-12-08 Thread tal
I might be having the same problem. took me a while to find the consistency: i have 2 unrelated model classes (User and Category). creating or updating Category objects initially works, but when i read users from the datastore, creating and updating of Category stops working until I restart my

[appengine-java] Invoking another GAE Restful service in one GAE app

2009-12-08 Thread Featheast Lee
I have encountered this problem in my project. I got two applications, one is an GAE Java, another is normal Java app. The normal Java app will provide Restful web service to invoke. Now I would like to invoke those web services in one of my GAE app's servlet. The working process is like: I

[appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread yongli2001cn
hi, It's lucky to see this thread. I have been spent two days struggling with exactly the same problem as Bryce. Basically, two problems: 1) why the enhancer complains that BaseObject need to be enhanced even though it does not declare any fields ? 2) if I declare BaseObject as

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Hi Bryce, I started digging into you issue and quickly bumped into the Multiple relationships of the same type bug for which I posted the workaround. Then I got bogged down with unrelated stuff. I have definite plans to get back to your example today. Thanks for being patient, and sorry this

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread bryce cottam
No worries Max, I'm using 1.2.6 right now, so the multiple instance bug isn't an issue right now. Whenever you get to it is fine. As always I appreciate your input. Thanks -bryce On Dec 8, 2009 10:14 AM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Bryce, I

Re: [appengine-java] Re: database transaction problem

2009-12-08 Thread Max Ross (Google)
Hi Len, attempted to deregister a transaction that is not currently registered is an error thrown by the datastore api when a call is made to commit a txn and there is no txn to commit. Is it possible you have some path through your code that would result in calling commit() more than once or

[appengine-java] Re: Application Memory Usage

2009-12-08 Thread lent
I just did some tests and it looks like limit is around 100MB as I start getting OutOfMemory exceptions in the java heap space around that point. Len On Dec 7, 5:09 pm, lent lentakeu...@gmail.com wrote: Hi, Jason (Google) has mentioned that there is a limit on the amount of memory an

[appengine-java] Re: updating object doesn't work anymore

2009-12-08 Thread a.maza
I am using Spring and OpenPersistenceManagerInView as well. I experienced various problems. I am now using pmf.getPersistenceManagerProxy() (instead of pmf.getPersistenceManager ()) and it works quite fine. regards, andreas On 8 Dez., 17:30, tal tal.j@gmail.com wrote: I might be having

[appengine-java] Re: database transaction problem

2009-12-08 Thread lent
Max, attempted to deregister a transaction that is not currently registered is an error thrown by the datastore api when a call is made to commit a txn and there is no txn to commit.  Is it possible you have some path through your code that would result in calling commit() more than once or

[appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread datanucleus
1) why the enhancer complains that BaseObject need to be enhanced even though it does not declare any fields ? There is no problem presented here with the enhancer complaining. All is at runtime actually, thrown from a call by GAE/J's DN plugin, as shown by the stack trace above. As I've

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread bryce cottam
It's all good, we're just trying to get to the bottom of the issue. I'm sure the use of the word enhancer was just contextual. You have indeed demonstrated that datanucleus isn't complaining. We're all friends here :) thanks for helping us narrow the the root cause of the problem down. Thanks,

[appengine-java] setFrom - address cached?

2009-12-08 Thread mistr
I have 3 admins for my GAE/J site. I am trying to specify one of those admins as the FROM address for outbound emails. I cannot get it to work! Emails still send out using my personal gmail account (I am one of the admins). I have removed my gmail address from my codebase entirely, and I am now

Re: [appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-08 Thread Rusty Wright
Do you have an EL jar in your lib directory? For example, the geronimo-el_1.0_spec-1.0.1.jar that comes with the app engine sdk? Wong wrote: Hi, I should have said no error log but on my browser Error: NOT_FOUND gets displayed. Below is my log with serverity set to DEBUG # 1.

[appengine-java] File Access on App Engine

2009-12-08 Thread mattkrae34
I'm using 1.2.8 SDK and on both local and the app engine I get the following exception: java.security.AccessControlException: access denied (java.io.FilePermission file.xml read) When I ever I try to open a FileInputStream XMLEventReader r = factory.createXMLEventReader(new FileInputStream(/

[appengine-java] Inherit one-to-many relationship

2009-12-08 Thread Pierre Lavignotte
Hi, I have a problem when I try to inherit a one-to-many relation ship from a base entity class. The following model works fine : @PersistenceCapable(identityType = IdentityType.APPLICATION) @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class BaseEntity {

[appengine-java] Re: File Access on App Engine

2009-12-08 Thread m seleron
Hi, Follow this thread. http://groups.google.com/group/google-appengine-java/browse_thread/thread/ef91a0e8c32c576e/3358e5877c6ef30e?lnk=gstq=FileInputStream#3358e5877c6ef30e thanks. On 12月9日, 午前7:49, mattkrae34 matt.krae...@gmail.com wrote: I'm using 1.2.8 SDK and on both local and the app

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread Max Ross (Google)
I've filed bug http://code.google.com/p/datanucleus-appengine/issues/detail?id=169 to track the problem with non-persistent base classes. I have a fix in the works. I'll be posting a release candidate with this fix and hopefully a few others in the next day or two. Thanks, Max On Tue, Dec 8,

Re: [appengine-java] Re: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-08 Thread bryce cottam
That's great news Max! Thanks so much for looking into this and getting a solution in the works so fast. Thanks, -bryce On Dec 8, 2009 5:20 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: I've filed bug

[appengine-java] Re: How to set the output format for the Image service?

2009-12-08 Thread hzqtc
Got it. Thanks! On Dec 9, 12:40 am, Don Schwarz schwa...@google.com wrote: ImagesService.applyTransform() and ImagesService.composite() take an optional OutputEncoding argument. On Tue, Dec 8, 2009 at 10:07 AM, hzqtc hzqtc1...@gmail.com wrote: In the documents, it says: The service

Re: [appengine-java] Updating a model class

2009-12-08 Thread Ikai L (Google)
Are you using the development server? The easiest thing to do here is to blow away your old datastore. App Engine will recreate your schema. I believe if you just blow away your output directory and rebuild, this should work. Look for an output directory under WEB-INF/appengine-generated. You

Re: [appengine-java] Re: Regarding Secure Data Access for the users of my service

2009-12-08 Thread Ikai L (Google)
You'll need to partition the data at the application level. We don't provide global ACLs for the datastore. You may be able to use Entity Groups for a lightweight version of this, but ultimately it'll be up to your application to decide who has the rights to see which data. On Sat, Dec 5, 2009 at

Re: [appengine-java] An entity group that does not have a root entity supports transaction. How does it work?

2009-12-08 Thread Ikai L (Google)
Entity groups are distributed based on the key and not necessarily the root entity. Thus, it is possible to place entities in the same entity group without an entity parent. Something similar to what you have done is also possible by creating a root entity, adding descendants, then removing the

Re: [appengine-java] problem storing email or phone number

2009-12-08 Thread Ikai L (Google)
Can you post example values that cause this error? Are you saving anything with special characters? In the meantime, you have a few options: - Wire up a Python version and use the remote shell - Write a handler that removes these values What is your application ID? On Sat, Dec 5, 2009 at 3:03

Re: [appengine-java] Error: Server Error

2009-12-08 Thread Ikai L (Google)
This line: java.security. AccessControlException: access denied (java.io.FilePermission /base/data/home/apps/go2ppp/2.338276405331081395/WEB-INF/work write) Seems to imply you may have a permissions error writing. Can you look into this? On Mon, Dec 7, 2009 at 1:31 AM, Li Kong kon...@gmail.com

[appengine-java] Re: Spring + Tiles : java.lang.NoClassDefFoundError: javax/el/ELContext

2009-12-08 Thread Wong
after I found out that javax.el.ElContext is in geronimo- el._1.0_spec-1.0.1.jar, I did another test by including the jar in my war/WEB-INF/lib. Then, I got the 404 Error: NOT_FOUND problem and the log posted in my ealier post. I don't get any problem when running locally within eclipse. I only

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Ok I think I know what's going on. First here's a stripped down version of your object model with the bare minimum needed to reproduce the exception: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class RatePlan { @PrimaryKey @Persistent(valueStrategy =

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread Max Ross (Google)
Filed http://code.google.com/p/datanucleus-appengine/issues/detail?id=170 On Tue, Dec 8, 2009 at 6:18 PM, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Ok I think I know what's going on. First here's a stripped down version of your object model with the bare

[appengine-java] Re: javax.jdo.JDOObjectNotFoundException: Could not retrieve entity of kind Transactions with key Transactions(Transactions(67))

2009-12-08 Thread zackmac
Finally found a way in case anybody was curious... Unfortunately, I have to loop through all of my pertinent records until I have a match on the keys. If anyone can suggest a different way (that works) that's more efficient than below, do tell... Query query = pm.newQuery(Categories.class,

Re: [appengine-java] An entity group that does not have a root entity supports transaction. How does it work?

2009-12-08 Thread Yasuo Higa
Thanks for your reply, Ikai. Entity groups are distributed based on the key and not necessarily the root entity. Thus, it is possible to place entities in the same entity group without an entity parent. Something similar to what you have done is also possible by creating a root entity, adding

Re: [appengine-java] possible to split web.xml ?

2009-12-08 Thread Rusty Wright
I'll bet you could if you were using maven. It has this thing where it filters the configuration files (e.g., web.xml) before it puts them in the war file. Read all about it in the free book, Maven: The Definitive Guide, http://www.sonatype.com/documentation/books Prashant wrote: Hi, I

[appengine-java] Loading request time

2009-12-08 Thread jd
Hi, My application takes over 10 seconds on loading requests to output its log messages. During this time, simultaneous requests are aborted because they cannot be serviced within the 10 second limit. What is the best way to optimise startup time? I have already turned on precompilation. Is

Re: [appengine-java] Re: oid is not instanceof javax.jdo.identity.ObjectIdentity

2009-12-08 Thread bryce cottam
Thanks for filing that Max. I'm kind of interested in your findings because there is another place where I'm doing about the same thing (i.e. making a RatePlan instance a direct child of an Entity other than Activity) and it works fine in that case most of the time. Sometimes it gives me the oid

[appengine-java] unsubscribe

2009-12-08 Thread myasic
unsubscribe Michael Jackson, Susan Boyle, Black Eyed Peas ... Retrouvez leurs derniers titres sur http://musiline.voila.fr -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To