[appengine-java] Re: Any best practice of bulk update in JPA ?

2010-01-20 Thread Alan She
Thanks! This really a smart way for relations that often changes. But I wonder if this is the only way? What if the relation seldom change? I believe the cost of the indirection will be shown on the complexity of code and the runtime performance, if using the resolution Entity everywhere. On

Re: [appengine-java] Re: Any best practice of bulk update in JPA ?

2010-01-20 Thread John Patterson
Actually, another option is just to overwrite B so the key stays the same but the data in it changes. On 20 Jan 2010, at 15:31, Alan She wrote: Thanks! This really a smart way for relations that often changes. But I wonder if this is the only way? What if the relation seldom change? I

[appengine-java] Re: Error while deploying GWT application on google app engine.

2010-01-20 Thread Anton
Hi John, Ive got that web.xml from gwt wizard in eclipse, so there is no copypase... Ive tried removed all whitespace chars from that file - still have no luck to deploy it to google app engine... On 19 янв, 20:47, John Patterson jdpatter...@gmail.com wrote: I recall an error I got from cutting

[appengine-java] Re: Any best practice of bulk update in JPA ?

2010-01-20 Thread Alan She
To make the requirement clear, the relation should change to an existing B. And there will be some queries on A which using B as the criteria. For example, the JPAQL would be, select a from + A.class.getName() + as a where a.bKey = :bKey So I think the second solution won't fit. For the first

[appengine-java] error is coming on appspot but local working fine

2010-01-20 Thread java
Hello I am developed a page which is working fine at local machine but when I deploy on appspot showing error : Uncaught exception from servlet java.lang.RuntimeException: java.io.NotSerializableException: com.ei.server.web.fe.ReviewFrmCmd at

Re: [appengine-java] error is coming on appspot but local working fine

2010-01-20 Thread John Patterson
You class ReviewFrmCmd is being put in the session and so must be made serializable. On the local dev server the session is not serialized so you do not get this exception. On 20 Jan 2010, at 18:13, java wrote: Hello I am developed a page which is working fine at local machine but when I

[appengine-java] Re: Forwarding to Blobstore URL from existing servlet

2010-01-20 Thread akochnev
I completely blanked out, here's the code of the servlet that handles the upload from SwfUploader and tries to dispatch to the Blobstore: String postUploadUrl = null; try { BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); postUploadUrl =

[appengine-java] Re: Communication between multiple applications

2010-01-20 Thread A1programmer
I'm very familiar with BlazeDS, but haven't looked into GraniteDS for a few years. I know that with BlazeDS, this is done using a streaming AMF channel, which is essentially an endless http request, or streaming response. Since the connection is left open, I am a bit worried that it may not work

[appengine-java] contain() filter with ListKeys

2010-01-20 Thread aswath satrasala
Hello I have the following class public class SecurityPermission { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private String name; } I have the following query on SecurityPermission Entity to filter by keys.

[appengine-java] Re: How to store/retrieve inheritance and composition in Datastore

2010-01-20 Thread Federico Keen
Thanks guys, but I ended up migrating away. I'll wait until the datastore is a bit more developed :D On Jan 16, 6:54 am, datanucleus andy_jeffer...@yahoo.com wrote: I think Max has been improving the GAE/J inheritance support recently, so would be surprised if this isn't possible, at least in

[appengine-java] Say goodbye unoptimized Frameworks. Say hello Code Generation!

2010-01-20 Thread andy.booth
Hi My initial testing with Google App Engine used JPA, JAX-RS, Google GSON, Google Closure Templates - elegant REST development, but it wasn't the quickest loading or serving app. Everything loosely coupled, lots of class path scanning, compiling of templates on the fly. So I've ditched the

Re: [appengine-java] access denied

2010-01-20 Thread Toby Reyelts
Thanks Andrés, I've filed an issuehttp://code.google.com/p/googleappengine/issues/detail?id=2658for this. There's a bug in the implementation of HttpServlet.doOptions which is preventing OPTIONS http requests from being fulfilled correctly. Most people don't need to serve OPTIONS requests, so

[appengine-java] Quirks with key name concurrency / uniqueness control

2010-01-20 Thread Todd Vierling
I've read (only in snippets, and in passing reference in the GAE documentation) that using an unencoded String key, aka key name, guarantees uniqueness of that user-provided field in the same way that a Long field is unique (but generated by the backend). However, it's been really tough figuring

Re: [appengine-java] access denied

2010-01-20 Thread Andrés Cerezo
ok, I'll test it this night and I'll tell you. Thanks. 2010/1/20 Toby Reyelts to...@google.com: Thanks Andrés, I've filed an issue for this. There's a bug in the implementation of HttpServlet.doOptions which is preventing OPTIONS http requests from being fulfilled correctly. Most people

[appengine-java] Re: Timeout using GData API

2010-01-20 Thread smile laugh
I also get same error is there someone can help me out -- 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 email to

[appengine-java] Re: the inappropriate encoding occured when store chinese characters to datastore

2010-01-20 Thread lawrence
make sure you compile the java source using encoding=UTF8 On Jan 18, 4:38 pm, 凌志 许 lingzhixu...@gmail.com wrote: In my project, I need to store chinese characters to datastore, but I tried using the following code to do it: PersistenceManager pm = PMF.get().getPersistenceManager();

[appengine-java] Uniqueness of system generated IDs

2010-01-20 Thread Torquester
I have a problem, that Appengine generates duplicate keys and thus my objects get overwritten. I have following classes: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class ProfileEntity { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

Re: [appengine-java] Using Restlet to access datastore.

2010-01-20 Thread Ikai L (Google)
Wow, Jeff, this actually looks pretty good. Did you write this? This is exactly the reason why we expose the low-level API! On Tue, Jan 19, 2010 at 7:28 PM, Jeff Schnitzer j...@infohazard.org wrote: Entities persisted with Objectify can be serialized in their entirety (including keys) through

[appengine-java] Proxy written in java for browsers

2010-01-20 Thread Harry Monroe
Hi, I was trying to write a proxy server in java. It´s a very simple application that filters the requests to myproxy.appspot.com, retrieves the pages itself and then displays them with the same url. It´s not the same as seen proxies like http://proxycgi.appspot.com/ (which work really good) I

[appengine-java] Re: Using Restlet to access datastore.

2010-01-20 Thread datanucleus
DataNucleus also provides a REST API, http://www.datanucleus.org/products/accessplatform_2_0/rest/httpmethods.html -- 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] Re: Communication between multiple applications

2010-01-20 Thread Timothy Spear
Please posts how it works, I will need it later this year. Good luck. Tim Sent from my iPhone On Jan 20, 2010, at 9:00 AM, A1programmer derrick.simp...@gmail.com wrote: I'm very familiar with BlazeDS, but haven't looked into GraniteDS for a few years. I know that with BlazeDS, this is

Re: [appengine-java] Re: equal rights for Java URLFetch

2010-01-20 Thread Jeff Schnitzer
Sorry if this is a silly question but... How do you make an asynchronous URLFetch call in Java? Is this a question of making calls to fetch() without calling getContent() on the response? Jeff I see no limit of simultaneous [urlfetch] API calls documented on the quotas page (

Re: [appengine-java] Re: equal rights for Java URLFetch

2010-01-20 Thread Don Schwarz
This functionality will be available in the low-level URLFetch API, hopefully in the next release. I have not implemented it for java.net.URLConnection, although we could potentially do that in the future (by having connect() initiate the request and having methods like getContent and

Re: [appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Ikai L (Google)
How many child entities does a model have? Is it in a transaction? Index updates are synchronous, though a simple update to the index should not dramatically increase the insert time. In addition to reducing the indexed properties, you may also want to look at inserting entities asynchronously

Re: [appengine-java] One to many sample application needed on GWT

2010-01-20 Thread Ikai L (Google)
There should be plenty of examples around, but here is one from Max Ross's blog: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html We're looking at expanding the capabilities of the App Engine Cookbook to support examples like this contributed by the

[appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Lucian Baciu
In total my model has about 4000 entities. The shape of my model is like this: a root entity that has many owned one to many relationships (about 10), and each children collection can have hundreds or thousands of child entities in them, something like: public class Account{

Re: [appengine-java] Use Google login cred to logon in one GAE in other GAE app

2010-01-20 Thread Ikai L (Google)
No, you won't be able to authenticate the second application once a user is logged into the first. If you think about the security issues here - and there are many - this is something that just won't work and won't be supported in the manner you have described. One solution to the problem you

Re: [appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Ikai L (Google)
How much does the CPU time increase by? On Wed, Jan 20, 2010 at 1:59 PM, Lucian Baciu lucianba...@gmail.com wrote: In total my model has about 4000 entities. The shape of my model is like this: a root entity that has many owned one to many relationships (about 10), and each children

[appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Lucian Baciu
This is what an insert request looks like now: 10659ms 44687cpu_ms 40040api_cpu_ms for about 4000 entities in the model. I would say its increases by 10 seconds per 1000 entities. On Jan 21, 12:01 am, Ikai L (Google) ika...@google.com wrote: How much does the CPU time increase by? On Wed,

Re: [appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Ikai L (Google)
Do you have 4000 entities total? Or 4000 child entities for the model? On Wed, Jan 20, 2010 at 2:04 PM, Lucian Baciu lucianba...@gmail.com wrote: This is what an insert request looks like now: 10659ms 44687cpu_ms 40040api_cpu_ms for about 4000 entities in the model. I would say its increases

[appengine-java] Re: Put (insert) data store operations use increasingly high amount of CPU as the number of entities increases

2010-01-20 Thread Lucian Baciu
Sorry, I have 4000 entities in the entity group (child entities). On Jan 21, 12:21 am, Ikai L (Google) ika...@google.com wrote: Do you have 4000 entities total? Or 4000 child entities for the model? On Wed, Jan 20, 2010 at 2:04 PM, Lucian Baciu lucianba...@gmail.com wrote: This is what

[appengine-java] Repost: Javaagent option

2010-01-20 Thread Kartik
Hi, Any plans of supporting the -javaagent flag in the app engine? I would like to add my agent for instrumenting code. -Kartik -- 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] Repost: Javaagent option

2010-01-20 Thread Toby Reyelts
There are no immediate plans for this. Is there something that prevents you from instrumenting via ClassLoaders? On Wed, Jan 20, 2010 at 5:40 PM, Kartik kart...@gmail.com wrote: Hi, Any plans of supporting the -javaagent flag in the app engine? I would like to add my agent for instrumenting

[appengine-java] Re: One to many sample application needed on GWT

2010-01-20 Thread Dave
I had gotten my application to save data, but my queries are returning nothing. I see my data in both the parent and the child. I am getting a java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 error when I try to iterate through the child data. One of the strangest thing is that my primary

[appengine-java] XMPP Problems

2010-01-20 Thread Hani Naguib
Anyone else getting problems XMPP? Seems to have started this afternoon. Trying to chat to an appengine bot from beejive (IM client on iphone) I get a [Error 503] The gtalk webgadget in my gmail page shows all appengine buddies as offline! Regards, Hani -- You received this message because you

[appengine-java] Getting error when updated from 1.2.5 to 1.3.0

2010-01-20 Thread mar_novice
I can't run anymore after I updated the sdk and even downloading a fresh eclipse and gae plugin, I always get the same error. Initializing AppEngine server The server is running at http://localhost:/ 01 21, 10 2:30:15 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION

[appengine-java] what class need to be nucleus enhance?

2010-01-20 Thread asianCoolz
i only enhance my model classes (pojo) , but i get warning like below . Is class dao, service need to be included for data nucleus enhancer? [testetefsdf/2.339300673130228559].stdout: 13:20:36,874 DEBUG [DataNucleus.MetaData] - Class com.user.testing.service.TestingImplDao has annotations but

[appengine-java] Re: XMPP Problems

2010-01-20 Thread Hani Naguib
It looks like xmpp messages to the application do not get received. It can send xmpp and everything else seems fine. -- 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] access denied

2010-01-20 Thread Andrés Cerezo
Sorry i think that's not my problem. I'm using a rpc call, here you have the stack: # /net.brucecooper.mindmapgadget.MindMapGadget/greet - Mostrar texto citado - java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) at

[appengine-java] SAML Federated Single Sign On

2010-01-20 Thread Brian
Will app engine support SAML identity providers? Our app currently supports 100K+ users at multiple universities as a SAML service provider. We use the Shibboleth service provider for our site and currently integrate with Shib, CAS, and Oracle IdPs. We'd like to deploy our app in the app engine,

[appengine-java] Re: contain() filter with ListKeys

2010-01-20 Thread aswath satrasala
After debugging more, I found out that I was passing secPermKeyList as null. Hence I was getting zero results back. But, after correcting that issue and passing a valid Key list, I get the following error Testcase: testSecurityGroup took 1.351 sec Caused an ERROR Illegal argument

[appengine-java] Re: XMPP Problems

2010-01-20 Thread Hani Naguib
Looks like I am not the only one with this problem! http://groups.google.com/group/google-appengine/browse_thread/thread/0d93bab93e3195dc# -- 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] Re: the inappropriate encoding occured when store chinese characters to datastore

2010-01-20 Thread 杨浩
In developer server:_ah/admin watch the datastore viewer is not encode utf8,so see ??? but in GAE server it's good! -- 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

[appengine-java] Re: Objectify-Appengine, a typesafe data persistence tier for App Engine

2010-01-20 Thread Marcel Overdijk
This really looks great! On 13 jan, 18:28, Jeff Schnitzer j...@infohazard.org wrote: http://code.google.com/p/objectify-appengine/ I probably should have called this project Goldilocks, because it's a little bit how I feel.  Despite being a longtime Hibernate user (since the 1.0 days), the