[appengine-java] Adding or deleting a property of an entity...
How can I add or delete a property in a given entity. Let say i have this employee class with properties -Name -Address and i have uploaded it in google app engine and pushed data. Then after some time, i want to add a field like below -Name -Address -ContactNo 1. Should i just add a definition in the class employee and just update it in google app engine? 2. What will the previous data look like and how can I add contactNo to the previous data? 3. What if I want to remove the Address property, should i just remove the address declaration and methods in the employee class? Also what will happen in my data up in GAE? -mar_novice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: geocoding for IP addresses
One possibility might be to use the downloadable Maxmind database, upload it to GAE datastore and use that to convert the IP-address to a city. Then use some other service to get the latitude/longitude for the city. http://developer.yahoo.com/maps/rest/V1/geocode.html http://code.google.com/apis/maps/documentation/services.html br, Juha On Aug 19, 1:57 am, Toby tobias.ro...@sunnymail.mobi wrote: Hello, I am looking for a way to get the latitude/longitude for the IP address of the user. So far I was using maxmindhttp://www.maxmind.com/app/lookup_city but I can not make it work. It depends on java.net stuff that does not exist in GAE and a 30MB file database. I imagine that maybe google offers a similar REST service or something. I looked around but I can not find anything useful with Java on GAE. Can someone help me? Thank you, Tobias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Granite Data Services Blog
It's source has no comment... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] HardDeadlineExceededError when try to persist object
Hi , I have 2000 records of an entity in my datastore. I want to make a change in a particular field of the entity for all records. When I try to persist the updated records, it gives HardDeadlineExceededError after updating near about 400 records and it takes more than 30 seconds. Is there any workaround so that the persisting process will remain continue even after 30 seconds? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Adding or deleting a property of an entity...
Thank you very much for that info. That's a big help. On Aug 19, 4:51 pm, leszek leszek.ptokar...@gmail.com wrote: Just do it, it will work as you expect. GAE is scheme-less database, it has no any scheme or dictionary attached. It is like old WYSIWYG What You See (in the entity class definition) Is What You Get. After adding new property existing data will read null and you can set and update. After removing property existing data will not read this property. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: Kawa servlet
sorry, I should have added that I've checked for this on the Will it run on GAE page, and it's not listed On Aug 19, 11:54 am, tetsujin1979 tetsujin1...@gmail.com wrote: Hi, I have a Kawa -http://www.gnu.org/software/kawa/- based servlet that uses XQuery to query some xml documents to produce an output, using the instructions here -http://www.gnu.org/software/qexo/simple-xquery-webapp.html This runs fine on tomcat, but when I've tried to run the same web app on the GAE, any request just returns the raw xquery page, with no processing done. According to this page -http://www.gnu.org/software/kawa/server/auto-servlet.html - KawaPageServlet automatically compiles a script into a Java class. The class is internal to the server, and is not written out to disk so could it be that the class is not getting compiled? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] JPA Question - Accsing Child object of a detached Parent in JSF
I observed a strange situation using JPA in case of detached object. If I want to use the Tenant (see bellow) object in JSF page accept the tenantId field all fields are NULL. But before the return statement if I access any of the member variable of Tenant Object it works file. I tried with FetchType.Eager, but no luck. Is it a known feature or BUG? This is my entity class a Tenant has one or more user. @Entity public class Tenant{ @OneToMany(mappedBy=tenant, cascade=CascadeType.ALL) CollectionUser hmsUserList = new ArrayListUser(); . } @Entity public class User{ @ManyToOne @JoinColumn(name=tenant_id) private Tenant tenant; } My function returns the Tenant Object as; public Tenant myFunction(){ User user = em.find(User.class, ID); //if add the bellow line it works // user.getTenant().getName(); return user.getTenant(); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] GAE- Horizontal scroll bar in logs dashboard..
I don't know where to post this so i just do it here, May I just suggest to add a horizontal scroll bar when looking into the logs.. when the url or link accessed is too long, like for example there are query strings, I can't see the whole query string ang also the cpu_ms, request latency etc. what I do is to highlight all the text (the text that is not displayed on the screen will also be selected), copy and paste it in a text editor. But sometimes it is irritating to do this repeatedly. Well, this is only a suggestion and a simple feature... but if is supported, it would be a great help in monitoring logs.. -mar_novice --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] How are people persisting data for a user?
From the docs it sounds like the User object is based on the email for the user. This seems really bad if you want to persist data for the current user since one day they can change their email address and then you are screwed. I see the user_id() function for python and the fact that this doesn't exist for java seems like a huge mistake. Are people just using User to persist anyway or is there another way around this? Thanks in advance. -Aj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] appengine demo taskengine blank page
i able to compile and run the demo, but when i view in the browser, it just blank . itested on appengine1.22 demo+winxp . anyone else facing this? no error in the console runserver: [java] Aug 20, 2009 1:27:46 AM com.google.appengine.tools.development.Isola tedAppClassLoader checkWorkingDirectory [java] WARNING: Your working directory, (D:\work\projects \appengine-java-sd k-1.2.2\appengine-java-sdk-1.2.2\demos\taskengine) is not equal to your [java] web application root (D:\work\projects\appengine-java- sdk-1.2.2\appe ngine-java-sdk-1.2.2\demos\taskengine\war) [java] You will not be able to access files from your working directory on the production server. [java] [java] The server is running at http://localhost:8080/ [java] Aug 20, 2009 1:27:54 AM com.google.appengine.tools.development.Local ResourceFileServlet doGet [java] WARNING: No file found for: /sticky/sticky.nocache.js [java] Aug 20, 2009 1:28:42 AM com.google.appengine.tools.development.Local ResourceFileServlet doGet [java] WARNING: No file found for: /Sticky.css [java] Aug 20, 2009 1:28:42 AM com.google.appengine.tools.development.Local ResourceFileServlet doGet [java] WARNING: No file found for: /sticky/sticky.nocache.js --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Python scripts do no run in child directories?
Hi Jeff, Thanks for ur help. I add __init__.py into the subdir and it works. I am python beginer :) Regards Rayn On Aug 19, 7:23 am, Jeff S (Google) j...@google.com wrote: Hi Rayn, Does the subdirectory contain a file named __init__.py? Also you'll need to change your import statements to match the new directory structure (but I assume you already did this). This tends to trip people up who are creating their first python packages so that's the first thing I think of but I'm not sure if you've created a package before :) Cheers, Jeff On Tue, Aug 18, 2009 at 2:39 AM, Rayn xu.r...@gmail.com wrote: Hi, I encountered a very strange problem while building my app. Firstly everything goes well and my app runs correctly. But after I tried to move the python scripts into a child dir to make files better organized, the script doesn't run ! and I'm sure I have modified app.yaml correctly. and request to static files can be handled correctly. The only useful information I can get from the console output is that an exception happens while handling the request. I'm working with Python 2.6.2 on Windows 7 Did anybody else ever encounter the same problem?- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Many Next in DataViewer logs bug ?
Hi, I've seen this issue many times : in the DataViewer (Logs), if I do many NEXT, then the DataViewer is broken (no more CSS, js,... ) etc,... I've produced this bug with many browsers (FF, IE, Chrome,...) Have you ever seen this issue ? then I will fill a bug ? Regards --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Free Quota Clarification
Hi ramu, On Sun, Aug 16, 2009 at 7:45 AM, ramu rslet...@gmail.com wrote: Currently my app is in development stage and NOT made public. However I seem to miss something about quotas. The only thing running consistently on my app is 1 cron job running every minute building the database from another resource on internet. the Quota Page shows following ... Outgoing Bandwidth -4%---4% -- 0.04 of 1.00 GBytes Okay Incoming Bandwidth -5%---5% --0.05 of 1.00 GBytes Okay UrlFetch Data Sent ---1%-1%--- 0.03 of 4.00 GBytes Okay UrlFetch Data Received -1%1% --0.05 of 4.00 GBytes Okay Now my question is if the Outgoing and Incoming Bandwidth are limited to be 1 GB, how can the UrlFetch Quota scale to 4GB when they are added to the former .??? The incoming and outgoing bandwidth quotas are billed quotas, and you can increase them by enabling billing. The URLFetch is an unbilled limit, designed to prevent your app from accidentally running out of control. That said, if you did enable billing and required more URLFetch quota, that could likely be arranged. -Nick Johnson -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Server Error (500),when i update_indexes
Hi XinGuo. Feng, Are you still having trouble with your indexes? Everything looks fine now. -Nick Johnson On Sun, Aug 16, 2009 at 3:22 AM, XinGuo. Feng fengxin...@gmail.com wrote: my app-id is haowanerde,please!! -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: All Read Please: Geographical Request Latency
Ok, well I'm now seeing much *worse* (~600ms) latency in Sydney - reliably slower since the maintenance last night. ping performance.latest.pet-software.appspot.com PING appspot.l.google.com (66.102.11.141): 56 data bytes 64 bytes from 66.102.11.141: icmp_seq=0 ttl=54 time=18.807 ms 64 bytes from 66.102.11.141: icmp_seq=2 ttl=54 time=23.454 ms 64 bytes from 66.102.11.141: icmp_seq=3 ttl=54 time=15.535 ms 64 bytes from 66.102.11.141: icmp_seq=4 ttl=54 time=12.386 ms 64 bytes from 66.102.11.141: icmp_seq=5 ttl=54 time=26.489 ms 64 bytes from 66.102.11.141: icmp_seq=6 ttl=54 time=13.917 ms On Aug 14, 9:57 pm, Martyn martyn.cutc...@googlemail.com wrote: I repeated Hawketts ping results for performance.latest.pet- software.appspot.com and got similar times ~22ms. So can anyone suggest why we experience such diverse request latency if the underlying infrastructure is so good? - Hawkett (Australia) reported avg 440ms with a ping of 22ms and I get 160ms with similar ping response. Something else is happening. Note that my request logs report process time consistently around 23ms. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: dataviewer complication
Hi Cyprian, On Tue, Aug 18, 2009 at 1:15 PM, Cyprian cyprian.kona...@googlemail.comwrote: Same for me, following queries work fine form dataviewer console: SELECT * FROM RSS WHERE title'' SELECT * FROM RSS WHERE ORDER BY date2 DESC and that cause an error: SELECT * FROM RSS WHERE title'' ORDER BY date2 DESC This is not a valid query: If you have inequality filters on a property, that property must also be used as your first sort order. -Nick Johnson Server Error A server error has occurred. APP ID: dhsrss BR Cyprian On 6 Sie, 13:19, niklasr nik...@montao.com.br wrote: Hello Recently there were results I can't understand from the dataviewer console: SELECT * FROM Article order by added desc #The above works to view entities SELECT * FROM Article where published=True #The above works to view lists entities The following however generates a server error SELECT * FROM Article where published=True order by added desc #Server Error It happens with 2 independent applications. The queries used to work. Please inform what could be the case. Thank you ___ NickRTZ -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Datastore writes are temporarily unavailable
An issue for that already exists: http://code.google.com/p/googleappengine/issues/detail?id=1811 On Aug 18, 7:14 pm, Jeff S (Google) j...@google.com wrote: Hi Pedro, That's a great suggestion. Would you mind filing that in the issue tracker? http://code.google.com/p/googleappengine/issues/list Thank you, Jeff On Tue, Aug 18, 2009 at 9:41 AM, Pedro Morais morais.pe...@gmail.comwrote: Same problem on my app. We really need a way to put the dev datastore into several reduced availability modes to test for these situations... Regards, Pedro On 18 Ago, 17:32, Kugutsumen kugutsu...@gmail.com wrote: Just got the following exception: CapabilityDisabledError Please seehttp://code.google.com/status/appengineformore information. The status page doesn't say anything. I am not the only one affected with this issue as jaiku.com is broken too, you can't login (Jaiku | Something Broke :(). --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Application limit
Hi Paul, I've increased your apps quota to 20. Happy developing! -Nick Johnson On Tue, Aug 18, 2009 at 8:52 AM, Paul Tarjan ptar...@gmail.com wrote: I've been having quite a bit of fun working with the appengine, but I have reached my limit of applications. I would hate to have to create another account for development, since it will be hard to remember and switch back and forth. Can I get some removed or the limit increased? I have 2 undeployed, so feel free to remove those, and you-rock and web-rank have been migrated to a separate server. Thanks Paul -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: dataviewer complication
Thanks Nick Best Regards Cyprian On 19 Sie, 13:22, Nick Johnson (Google) nick.john...@google.com wrote: Hi Cyprian, On Tue, Aug 18, 2009 at 1:15 PM, Cyprian cyprian.kona...@googlemail.comwrote: Same for me, following queries work fine form dataviewer console: SELECT * FROM RSS WHERE title'' SELECT * FROM RSS WHERE ORDER BY date2 DESC and that cause an error: SELECT * FROM RSS WHERE title'' ORDER BY date2 DESC This is not a valid query: If you have inequality filters on a property, that property must also be used as your first sort order. -Nick Johnson Server Error A server error has occurred. APP ID: dhsrss BR Cyprian On 6 Sie, 13:19, niklasr nik...@montao.com.br wrote: Hello Recently there were results I can't understand from the dataviewer console: SELECT * FROM Article order by added desc #The above works to view entities SELECT * FROM Article where published=True #The above works to view lists entities The following however generates a server error SELECT * FROM Article where published=True order by added desc #Server Error It happens with 2 independent applications. The queries used to work. Please inform what could be the case. Thank you ___ NickRTZ -- Nick Johnson, Developer Programs Engineer, App Engine --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Cron job fails without giving additional information
I am trying to get the following cron jobs work with my (Python) app. - cron: - description: Wednesday alert url: /email_alerts schedule: every wednesday 03:00 - description: Friday alert url: /email_alerts schedule: every friday 03:00 - I verified that '/email_alerts' works as expected from the browser. How ever, the Admin console shows the job as Failed. I haven't seen any errors listed in the Logs section around this time so I am guessing that perhaps, the error, if any, occurred before fetching the URL. Is there any way I can find more information about the failure? Thanks, Raghu --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] .jsp file error
i simply new a Guestbook project without GWT, then new a guestbook.jsp in the war folder. no errors at the eclipse edit area(my ide: Eclipse 3.4 (Ganymede) ), but a red X on war/guestbook.jsp in the package explorer. when visit guestbook.jsp, i got the flowing: SEVERE: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile (DefaultCompilerAdapter.java:473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute (JavacExternal.java:47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java: 382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet$2.run (PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service (PrivilegedJspServlet.java:57) 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.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter (StaticFileFilter.java:124) 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.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) 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) Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, ? at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) can anyone give a help? thanks! --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] How to Query JPA
I'm just learning how to get a java google appengine project up and running and I've run into a problem while attempting to run a query using JPA. I've followed the instructions on this page http://code.google.com/appengine/docs/java/datastore/usingjpa.html for setting up JPA but I'm still running into an exception. In case this matters I'm running the eclipse app engine plugin version 1.2.2 and I have only been running in dev mode.I haven't yet deployed the app to the google servers. Here is my persistence.xml file: persistence-unit name=transactions-optional providerorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider/ provider properties property name=datanucleus.NontransactionalRead value=true/ property name=datanucleus.NontransactionalWrite value=true/ property name=datanucleus.ConnectionURL value=appengine/ /properties /persistence-unit Here is my Java code: EntityManager entityManager = EMF.get().createEntityManager(); try { String sql = SELECT t FROM +Team.class.getName()+ t; Query query = entityManager.createNativeQuery(sql); return query.getResultList(); } finally { entityManager.close(); } And here is the exception that I receive: Caused by: java.lang.IllegalArgumentException: DataNucleus doesnt currently support queries of language SQL for this datastore at org.datanucleus.jpa.EntityManagerImpl.createNativeQuery (EntityManagerImpl.java:724) This article on the appengine cookbook(http://appengine- cookbook.appspot.com/recipe/jpql-should-use-full-class-name/) seems to verify that my query is correct but if that were true why would I receive the SQL error? Has anyone run into this before? --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Apache Jackrabbit on GAE
Hi, We investigated a little bit the very same question, in order to port Liferay (which uses Jackrabbit) under GAE. And instead of migrating all sql/hibernate stuff to JDO, it appears incredibly easier to continue to use jdbc, but to use it with something compliant with GAE. Once said that, there is several options, but the one we selected as the most interesting is jiql driver (www.jiql.org) for Google big tables. We done some promising prototype with that, I invite you to have a look to this project. If you find some good generic solution for file storage (some generic class overriding to reuse any existing stuff), we are more than interested ;-) Best regards, Francois On Aug 18, 12:45 pm, Ben Francis b...@tola.me.uk wrote: Has anyone managed to get Apache Jackrabbit running on GAE? I've seen a few postshttp://www.mail-archive.com/us...@jackrabbit.apache.org/msg11054.htmlon the Jackrabbit mailing list about this and the main problems seem to be: 1. Getting the repository to run on JDO 2. Storing the search index (which uses Lucene by default) 3. Need for threading support Although I wouldn't personally know where to start, getting the repository to run on JDO doesn't seem infeasible. Storing a search index may be possible, Compass supports JDO and the Jackrabbit search engine is supposed to be pluggable. The need for threading support seems more fundamental to me, I'm not sure if there's any solution there. Apart from the yet-to-be-released XMPP, incoming mail and mass storage APIs - not being able to run a JCR implementation is the current biggest barrier for us to use GAE for the enterprise web application we're developing. Regards Ben -- Ben Francishttp://tola.me.uk --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] __key__ problem.
Another newbie question I am afraid, I am trying to use the ID/Name field in my application, but having some problems. I have the following query: locations = db.GqlQuery(SELECT * FROM Location ORDER BY __key__ DESC LIMIT 10) template_values = { 'greetings': locations, } And I am trying to use that field in my application like this: {{ greeting.__key__ }} {{ greeting.xpos }} etc Everything is working, except for when I try to include the __key__ field, what am I doing wrong? --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: GAE costs more than 10 times than expected.
I've opened an issue to add new billing options (monthly, currency,...) http://code.google.com/p/googleappengine/issues/detail?id=1999 Regards. On 14 août, 16:28, Juraj Vitko juraj.vi...@gmail.com wrote: Yeah Paypal is actually in direct competition with Google Checkout, I don't know what was I thinking:) It looks like for tiny payments it will be 10 times more.. I hope with bigger payments these bank fees will be diminished - if not then maybe it's time to open an US bank account (with a Delaware LLC). On Aug 12, 8:16 pm, Sylvain sylvain.viv...@gmail.com wrote: No you can't use Paypal. You have to use Google Checkout. So currently there is no alternative. On Aug 11, 1:42 pm, Juraj Vitko juraj.vi...@gmail.com wrote: Hi Sylvain, would it be possible for you to pay for App Engine hosting from a PayPal account (instead of the bank account), which you would be filling up monthly? Sorry if this is a stupid question, I haven't used App Engine billing yet. J. On Aug 10, 4:49 pm, Sylvain sylvain.viv...@gmail.com wrote: Hi, Here is the background : I've a small app that needs more than 1Go, currently : 1.27 GB. So each week, I'm charged by GAE/Chekout : $0.08 (0.056€) But at the end I pay to my bank : $1.00 (0.71€). So, it is more than 10 times than expected. I know about taxes (http://code.google.com/intl/fr/appengine/docs/ billing.html#A_Note_About_Taxes), but here the gap between the GAE price and the Bank price is too big : 92% is only taxes. I think billing needs to be changed/adapted asap in several ways to reduce the taxes part : 1 - add new currencies (Euro, etc,...) 2 - do not charge weekly but monthly. About this, I think it is not really logical to charge weekly. Most services charge weekly and for example, if you use Google Adsense to pay you GAE site : Adsense will pay monthly. Else add an option (weekly/monthly) 3 - Do not charge under a certain amount ($1 or more) 4 - Add a credit system. For example, I credit my account with 50€, then GAE/Chekout use this money I know that banks need money ;), but here, I think this is very bad for users and GAE if it doesn't change and particularly for small project from non US users. I want too give my money to Google, not to banks :) Regards. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Chrome display issue
I wrote a GWT app using the Eclipse IDE plugin. The app has a form dialog that includes a TextArea widget. User entered data in the TextArea widget is persisted from the form and later displayed in a Label widget. The data 'appear' to be missing newline characters showing one big concatenated string. I printed out the byte representation of the persisted data and the newline characters are there. This only happens in the Chrome browser and the G1 Android browser. Unfortunately these are my target web browsers. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Cron job fails without giving additional information
You need to look at the logs. Try looking at the request logs to see if the request really went through. In case you are processing too much data, that request log might have got purged by now. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Random HTTP 500 errors
Since i am not able to find any real issues with my code, i want to check with all appengine developers if their apps also throw up random HTTP 500 - Internal Server Error. In my case this is happening mostly where front-end template related code is involved. To reiterate the issue, quite a few times, when a user accesses the site via browser(FF, IE, Chrome, Safari) the page fails to load. However if user refreshes, the same page loads just fine. If i look at the logs, there are no mentions in the Error log. In the Request log, only thing found is information about the request, but no errors. Also, for almost all these pages, they serve content from memcache, which means datastore calls are kept to minimum. If anyone else has seen these kind of errors, please let me know if you found a workaround. Thanks --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Random HTTP 500 errors
There were loads of these yesterday during the outage. The only times I've ever had Internal Server Errrors are: - when GAE was having an outage - when I had a syntax error in my code - when I added a google apps account that matched my existing google account So unless you were seeing these during an outage, I don't think my experience matches yours. You can see the outage data in great detail here: http://code.google.com/status/appengine Click where it says Normal and you get a day-by-day rundown. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Problem with status page
FYI: http://code.google.com/status/appengine/detail/serving/2009/08/16#ae-trust-detail-helloworld-get-latency apparently has a bug with the code that does the [A] [B] ... markers. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: How can I read a standard openssl private key with PyCrypto and decrypt with it?
Hi Tim, Would you be open to using tlslite? I've had good experience with it so far, so if you are looking to get up and running quickly this example might help http://code.google.com/p/gdata-python-client/source/browse/trunk/src/gdata/gauth.py#378 from tlslite.utils import keyfactory private_key = keyfactory.parsePrivateKey(rsa_key) signed = private_key.hashAndSign(data) Thank you, Jeff On Tue, Aug 18, 2009 at 6:27 PM, xp_prg wghe...@gmail.com wrote: Hi All, I generated a private key with: openssl.exe req -x509 -nodes -days 365 -newkey rsa:1024 -keyout sdgidfedapp11.corp.intuit.net.key -out sdgidfedapp11.corp.intuit.net.crt I can't figure out is how to use PyCrypto.RSA.construct with it to decrypt something. This works however: from M2Crypto import RSA priv_key = RSA.load_key('private.key', get_password) decrypted_key = priv_key.private_decrypt(base64.b64decode(enc_key), RSA.pkcs1 _padding) I am sure there is a way to do this with PyCrypto, anyone know how to do it? -Tim --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] facebook
i see the libs for php are already a point of interest so i wont need to add to that so i would just like to add a question about google supporting 3rd party libs like facebook and myspace or other major brands. my problem is i am on a path to using google api to managing content via google products like picasa and google docs and from what i understand i could serve entire sites from this engine by pointing to an url. well if this is true then it doesnt matter that the net is evolving faster then hosting co's are willing to keep up with(Lazy). google i think recognized this and did something about it. this still leaves the rest of the major brands with no supporting host or very few, they dont provide and probably are not capable of doing something like this. so will google support 3rd party libs down the road? is there another way around it. already all other email sucks when stood against gmail, add to that the fact that my host might as well be dos without new libs to keep up means i and a lot of folks are going to be in search of ways to keep pace despite the lack of model shown by hosting co's. can google, will google HELP. the lack of response i get on the forums makes me doubt, yet the superior product google produces makes me drewl at the thought. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Cron job fails without giving additional information
On Aug 19, 1:01 pm, vp vivpu...@gmail.com wrote: You need to look at the logs. Try looking at the request logs to see if the request really went through. In case you are processing too much data, that request log might have got purged by now. I checked request logs and I do see entry for the URL '/email_alerts' around the time the cron job executed. So I need to amend my earlier statement about URL not being fetched. How ever, the logs do not show any error in processing the URL so I am still puzzled as to why cron reports the job as Failed. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Questions about the preferred way to handle multiple apps/accounts
We have built an app that allows a web site to move portions of their web site to Google AppEngine, with minimal configuration on their part. This is great for WordPress, and Movable type users who would like to move their images off site, but don't want to mess with their CMS. Think of it like s3 for image hosting light, or Akamai site proxying made cheap. My Question is, should each user of our app software have their own account for the deployment, or should we have multiple accounts we use to set up their accounts, or should we have one account and request more accounts every time we reach our App Quota? The latter would be the easiest for us as we wouldn't have to log in and out to upgrade or monitor our clients health, but if we sell as many copies as it looks like we are going to, I didn't want to pick a method that would not be the one Google wanted us to use. Thanks in advance. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Questions about the preferred way to handle multiple apps/accounts
On Aug 19, 2:32 pm, Brandon N. Wirtz drak...@digerat.com wrote: We have built an app that allows a web site to move portions of their web site to Google AppEngine, with minimal configuration on their part. Please post in a separate thread as this is not related to current discussion. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Random HTTP 500 errors
Joshua, Thanks for your response. I see issues even when GAE is not reporting an outage. In one instance, all i have setup is a redirect from one page to another another. And quite a few times that redirect just fails. -V --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Cron job fails without giving additional information
Maybe it is a deadline exceeded error. Did you set your app to catch that error? --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Cron job fails without giving additional information
On Aug 19, 2:58 pm, vp vivpu...@gmail.com wrote: Maybe it is a deadline exceeded error. Did you set your app to catch that error? I don't catch this error and it is very unlikely to have happened even though it can not be ruled out. If it indeed occurred, wouldn't the error show up in the logs? --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: __key__ problem.
Maybe you need to use a key method - http://code.google.com/appengine/docs/python/datastore/keyclass.html --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Putting Entities With Unique Constraints
Ran into a gotcha with my App today. I have implemented a User Model that has a couple of properties (facebook id and email address) that need to be unique across all User instances in the datastore. I implemented my own get_or_insert method that I run in a transaction. The get_or_insert method queries for either or both properties (fb uid or email) depending on parameters. If no object is found, a new one is inserted. My problem is there are cases where I want to do this for dozens of items in one request. The execution time I am seeing on the queries to check for existing items is prohibitively long. I am getting time outs when trying to process (get_or_insert) 100 items. I've experiemented with not using the transaction just to see if it would change the overall time. The impact was minimal. I've experiemented with doing bulk puts (putting a list of Model instances at once). This was great, but does not help as the queries are still needed to see if the items exist and to try to enforce uniqueness. Any one have any advice on an alternative approach that may work? I've thought about doing it asynchronously using the task queue, but that does not work with the user experience and flow of the application. Right now, I think a new approach is needed that avoids creating the objects at this point in the application flow. Here's the code that implements the get_or_insert and is run as a transaction: def _run_user_get_or_insert(q_by_email, q_by_fbuid, confirm_user, new_user): user = None updated = False if q_by_email: user = q_by_email.get() if not user: if q_by_fbuid: user = q_by_fbuid.get() if not user: user = new_user updated = True if confirm_user and not user.is_confirmed: user.is_confirmed = True updated = True if updated: user.put() return user Running on app engine, it takes ~16s to create 100 new users. Thanks for your help. -Scott --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Requested Task_Queue Function: add_multi
An add_multi function for the taskqueue would likely provide the same benefits we see from batching calls to the db and memcache. Of course, more introspection and taskqueue and functionality in general would be welcome, but 'add_multi' seems like low-hanging fruit. --~--~-~--~~~---~--~~ 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-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---