[appengine-java] HtmlUnit/HttpUnit in GAE
Hi Have anyone tried implementing htmlUnit/httpUnit with GAE ? I'm getting permissions errors. Is there any workaround? /x -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Two ManyToOne relationships in one class
In my application I have bi-directional one-to-many relationship between Venue and Tip. @Entity public class Venue implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @OneToMany(cascade = CascadeType.ALL, mappedBy=venue) private ListTip tips; @Entity public class Tip implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; private Integer version; @ManyToOne(fetch = FetchType.LAZY) private Venue venue; I have venue object persisted and then tip is added to the venue. I don't any any problem in doing this. Venue venue = venueService.find(key); venue.addTip(tip); venueService.merge(venue); Then I expand the relationship to have another bi-directional one-to- many relationship between Person and Tip. Tip is posted by a Person and for a Venue. One Person can post more than one Tips for a Venue. @Entity public class Tip implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @ManyToOne(fetch = FetchType.LAZY) private Venue venue; @ManyToOne(fetch = FetchType.LAZY) private Person postedBy; @Entity public class Person implements Serializable, UserDetails { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @OneToMany(cascade = CascadeType.ALL, mappedBy=postedBy) private ListTip tips; Venue venue = venueService.find(key); Person person = personService.find(userId); venue.addTip(tip); person.addTip(tip); venueService.merge(venue); I am getting the following error: Detected attempt to establish Person(29)/Tip(125) as the parent of Venue(2) but the entity identified by Venue(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. org.datanucleus.store.appengine.FatalNucleusUserException: Detected attempt to establish Person(29)/Tip(125) as the parent of Venue(2) but the entity identified by Venue(2) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. at org.datanucleus.store.appengine.DatastoreRelationFieldManager.checkForParentSwitch (DatastoreRelationFieldManager.java:204) at org.datanucleus.store.appengine.DatastoreRelationFieldManager $1.setObjectViaMapping(DatastoreRelationFieldManager.java:125) at org.datanucleus.store.appengine.DatastoreRelationFieldManager$1.apply (DatastoreRelationFieldManager.java:104) at org.datanucleus.store.appengine.DatastoreRelationFieldManager.storeRelations (DatastoreRelationFieldManager.java:78) at org.datanucleus.store.appengine.DatastoreFieldManager.storeRelations (DatastoreFieldManager.java:812) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertPostProcess (DatastorePersistenceHandler.java:288) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObjects (DatastorePersistenceHandler.java:241) at org.datanucleus.store.appengine.DatastorePersistenceHandler.insertObject (DatastorePersistenceHandler.java:225) at org.datanucleus.state.JDOStateManagerImpl.internalMakePersistent (JDOStateManagerImpl.java:3185) at org.datanucleus.state.JDOStateManagerImpl.flush (JDOStateManagerImpl.java:4513) at org.datanucleus.sco.SCOUtils.validateObjectForWriting(SCOUtils.java: 1494) at org.datanucleus.store.mapped.scostore.ElementContainerStore.validateElementForWriting (ElementContainerStore.java:380) at org.datanucleus.store.mapped.scostore.FKListStore.validateElementForWriting (FKListStore.java:609) at org.datanucleus.store.mapped.scostore.FKListStore.internalAdd (FKListStore.java:344) at org.datanucleus.store.mapped.scostore.AbstractListStore.add (AbstractListStore.java:105) at org.datanucleus.sco.backed.List.add (List.java:649) at guestbook.domain.Person.addTip(Person.java:164) at guestbook.web.mvc.TipController.create(TipController.java:94) at Any idea? Your help is very much appreciated. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Does precompilation work ?
We have been using precompilation for a week now, and there is no such 503 while deploying on our app. Jerome On Jan 30, 8:46 pm, tomekc to...@ceszke.com wrote: Hi All, does precompilation work for you ? I'm trying a few times deploy with precompilation but still get an exception: java.io.IOException: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. Unable to update app: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. Please see the logs [/var/folders/XC/XCZRRBVPHbSTigao7dR+ek+++TI/-Tmp-/ appcfg8627681542400368916.log] for further information. in that log I have: Unable to update: java.io.IOException: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. ...cut... Caused by: java.io.IOException: Error posting to URL:http://appengine.google.com/api/appversion/precompile?app_id=Xve... 503 Service Unavailable Try Again (503) An unexpected failure has occurred. Please try again. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) ...cut... 503 Service Unavailable Try Again (503) ...cut I ask because maybe it is temporary problem ? Regards, tomek. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: why is this? Unable to update app: Version not ready.
We are still seeing high deployment latency. The issue started about 10 days ago as well. We are reaching teh will check again in 64 seconds or even ...in 128 seconds quite often. Deploying new version. Will check again in 1 seconds Will check again in 2 seconds Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Closing update: new version is ready to start serving. Uploading index definitions. Uploading cron jobs. Uploading task queues. Deployment completed successfully Jerome On Jan 22, 12:13 am, Andrei gml...@gmail.com wrote: mine uploaded fine now On Jan 21, 5:35 pm, Max Afonov m...@bumnetworks.com wrote: I'm in this boat too, except I'm not getting the too many versions message (yet). On Jan 21, 5:07 pm, Andrei gml...@gmail.com wrote: [java] 90% Deploying new version. [java] 95%Willcheckagainin 1 seconds [java] 98%Willcheckagainin 2 seconds [java] 99%Willcheckagainin 4 seconds [java] 99%Willcheckagainin 8 seconds [java] 99%Willcheckagainin 16 seconds [java] 99%Willcheckagainin 32 seconds [java] 99%Willcheckagainin 64 seconds [java] 99%Willcheckagainin 128 seconds [java] Jan 21, 2010 5:00:34 PM com.google.appengine.tools.admin.AppVersionUpload commit [java] SEVERE: Version still not ready to serve, aborting. [java] 99% Rolling back the update. [java] [java] java.lang.RuntimeException: Version not ready. [java] Unable to update app: Version not ready. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] a single entity write takes ~10 seconds with a tx and ~4 without a tx
Hi, I am experiencing a strange performance issue. a write of a single entity takes ~10 seconds with a transaction and ~4 seconds without a transaction. needless to say this kind of performance is bad. I experience this kind of performance only for a specific entity kind. other kinds work as expected (sub second) initially I though this could be because I had 4 indexes for this entity, so I've removed them just for testing. surprisingly enough the performance has not changed. it doesn't seem that this entity kind is different than other entities I have. the entity is a child entity in a 1-N relationship. Please help, Lior this is the entity definition (obscured for privacy purpose): public class Payment { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent private Key account; @Persistent private Company company; @Persistent private Key order; @Persistent private String type; @Persistent private String txnDate; @Persistent private Date date; @Persistent private float amount; @Persistent private Float credit; @Persistent private String status; @Persistent private String number; @Persistent private Text note; @Persistent private Text txDetails; } -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: a single entity write takes ~10 seconds with a tx and ~4 without a tx
Would have thought that the log (DEBUG level) would tell you all you need to know about what is happening -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: jingle support on app engine
Hello Nick and group, We are currently using the XMPP stack in AppEngine, and we are pretty please with it. But there is a hard limitation that is, just as maxsap mentioned here, making us considering moving our XMPP server out of AppEngine. The only limitation for us is that we are not able to emit or receive state messages such as: composing xmlns='http://jabber.org/protocol/chatstates'/ The following request is directly about this limitation: http://code.google.com/p/googleappengine/issues/detail?id=2615 This other one is about the same, in a more generic way: http://code.google.com/p/googleappengine/issues/detail?id=2331 I would really appreciate some input whether the GAE XMPP stack is going to be expanded soon, such as we can make an educated decision for our app. Cheers, Jerome On Jan 29, 6:55 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi, Sorry, but Jingle is not supported by App engine. You can't use a different stack for XMPP support, because App Engine apps cannot open sockets. -Nick Johnson On Thu, Jan 21, 2010 at 1:32 PM, maxsap max.saprani...@gmail.com wrote: Hello all, I am interested in using app engine in my application witch is using jingle, I have read about app engines xmpp support but would I be able to use jingle? also if the official xmpp support doesn't support jingle would I be able to use smack stack to do jingle? thanks in advanced maxsap -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] jython / modjy FileOutputStream exception
I'm trying to get jython running with modjy. Following instructions from http://opensource.xhaus.com/projects/modjy/wiki/ModjyGoogleAppEngine but I get the exceptions below. It looks like python is trying to write an initialization file or something. I know a lot about Java but little about Python. Any ideas? Thanks for any help! The exceptions follow: Jan 31, 2010 7:08:54 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed modjy java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 201) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 208) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 208) at org.python.core.io.StreamIO.isatty(StreamIO.java:226) at org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90) at org.python.core.io.TextIOBase.isatty(TextIOBase.java:175) at org.python.core.PyFile.file_isatty(PyFile.java:496) at org.python.core.PyFile.isatty(PyFile.java:491) at org.python.core.PySystemState.initEncoding(PySystemState.java:229) at org.python.core.PySystemState.doInitialize(PySystemState.java:874) at org.python.core.PySystemState.initialize(PySystemState.java:777) at org.python.core.PySystemState.initialize(PySystemState.java:727) at org.python.core.PySystemState.initialize(PySystemState.java:720) at org.python.util.PythonInterpreter.initialize (PythonInterpreter.java:53) at com.xhaus.modjy.ModjyJServlet.init(ModjyJServlet.java:93) at javax.servlet.GenericServlet.init(GenericServlet.java:215) at org.mortbay.jetty.servlet.ServletHolder.initServlet (ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 256) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 448) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:117) at org.mortbay.jetty.Server.doStart(Server.java:217) at org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:40) at com.google.appengine.tools.development.JettyContainerService.startContainer (JettyContainerService.java:188) at com.google.appengine.tools.development.AbstractContainerService.startup (AbstractContainerService.java:120) at com.google.appengine.tools.development.DevAppServerImpl.start (DevAppServerImpl.java:217) at com.google.appengine.tools.development.gwt.AppEngineLauncher.start (AppEngineLauncher.java:86) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:377) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:938) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:690) at com.google.gwt.dev.DevMode.main(DevMode.java:251) Jan 31, 2010 7:08:54 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: failed com.google.apphosting.utils.jetty.devappenginewebappcont...@e85825{/,C: \Documents and Settings\Administrator\workspace\JythonTest\war} java.lang.NoClassDefFoundError: java.io.FileOutputStream is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 201) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 208) at org.python.core.io.StreamIO.getOutputFileDescriptor(StreamIO.java: 208) at org.python.core.io.StreamIO.isatty(StreamIO.java:226) at org.python.core.io.BufferedIOMixin.isatty(BufferedIOMixin.java:90) at org.python.core.io.TextIOBase.isatty(TextIOBase.java:175) at org.python.core.PyFile.file_isatty(PyFile.java:496) at org.python.core.PyFile.isatty(PyFile.java:491) at org.python.core.PySystemState.initEncoding(PySystemState.java:229) at org.python.core.PySystemState.doInitialize(PySystemState.java:874)
[appengine-java] Restrict which google accounts can access the app
I read that you can make people login to their google account in order gain access to your app, but is there a way to restrict access to only certain google account?? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Problema Index en JDO
Hola muchas gracias por contestar, vale decir que el problema se soluciono transcurrido un par de horas, yo no sabia que debia esperar para que appengine creara un indice automaticamente, ahora ya lo se y lo tendre en cuanta en mis proximos desarrollos. PD: Esta parte de la espera de creacion de Indices deberia estar en el tutorial de AppEngine para java. Ayudaria mucho a los programadores novatos. :) Hi, this problem is solved, I was waiting a few minutes for automatic index creation. Thank for reply. PD: I dont know, On 29 ene, 20:11, seleronm seler...@gmail.com wrote: Hi, What state is [Datastore Indexes] of your Admin Console ? thanks. Hola mi aplicacion funciona muy bien a modo local sin embargo en el Servidor real App Engine obtengo esta pila de error Que me falta configurar ? My application run very good in localhost but in appengine error: Uncaught exception from servlet com.google.appengine.api.datastore.DatastoreNeedIndexException: no matching index found.. datastore-index kind=Ubicacion ancestor=false source=manual property name=idUser direction=asc/ property name=fecha direction=desc/ /datastore-index at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:39) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall (DatastoreApiHelper.java:60) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:388) at com.google.appengine.api.datastore.DatastoreServiceImpl $PreparedQueryImpl.asQueryResultList(DatastoreServiceImpl.java:318) at org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery (DatastoreQuery.java:355) at org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery (DatastoreQuery.java:265) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreQuery.java:228) at org.datanucleus.store.appengine.query.JDOQLQuery.performExecute (JDOQLQuery.java:85) at org.datanucleus.store.query.Query.executeQuery(Query.java:1489) at org.datanucleus.store.query.Query.executeWithArray(Query.java: 1371) at org.datanucleus.store.query.Query.execute(Query.java:1344) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221) at com.ubicacion.action.UbicarAction.ultimaUbicacion (UbicarAction.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:42) at org.apache.struts.actions.DispatchAction.dispatchMethod (DispatchAction.java:269) at org.apache.struts.actions.DispatchAction.execute (DispatchAction.java:170) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:425) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java:228) at org.apache.struts.action.ActionServlet.process(ActionServlet.java: 1913) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java: 462) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter (ParseBlobUploadFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at
[appengine-java] Re: Error in Production Datastore Explorer
Hi Wesley, Thanks for the heads up. Any reason an empty-String cannot be used for a Link? I was coding defensively by making all Link object default to an empty String (since in order to do anything with them I need to constantly be calling the getValue() function on the Link). Now, I have to return null when using an empty link, so I have to always be checking if the Link I'm using is null or not (just makes for messier code). Is there some good reason the datastore doesn't support empty-String Link objects, or should I file an enhancement request for this? Thanks! david On Jan 27, 7:34 am, Wesley C (Google) wesc+...@google.com wrote: david, thanks for writing back. apologies for the delayed reply as ikai had been on vacation after you had sent your response in. as far as your problem goes, you are right on-track: you can have blank strings for StringProperty objects but not LinkProperty. in order to fix your problem, convert them back to string types, get rid of the blank ones, then reconvert back to links. let me know how this works! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+...@google.com developer relations :: google app engine -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Secure JSP
I have 1 jsp in my app that I want to secure and make people login with their google accounts in order to see the page. Is this possible and if so how? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Error in Production Datastore Explorer
david, thanks for writing back. i wasn't around during the time when they designed this core part of App Engine's data models, but one obvious thing that stands out in my mind as a good reason is the validation of these special fields. if you had automated checks of this data, you would, presumably need some string that represents a valid URI. other reasons include consistency to the gData interface as well as the equivalent data in XML or Atom formats. if you want to allow blanks, it may be better to just leave them as StringProperty. -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+...@google.com developer relations :: google app engine -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Does precompilation work ?
In my experience deployment sometimes fail with variety of reasons. Sometimes it says precompiling starts and eventually time out. The console will suggest you to turn off precompilation, but if you try deploy again, it will work. My suggestion is keep trying. On Jan 30, 11:46 am, tomekc to...@ceszke.com wrote: Hi All, does precompilation work for you ? I'm trying a few times deploy with precompilation but still get an exception: java.io.IOException: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. Unable to update app: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. Please see the logs [/var/folders/XC/XCZRRBVPHbSTigao7dR+ek+++TI/-Tmp-/ appcfg8627681542400368916.log] for further information. in that log I have: Unable to update: java.io.IOException: Precompilation failed. Consider adding precompilation-enabledfalse/precompilation-enabled to your appengine-web.xml and trying again. ...cut... Caused by: java.io.IOException: Error posting to URL:http://appengine.google.com/api/appversion/precompile?app_id=Xve... 503 Service Unavailable Try Again (503) An unexpected failure has occurred. Please try again. at com.google.appengine.tools.admin.ServerConnection.send (ServerConnection.java:143) ...cut... 503 Service Unavailable Try Again (503) ...cut I ask because maybe it is temporary problem ? Regards, tomek. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE For Java with struts2 And I am not able to access development admin console
Hi, I am using JAVA GAE , Everything is working fine, but I am not able to access the Admin console, which as given in documentation can be accessed using http://localhost:myport/_ah/admin But its giving me following error: HTTP ERROR: 404 There is no Action mapped for namespace /_ah and action name admin. RequestURI=/_ah/admin For your information, I had neither used data storage, or queing etc. in application, But wanted to directly enter some data using admin console. Please give me some idea so I can access the admin console for data entery on development server. Thanks Mrityunjay Kumar -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine cold starts and overly aggressive cycling
I have only been experiencing this problem in the last few weeks (after the 'fix' ?). - What is your application ID? salsa-amsterdam - How do you know it is being cycled out? You'll need to insert some code that only gets called when the app cold starts. I am using a static AtomicBoolean to check in my front controller servlet - How much time of inactivity does it take before your application is cycled out? it is recycled within the minute. - What time or days does this seem to happen? seems to happen all the time - What frameworks or libraries are you loading? Plain Servlet API, some Groovy and the low level Datastore API. Any other information you can provide would be helpful. Have run successfully on Google App Engine for about 6 months, but this problem is a pain. Edwin -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Restrict which google accounts can access the app
Since after logging in with a google account you will have access to the account holder's email, you can simply check if that email is allowed to use the application using some sort of email white list of authorized users. On Jan 31, 2:55 pm, Scott gocards...@gmail.com wrote: I read that you can make people login to their google account in order gain access to your app, but is there a way to restrict access to only certain google account?? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Is there a de-facto best authorization framework for use on Java App Engine
I've noticed that Spring Security is noted as Semi-Compatible on the Will It Play page. Are there better alternatives to this authorization framework for app engine? Is there a de-facto best authorization framework for use on Java App Engine? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] com.google.apphosting.runtime.HardDeadlineExceededError
my app is supposed to make about 136 http requests and i am geting this error on the browser when i click on the button to make these requests. i am not too sure about the cause of the error but it seemed to be working fine when i had to make less than 100 http requests in one servlet call. can someone please help me with this or suggest a workarnd. thanx in advance. -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JDO - GWT - JUNIT testing examples
The SyncProxy can be used for this purpose. See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/ for details Hope this help, Trung http://www.gdevelop.com/ On Jan 26, 10:19 pm, aswath satrasala aswath.satras...@gmail.com wrote: Hi, I am using GWT and JDO to write a simple create and list Employee application. I got this working using TransferObjects . How to test the GWT asysnc calls with local datastore using Junit. -Aswath -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Building Scalable Complex App
I failed to make this code work. It seems that the MessageIndex object is not getting persisted when i call tx.commit(). Any help in this regard will be appreciated. Thanks On Jan 17, 12:26 am, Duong BaTien duong.bat...@gmail.com wrote: Hi: Following is my sketch for the Message and MessageIndex. Please advise and if possible, sketch out the Java version of set intersection from the presentation. Have not time to try anything yet; but the design is very significant for proper data modeling. The JDO version of the presentation uses query.setFilter(receivers == 'foo') which i do not see in the API. public class MessageIndex { // create MessageIndex to the parent Message private Key parent; private String keyKind; private long id; @PrimaryKey @Persistent(ValueStrategy = IdGeneratorStrategy.IDENTITY) private KeyFactory.createKey(parent, keyKind, id) key; @Persistent private ListString receivers; // constructor to create MessageIndex linked to Message public MessageIndex(Key parent, String keyKind, long id) { this.parent = parent; this.keyKind = keyKind; this id = id; } public class Message { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key @Persistent private String sender; @Persistent private String body; // a user create a message to a list of receivers public static Message createMessage(String userId, String body, ListString receivers) { tx.begin() this.body = body; MessageIndex index = new MessageIndex(key, key,getKind(), key.getId ()); index.setReceivers(receivers); tx.commit(); } // query to get all messages sent to a user foo public ListMessage getMessagesSentToUserId(String userId) { ListMessage results = null tx.begin(); Query q = pm.newQuery(MessageIndex.class); q.addFilter(receivers, Query.FilterOperator.EQUAL, foo); q.setKeyOnly(); // query the Message for all messages filtered by parent of MessageIndex key Query query = pm.newQuery(Message.class); query.addFilter(key, Query.FilterOperator.EQUAL, q.execute ().getParent()); results = (ListMessage) query.execute(); tx.commit(); } } Thanks Duong BaTien DBGROUPS and BudhNet On Wed, 2010-01-13 at 16:26 -0800, Jason (Google) wrote: It's been awhile since I've seen this video, so I'll have to go back to re-watch it in order to answer your question completely, but I'd be interested in seeing what you've sketched out so far and happy to give you my feedback on it. - Jason On Tue, Jan 12, 2010 at 3:52 PM, Duong BaTien duong.bat...@gmail.com wrote: Hi Jason, the author Brett Slatkin and others: 1) For the list property, the video shows simple example of standard 1:n Message Receivers in python and Java. It then demonstrates a very efficient technique of Message and MessageIndex with the query of MessageIndex in python (NO Java from then on). I look at both the low level datastore with Query.setKeyOnly() and the query select id from to get the results of ListKey, then go through the loop to get the receivers. I may miss something, since the python code looks so clean. But once you are in any environment, it is very expensive to switch. This technique has major impact in data modeling. 2) Again for the set intersection, the python code looks so clean. I roughly sketch what need to be done on the Java side with either low level of datastore or with JDO. It is still not elegant as the shown codes. The demos are also in python. Again, the technique of merge join will have very significant impact on data modeling that GAE may surpass other platforms. Haven't put enough time in it yet, I wonder if any one has worked out the demos in Java and suggested best practices in data modeling for a complex large application. The job Brett Slatkin sets out to do has not completed without the Java codes since GAE now supports Java. Thanks Duong BaTien DBGROUPS and BudhNet On Tue, 2010-01-12 at 14:13 -0800, Jason (Google) wrote: Can you be more specific about what you're trying to accomplish so we don't have to search through the video to find what you're looking for? Or, at least provide a timeline reference that we can refer to in the video. :) Thanks, - Jason On Mon, Jan 11, 2010 at 7:29 AM, Duong BaTien duong.bat...@gmail.com wrote: Hi: Is there any blog and/or
[appengine-java] Re: App Engine cold starts and overly aggressive cycling
I am having this problem for the last week or two after months of good performance and very little recycling. As my app start up time is around 15 seconds this is really hitting my user experience in a negative way. On Jan 16, 12:32 am, Ikai Lan i...@google.com wrote: Hey everybody, We've been seeing more and more reports of applications being cycled out overly aggressively, resulting in some folks implementing (discouraged) workarounds to keep their application from being cycled out. - What is your application ID? salsa-amsterdam - How do you know it is being cycled out? You'll need to insert some code that only gets called when the app cold starts. I have some logging which is executed on startup - How much time of inactivity does it take before your application is cycled out? Can be as little as a minute. - What time or days does this seem to happen? Seems to happen all the time. - What frameworks or libraries are you loading? Just the plain Servlet API and Groovy. Any other information you can provide would be helpful. Start up time of the app is about 10 seconds and involves some on the fly compilation of Groovy scripts. Ikai Lan Developer Programs Engineer, Google App Engine -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Problem running GAE + GWT wizzard project
In case you're like me and don't want to trash all those cookies, I think it's only the localhost cookie. Clearing only the localhost cookies worked for me. On Jan 25, 12:13 pm, Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com wrote: Lol? I tried to start the app created by the wizard on the operating system where i had that problem and i tested clearing the cookies in my browser. and it worked. I don't understand why ? I don't see a link between the exception thrown in the console and the browser's cookies :| On Mon, Jan 25, 2010 at 6:51 PM, Sarangan Rajamanickam sarangan.rajamanic...@gmail.com wrote: Hi, Could you check whether the eclipse shows error when you create a new Web application project? For example, when you create a new Web application project (without making any changes) Check whether the eclipse indicates any errors - especially regarding annotations. If so, change the compliance level to Java 1.5. (Just by selecting the error location, eclipse will give the option to change the compliance level to Java 1.5 for the whole project. Select it). Now, try executing it. It should work fine. Hope this helps. Regards, Sarangan Rajamanickam Email: sarangan.rajamanic...@gmail.com Blog:http://mindlive.blogspot.com Website:http://saranganr.x10hosting.com/ 2010/1/25 Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com Well, not really, I don't really see the connection between browser cookies and my error, witch is an exception inside AppEngine code. On Fri, Jan 22, 2010 at 5:04 PM, Rajeev Dayal rda...@google.com wrote: Hi, Can you try clearing your browser's cookies and seeing if this fixes the problem? Rajeev On Thu, Jan 14, 2010 at 7:00 AM, Ice13ill andrei.fifi...@gmail.comwrote: Hello, i'm using gwt + gae in Eclipse Galileo and i'm trying to run the project created with the Web Application wizzard. After the project is created using GWT and GAE sdk (2.0 and 1.3.0) i tried running the application, but i get this exception when loading the page: Initializing AppEngine server The server is running athttp://localhost:/ Jan 14, 2010 12:00:10 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: EXCEPTION java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java: 881) at com.google.appengine.tools.development.LocalHttpRequestEnvironment.init (LocalHttpRequestEnvironment.java:45) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:348) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) I did not found any posts regarding this problem. I'm just trying to run the created app by the wizzard, that's all I'm running it in Ubuntu 9.04, Mozilla Firefox, Eclipse galileo, Java 1.6.0_14 sdk Pls help! -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this
[appengine-java] Maven managed GAE project still functional in Eclipse
For all you App Engine, Maven and Eclipse lovers around, here are my instructions for a Maven managed GAE project still fully functional in Eclipse. http://hamandeggs.wordpress.com/2010/01/26/how-to-gae-eclipse-maven/ If you're not into reading the whole post, here's the most important part: mvn org.apache.maven.plugins:maven-archetype-plugin:2.0- alpha-4:generate \ -DarchetypeGroupId=org.beardedgeeks \ -DarchetypeArtifactId=gae-eclipse-maven-archetype \ -DarchetypeVersion=1.1 \ -DarchetypeRepository=http://beardedgeeks.googlecode.com/svn/ repository/releases Any improvement suggestions highly appreciated. In order to make it not to rely on a patched snapshot of maven-eclipse-plugin, I ask your help in getting these issues (and the patches I've provided) fixed: http://jira.codehaus.org/browse/MECLIPSE-402 http://jira.codehaus.org/browse/MECLIPSE-422 Best Regards, Hannu -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] here is currently a bug preventing owned one-to-many relationships where the parent and the child are the same class, making it difficult to model tree structures.
I see that quite a few people are having problems with implementing recursive data structures (tree etc, composite pattern etc). This is a documented bug in Google's JDO: There is currently a bug preventing owned one-to-many relationships where the parent and the child are the same class, making it difficult to model tree structures. This will be fixed in a future release. You can work around this by storing explicit Key values for either the parent or children. please see: http://code.google.com/appengine/docs/java/datastore/usingjdo.html please ask Google to fix this. If they need help they should ask the community for help! -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE For Java with struts2 And I am not able to access development admin console
http://code.google.com/appengine/ getting started for signing up page On Sat, Jan 30, 2010 at 9:11 PM, MKumar m.kumar1...@gmail.com wrote: Hi, I am using JAVA GAE , Everything is working fine, but I am not able to access the Admin console, which as given in documentation can be accessed using http://localhost:myport/_ah/admin But its giving me following error: HTTP ERROR: 404 There is no Action mapped for namespace /_ah and action name admin. RequestURI=/_ah/admin For your information, I had neither used data storage, or queing etc. in application, But wanted to directly enter some data using admin console. Please give me some idea so I can access the admin console for data entery on development server. Thanks Mrityunjay Kumar -- 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 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: a single entity write takes ~10 seconds with a tx and ~4 without a tx
I am not sure which logs I should enable. currently when I set .level- All my log shows a whole lot of data (and not all of it) . there are too many logging messages for the single request cycle. Can you please direct me which logs I need to enable and in which severity? Thanx, Lior On Jan 31, 8:01 pm, datanucleus andy_jeffer...@yahoo.com wrote: Would have thought that the log (DEBUG level) would tell you all you need to know about what is happening -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Object state from a query
Hi, I am using JDO. I know that when querying a class of objects residing in different entity group, the query should not be executed inside a transaction. So, what are the state of the objects in the query result (persistent or detached)? Should they be detached first before used? -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] appengine-java-io 0.1.0 released
Hi, As we known Google App Engine doesn't support Java IO writing operation natively. The VObject AppEngine? Java-IO is an open source project that intend to port gaevfs to java.io API to enable java.io classes support in Google App Engine (GAE) with Metaprogramming capability of the Groovy Programming Language. I would like to announced that appengine-java-io 0.1.0 released on 01 Feb 2010. Please go to http://code.google.com/p/appengine-java-io/wiki/ReleaseNoteZeroDotOneDotZero to view the Release Note. Chee Kin -- 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 google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.