Re: [appengine-java] Banning users from my app.
What about that: Security and Authentication at http://code.google.com/intl/de-DE/appengine/docs/java/config/webxml.html No server calls needed if you are ok with Google based authentification... Works for all resources (RPCs included).. Best, Raphael On Tue, Aug 16, 2011 at 10:51 PM, Ikai Lan (Google) ika...@google.com wrote: Yep. Datastore call and possibly Memcache (usually when someone is banned they stay banned). A optimization here would to cache something like a bloom filter (http://www.google.com/search?sourceid=chromeie=UTF-8q=bloom+filter) in local memory, and if a user hashes to in the set, check again to the datastore. This will work well because the false positives/banned users will be a VERY small percentage of your total user base, and it saves you the hassle of having to check each time. The only trick is expiring that cache: you might want the cache to expire every 5-10 minutes or so, which means a banned user isn't actually banned for that window. Also - since instances don't share memory, it's possible for instances to be out of sync from one another during that window. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 16, 2011 at 11:15 AM, Renan Mobile renanfra...@renanmobile.com wrote: Hello, I didn't figure out another way. So i check if the user is ban in each RPC call Atenciosamente, - Presidente Renan Franca Renan Mobile ltda: http://renanmobile.com - Soluções em Dispositivos Móveis (Smartphones) com integração via web. Soluções em: Android (Smartphones); Google Web Toolkit (Web); 2011/8/15 Rohan Chandiramani masterxr...@gmail.com Greetings gentlemen, I haven't found ANY articles either here or on SO about discussing methods of keeping the bad people out of your app, so i'l just ask it here. I want to be able to press a button that will ban the user from accessing my app and the most straightforward thing i can think of is on my one and only RPC call also check if the user is banned by checking my 'banned' table. but... This costs me a database call each time. So i'm wondering, how do all the cool developers handle this problem? Like what i'm suggesting or is there a some secret api that handles it for me. I'm not asking my users to log in. Thanks, Rohan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/67aKbQA64PoJ. 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. -- 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. -- 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. -- inc: http://ars-machina.raphaelbauer.com tech: http://ars-codia.raphaelbauer.com web: http://raphaelbauer.com -- 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.
Re: [appengine-java] Re: date comparison fails
Hi, Have you tried the following on the Calendar object? today.set(Calendar.MILLISECOND, 0); Cheers, Simon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/oG36DE_uv6wJ. 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] Connecting App with domain, can't add domain to google apps
I created some app and I just wanted to add a domain. I registered the domain earlier, so I use use existing domain to register my domain in google apps, I put the name(shittter.net) and then I got en error like Google Apps does not currently support this domain name. Is this because of domain name or something else? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/sdm8C5txctsJ. 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.
Re: [appengine-java] Re: date comparison fails
thanks a lot this was the issue. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 17, 2011 at 1:41 PM, Simon Knott knott.si...@gmail.com wrote: Hi, Have you tried the following on the Calendar object? today.set(Calendar.MILLISECOND, 0); Cheers, Simon -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/oG36DE_uv6wJ. 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. -- 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: Put Image into BlobStore programatically
Did you find anything on this Gal, I'm also interested in this post. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/tHr3yxxn8XsJ. 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.
Re: [appengine-java] Re: Put Image into BlobStore programatically
Hi Christian, Yes, was possible before creating a the post request from appengine. Now you can do it with http://code.google.com/appengine/docs/java/blobstore/overview.html#Writing_Files_to_the_Blobstore . I didn't migrate my code yet. Regards On Wed, Aug 17, 2011 at 10:14 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: Did you find anything on this Gal, I'm also interested in this post. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/tHr3yxxn8XsJ. 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
Re: [appengine-java] GPE + Maven?
Make sure you also have copyWebapptrue/copyWebapp in the configuration section for gwt-maven-plugin. If you're still having issues, you might also try on that mailing list. HTH, /dmc On Sat, Aug 13, 2011 at 6:22 PM, nacho vela.igna...@gmail.com wrote: I'm trying to use Maven in a GAE / GWT project. Everything works fine, but when I run my app using GPE (Run as Web Application) the content of src/main/webapp is not being copied to /target/myapp-1.0-SNAPSHOT Reading here http://jgonian.wordpress.com/2011/05/21/gwt-maven-gpe-gotchas/ I think that if I have installed m2extras the content of src/main/webapp should be copied to target by the GPE plugin. How can I fix this? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/RXe2QLiesu0J. 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
Re: [appengine-java] Connecting App with domain, can't add domain to google apps
It's likely because you are using a banned word in the domain name. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 16, 2011 at 2:19 PM, f1ames dr.odpowi...@gmail.com wrote: I created some app and I just wanted to add a domain. I registered the domain earlier, so I use use existing domain to register my domain in google apps, I put the name(shittter.net) and then I got en error like Google Apps does not currently support this domain name. Is this because of domain name or something else? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/sdm8C5txctsJ. 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. -- 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.
Re: [appengine-java] Eclipse GAE with OSX Lion
I was getting the attached screenshot whenever I try and launch my application. I'm also still unable to sign into Google within Eclipse for some reason? Clicking the Grant Access button does nothing, nor does the Deny Access... Not really sure what's going on there. When I tried to start it up again this morning, this is what I got com.sun.jdi.connect.TransportTimeoutException at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:97) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:680) eclipse.buildId=unknown java.version=1.6.0_26 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/nick/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws carbon -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/nick/.eclipse_keyring -showlocation -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/zul9Syxe-KkJ. 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: java.net.SocketTimeoutException: Timeout while fetching
yes. after enable threadsafetrue/threadsafe , still getting java.net.SocketTimeoutException: Timeout while fetching my applicationA is crawler with HTMLUnit, in appengine, it is uses to crawl applicationB inside appengine as well. I only need to enable always on for applicationA only right? -- 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: JDO NucleusObjectNotFoundException Exception: Could not retrieve entity of kind ? with key ?
Hi there, 1. From the parent's key, I use key.addChild(...) to build the full key to the child. Is this the same as the KeyFactory.createKey(...) that you use to build the child key? 2. To get an object without knowing its parent you can run a query on one of more of the child's persistent data members. You will need to have your query such that it returns just the single child that you are after. On Aug 17, 6:19 pm, aprendiz acast...@gmail.com wrote: Thanks Jeffrey, but your solution does not work. I have solved it this way: // 1) Build key parent. Key kparent = KeyFactory.createKey(Product.class.getSimpleName(), product_001); // 2) Build key child. Key kchild = KeyFactory.createKey(kparent, Format.class.getSimpleName(), 985); Is there any way to get an object without knowing his parent? Thanks a lot! On 13 ago, 03:56, jeffrey_t_b jbor...@gmail.com wrote: I think that you need a key object first, e.g. Key formatkey = KeyFactory.createKey(Format.class.getSimpleName(), formatId); forma = (Format) pm.getObjectById(Format.class, formatkey ); On Aug 10, 11:19 am, aprendiz acast...@gmail.com wrote: Hello, I have a (owner) one-to-many bidirectional relationship. A product can have multiple formats, but a format can only be associated with a product. public class Product{ @PrimaryKey @Persistent private Key id; // string, by application ... @Persistent(mappedBy = product) private List Format formats; } public class Format{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; //numeric, autogenerated ... @Persistent private Product producto; } Users select a format in a web page (radio button html) and application (servlet) must load the object identified by id. My code: forma = (Format) pm.getObjectById(Format.class, formatId); // formatId = 985 but I get: Could not retrieve entity of kind Format with key Format(985) Datastore Viewer shows a entity with ID/Name column = 985. How I must load object? What is wrong? Thank you! -- 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: Elevations API, polyline encoding, Google App Engine
I got it fixed thanks. Seems I needed to URLEncode the query params for GAE/J but not for Tomcat, no bad thing to do this anyway. Not tested it on proper GAE so far though. On Aug 16, 10:41 pm, JT jem...@gmail.com wrote: A lot of stuff works outside gaej, just fyi. So don't scratched your head too much. On Aug 16, 2011 4:33 AM, Martin Newstead skankmar...@hotmail.com wrote: I hope someone can help me get some ideas on how to debug this problem. I have build an application that needs to use the Google Elevations webservice API to get some elevations for some lat/lon pairs. I am encoding the data using my own Java implementation of the polyline encoding algorithm. My app works nicely on Linux/Tomcat/ JDK1.6, calls out to the Elevations API and gets good results. I tested using the Dev_server (1.5.0) and received an error, invalid character at position 70 of the URL that was sent to the Elevaton API. What's different about the dev_server ? Different JDK ? different encoding ? So far I've not had a chance to strip this down to bare bones and run some small tests on both environments, I am hoping to get some ideas here on which place to start. -- 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. -- 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: QUOTAs, usage limits
Thanks, I suspected that would be the case so will work on a solution that doesn't use Google Elevations API for this. On Aug 16, 4:28 pm, Simon Knott knott.si...@gmail.com wrote: It means that you will very likely require a proxy server in the middle. GAE doesn't allow you to present a single, static IP address and all GAE-hosted applications will be detected as the same IP range - I know for Twitter / Facebook there have been a number of developers who have hit their quota because other applications have been hitting the service from the same IP. -- 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] Does the SDK in WEB-INF/lib Get Deployed?
I'm wondering if JARs like appengine-api-1.0-sdk-1.5.2.jar in WEB-INF/lib get uploaded when I deploy from Eclipse. Are these items needed in the Google environment? I'm asking because I'm wondering if removing (if viable) would reduce my startup time, which seems to come in anywhere from 10s to 20s. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/2TbrcIZmZ4oJ. 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.
Re: [appengine-java] Eclipse GAE with OSX Lion
Hi Nick, Is there anything interesting in the Eclipse error log? Window | Show View | Error Log. Also which version of Eclipse are you running? /dmc On Wed, Aug 17, 2011 at 12:37 PM, Nick Wood nick.wood...@gmail.com wrote: I was getting the attached screenshot whenever I try and launch my application. I'm also still unable to sign into Google within Eclipse for some reason? Clicking the Grant Access button does nothing, nor does the Deny Access... Not really sure what's going on there. When I tried to start it up again this morning, this is what I got com.sun.jdi.connect.TransportTimeoutException at org.eclipse.jdi.internal.connect.SocketTransportService.accept(SocketTransportService.java:97) at org.eclipse.jdi.internal.connect.SocketTransportImpl.accept(SocketTransportImpl.java:56) at org.eclipse.jdi.internal.connect.SocketListeningConnectorImpl.accept(SocketListeningConnectorImpl.java:135) at org.eclipse.jdt.internal.launching.StandardVMDebugger$ConnectRunnable.run(StandardVMDebugger.java:107) at java.lang.Thread.run(Thread.java:680) eclipse.buildId=unknown java.version=1.6.0_26 java.vendor=Apple Inc. BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/nick/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws carbon -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/nick/.eclipse_keyring -showlocation -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/zul9Syxe-KkJ. 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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] Deploy Issues in 1.5.3
Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DewU65_2W38J. 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.
Re: [appengine-java] Deploy Issues in 1.5.3
Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DewU65_2W38J. 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. -- 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.
Re: [appengine-java] Deploy Issues in 1.5.3
Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DewU65_2W38J. 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. -- 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
Yes, these get deployed, and yes they are needed online because they provide the interfaces to the APIs. These are essentially thin clients. Fortunately, because we calculate a hash on each of the files, they're not reuploaded each time because we already have an identical file online. I'm not sure how much impact this would have on startup time if you're doing classpath scanning to remove some of these classes. You're welcome to try and let us know what the results are. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 11:03 AM, objectuser kevin.k.le...@gmail.comwrote: I'm wondering if JARs like appengine-api-1.0-sdk-1.5.2.jar in WEB-INF/lib get uploaded when I deploy from Eclipse. Are these items needed in the Google environment? I'm asking because I'm wondering if removing (if viable) would reduce my startup time, which seems to come in anywhere from 10s to 20s. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/2TbrcIZmZ4oJ. 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. -- 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.
Re: [appengine-java] Deploy Issues in 1.5.3
Follow this issue: http://code.google.com/p/googleappengine/issues/detail?id=5612 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:59 PM, Ikai Lan (Google) ika...@google.comwrote: Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DewU65_2W38J. 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. -- 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
I'm just generally trying to look to see if there's anything I can trim. My app seems to need to spin up a new instance a lot (the instance seems to stay up for only a minute or so if I'm not using it), and so there are a lot of 10s delays for requests. I don't really have a ton of libraries, though. :-/ But maybe it's more than average, since I don't know what average is. Thanks for the information though. I won't worry about the SDK then. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/RqAeKYjd-BAJ. 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.
Re: [appengine-java] Deploy Issues in 1.5.3
Looks like this is just the Eclipse plugin. Command line deploys with appcfg.cmd are going through just fine. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 2:25 PM, Ikai Lan (Google) ika...@google.comwrote: Follow this issue: http://code.google.com/p/googleappengine/issues/detail?id=5612 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:59 PM, Ikai Lan (Google) ika...@google.comwrote: Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.com wrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DewU65_2W38J. 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. -- 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/MxRdX5ALQmEJ. 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
Correct me if I am wrong, I read some where that if one unzip/unjar and jar everything back as a single huge jar file, that will reduce the startup time significantly? Any volunteers to test the theory? : o Also for google, instead of jar splitting, why not provide jar merging feature? Don't worry, you can take your time implementing this as I would not file for any patent with the almighty uspo just yet ;) On Aug 17, 2011 7:03 PM, objectuser kevin.k.le...@gmail.com wrote: I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine f... To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/MxRdX5ALQmEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from th... -- 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
I think you're likely to see some benefit from uncompressing your jar files (i.e. unjar and rejar with -0), but not from merging them. However, free to experiment with this and report back on your results. On Wed, Aug 17, 2011 at 6:14 PM, JT jem...@gmail.com wrote: Correct me if I am wrong, I read some where that if one unzip/unjar and jar everything back as a single huge jar file, that will reduce the startup time significantly? Any volunteers to test the theory? : o Also for google, instead of jar splitting, why not provide jar merging feature? Don't worry, you can take your time implementing this as I would not file for any patent with the almighty uspo just yet ;) On Aug 17, 2011 7:03 PM, objectuser kevin.k.le...@gmail.com wrote: I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine f... To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/MxRdX5ALQmEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from th... -- 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. -- 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.
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
There you go Don, provide that uncompressing out of the box something like jar splitting that the SDK is already doing for big jar file. In GAEJ SDK 2.0? :) On Wed, Aug 17, 2011 at 7:14 PM, JT jem...@gmail.com wrote: Correct me if I am wrong, I read some where that if one unzip/unjar and jar everything back as a single huge jar file, that will reduce the startup time significantly? Any volunteers to test the theory? : o Also for google, instead of jar splitting, why not provide jar merging feature? Don't worry, you can take your time implementing this as I would not file for any patent with the almighty uspo just yet ;) On Aug 17, 2011 7:03 PM, objectuser kevin.k.le...@gmail.com wrote: I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine f... To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/MxRdX5ALQmEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from th... -- 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] ApplicationError: 10: Unknown when writing to blobstore using FileService
I'm trying to write a Java serialized HashMapString,Long to the blobstore using the FileService and getting an Unknown error 10. I'm guessing there's 10,000+ items in the map. Below is the code I'm using, followed by the stack trace. Can someone clue me in on what I'm doing wrong? And yes, it works fine in the development environment ;) Thanks, Mike public class Filer { private static final FileService fileService = FileServiceFactory.getFileService(); private static final BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); public static String save( Object value ) throws IOException { if( value == null ) return null; AppEngineFile file = fileService.createNewBlobFile( text/plain ); return save( file, value ); } private static String save( AppEngineFile file, Object value ) throws IOException { // Open a channel and write out object FileWriteChannel writeChannel = fileService.openWriteChannel( file, true ); ObjectOutputStream out = new ObjectOutputStream( Channels.newOutputStream( writeChannel ) ); out.writeObject( value ); // Close it up out.close(); writeChannel.closeFinally(); return file.getFullPath(); } And here's the exception... org.apache.jsp.tasks.create_002duser_002dsegment_jsp _jspService: Failed to create user segment java.io.IOException at com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java: 501) at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java: 479) at com.google.appengine.api.files.FileServiceImpl.append(FileServiceImpl.java: 426) at com.google.appengine.api.files.FileServiceImpl.append(FileServiceImpl.java: 171) at com.google.appengine.api.files.FileWriteChannelImpl.write(FileWriteChannelImpl.java: 49) at com.google.appengine.api.files.FileWriteChannelImpl.write(FileWriteChannelImpl.java: 41) at java.nio.channels.Channels.write(Channels.java:80) at java.nio.channels.Channels.access$000(Channels.java:64) at java.nio.channels.Channels$1.write(Channels.java:151) at java.io.ObjectOutputStream $BlockDataOutputStream.drain(ObjectOutputStream.java:1855) at java.io.ObjectOutputStream $BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1764) at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java: 1558) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 346) at com.yumyumlabs.foundation.appengine.util.Filer.save(Filer.java:42) at com.yumyumlabs.foundation.appengine.util.Filer.save(Filer.java:33) at com.yumyumlabs.server.recipe.model.UserSegment.saveUsers(UserSegment.java: 51) at org.apache.jsp.tasks.create_002duser_002dsegment_jsp._jspService(create_002duser_002dsegment_jsp.java: 104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 390) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java: 213) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java: 171) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java: 145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java: 92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java: 381) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.machino.servlet.PageTimerFilter.doFilter(PageTimerFilter.java: 63) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.machino.servlet.LoginFilter.doFilter(LoginFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.machino.servlet.RedirectFilter.doFilter(RedirectFilter.java: 53) at org.mortbay.jetty.servlet.ServletHandler
Re: [appengine-java] Does the SDK in WEB-INF/lib Get Deployed?
@objectuser, My startup time is around 2 secs using static scanning for annotated components with VRaptor and Objectify. I don't think you can refactor your project at this point but its worth to check these frameworks for your next one. Regards, On Wed, Aug 17, 2011 at 8:19 PM, JT jem...@gmail.com wrote: There you go Don, provide that uncompressing out of the box something like jar splitting that the SDK is already doing for big jar file. In GAEJ SDK 2.0? :) On Wed, Aug 17, 2011 at 7:14 PM, JT jem...@gmail.com wrote: Correct me if I am wrong, I read some where that if one unzip/unjar and jar everything back as a single huge jar file, that will reduce the startup time significantly? Any volunteers to test the theory? : o Also for google, instead of jar splitting, why not provide jar merging feature? Don't worry, you can take your time implementing this as I would not file for any patent with the almighty uspo just yet ;) On Aug 17, 2011 7:03 PM, objectuser kevin.k.le...@gmail.com wrote: I do use JDO (not JPA) and Guice (and not Spring). I also use GWT, GIN and Shiro. So I have maybe 5 primary libraries, along with the SDK. -- You received this message because you are subscribed to the Google Groups Google App Engine f... To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/MxRdX5ALQmEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from th... -- 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. -- Bruno Fuster -- 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] Out of memory error wiped out all the local data
If seems like on dev_server, if it encountered out of memory error, all entities are wiped out. Is this a known issue and if so, is there any workaround for this? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/fsajLQBj2moJ. 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.