[appengine-java] Development server requires custom indexes for inequality filters on keys
I was trying to do an inequality query on the Keys of an entity on the development server and received the following error: SEVERE: QUERY ERROR: com.google.appengine.api.datastore.DatastoreNeedIndexException: Query com.google.appengine.api.datastore.dev.LocalCompositeIndexManager $indexcomponentsonlyqu...@203ede49 requires the following index: datastore-index kind=NewsStoryServer ancestor=false source=manual property name=categories direction=asc/ property name=__key__ direction=asc/ /datastore-index The App Engine docs specify that inequality filters on keys and equality filters on other properties are supported by a default index (http://code.google.com/appengine/docs/java/datastore/ queriesandindexes.html#Defining_Indexes_With_Configuration) and it does work when I run in on AppEngine so it seems to be a Development server problem. Anyone else encounter this problem? James -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Eventually consistent reads and JDO
Hi all, Thanks for all new new features in 1.3.2! I was just wondering if it is possible to use the ReadPolicy.Consistency.EVENTUAL feature and still use the JDO interface. I am currently getting a PersistenceManager with: JDOHelper.getPersistenceManagerFactory(transactions- optional); Is there a way to tell the PersistenceManager to tell the datastore to accept eventually consistent reads? Most of my app can handle stale data, and any performance improvement would be great! Thanks! // Tomas -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Mysql migration to app engine
Hello, I have a eclipse plugin that save logs in a mysql db. I want to save the logs in my app engine, How can i migrate the db to app engine? Thanks and Regards Rodrigo -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Workflow Engine
Has anyone successfully implemented a Java workflow engine on GAE? (or perhaps considering it). I'm thinking of something like Bonita (http://www.bonitasoft.com/) or Enhydra Shark (http://www.enhydra.org/workflow/shark/index.html) and would welcome feedback from anyone who has tried it -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Lost record updates after server restart
Hello everyone, I have a simple issue, and i'm sure its fix is simple as well. I have written a simple app's scaffolding front end. And i notice that when i add new records, they get persisted, but when i update records. The effect will last until i restart my server. Where could i start looking to get this fix? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Slow JAXB context initialization
Hi ! I have a problem with JAXB context initialization. After some of my model optimization the local development server takes to start up (JAXBContext initialization included) about 7 seconds (as unit test it takes 1 second only. My CPU 3.06 GHz Core 2 Duo - GAE 1.3.1). However, on App Engine it takes still more than 30s quota limit thus I'm not able to start it up. It's about 300+ java classes. I have setup the following as well property name=com.sun.xml.bind.v2.runtime.JAXBContextImpl.fastBoot value=true/ I locally did some measurement by profiler and the most expensive operation was the following: com.google.appengine.tools.development.DevAppServerFactory CustomSecurityManager.checkPermission(java.security.Permission) Total Time: 4 973 ms Calls: 86332 Could you, please, point me out where could be a problem? What can I do make it run on GAE? Thanks, Aurel. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Looking to brush-up on my Java
Its been a very long time since I used J2EE. been doing web dev in LAMP for the past couple of years. Im looking to get back in the game. Can anyone reccommend a good book on Java development for the AppEngine? I'm looking to get a good background on the Platform, which should help me better understand the debug messages Im getting on my app. Any suggestions? Thanks alot! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] JPA: Query contains stale data (bug or future)?
Hello. I'm using JPA support for managing the App Engine datastore. And I've got some problems. I've got an entity Container than contains entities Item(s). Here is my actions. I starts transaction then updates entity then flush updates to database. Than I gets all entities Item(s) for a container which contains my updated Item. But the list of retrieved items contains Item that does not have my changes. What is wrong with my code??? I've modelled this problem. (see code) @Entity public class Container implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @OneToMany(mappedBy = container, fetch = FetchType.LAZY) private ListItem items = new ArrayListItem(); public void setKey(Key key) { this.key = key; } public Key getKey() { return key; } public void setItems(ListItem items) { this.items = items; } public ListItem getItems() { return items; } } @Entity public class Item implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @ManyToOne(fetch = FetchType.LAZY) private Container container; @Column private String value; public void setKey(Key key) { this.key = key; } public Key getKey() { return key; } public void setContainer(Container container) { this.container = container; } public Container getContainer() { return container; } public void setValue(String value) { this.value = value; } public String getValue() { return value; } @Override public String toString() { return Item [key= + key + , value= + value + ]; } } @Service(TestLocalService) public class LocalService { protected final Log logger = LogFactory.getLog(getClass()); @Autowired @Qualifier(jpaTemplate) protected JpaTemplate jpaTemplate; @Transactional(propagation = Propagation.REQUIRED) public Key createContainer() { Container container = new Container(); jpaTemplate.persist(container); jpaTemplate.flush(); logger.fatal(new container + container.getKey()); return container.getKey(); } @Transactional(propagation = Propagation.REQUIRED) public Key generateItems(Key containerKey) { Container container = jpaTemplate.find(Container.class, containerKey); Key key = null; for (int i = 0; i 5; i++) { Item item = new Item(); item.setContainer(container); item.setValue(Integer.toString(i)); jpaTemplate.persist(item); jpaTemplate.flush(); key = item.getKey(); logger.fatal(new item + item); } return key; } @Transactional(propagation = Propagation.REQUIRED) public void changeItems(Key containerKey, Key itemKey) { Container container = jpaTemplate.find(Container.class, containerKey); Item changedItem = jpaTemplate.find(Item.class, itemKey); changedItem.setValue(xxx); // --- PROBLEM HERE jpaTemplate.flush(); logger.fatal(changed item: + changedItem); for (Item item : container.getItems()) { logger.fatal(list item: + item); // PROBLEM HERE } } public static void testListSync(LocalService service) { // MAIN TEST Key containerKey = service.createContainer(); Key itemKey = service.generateItems(containerKey); service.changeItems(containerKey, itemKey); } } EXECUTION LOG ### CALL createContainer datastore_v3.BeginTransaction datastore_v3.Put datastore_v3.Commit ## LOG createContainer SEVERE: new containerContainer(684) 27.03.2010 6:16:17 ru.englishvocabulary.bl.local.test.LocalService generateItems ### CALL generateItems datastore_v3.BeginTransaction datastore_v3.Get datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Commit ### LOG generateItems SEVERE: new itemItem [key=Container(684)/Item(685), value=0] 27.03.2010 6:16:17 ru.englishvocabulary.bl.local.test.LocalService
[appengine-java] Grails, Spring, and Thread Issue
Hi all - I am aware of the thread policies in GAE, but I am not sure what changed, when I recently deployed a grails app (which i've done in the past w\out issues), and now all of a sudden it appears that Spring (as a part of grails) is attempting register a bean which requires threading, and then of course throws the access exception. Any thoughts on what might have changed? Is there a way to catch this exception and move on? Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shutdownHook': Initialization of bean failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java: 519) at org.codehaus.groovy.grails.commons.spring.ReloadAwareAutowireCapableBeanFactory.doCreateBean(ReloadAwareAutowireCapableBeanFactory.java: 124) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java: 450) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java: 222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java: 287) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java: 189) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java: 557) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java: 842) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java: 416) at org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext.refresh(GrailsWebApplicationContext.java: 153) at org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfiguration.getApplicationContext(DefaultRuntimeSpringConfiguration.java: 154) at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java: 170) at org.codehaus.groovy.grails.commons.spring.GrailsRuntimeConfigurator.configure(GrailsRuntimeConfigurator.java: 131) at org.codehaus.groovy.grails.web.context.GrailsConfigUtils.configureWebApplicationContext(GrailsConfigUtils.java: 102) at org.codehaus.groovy.grails.web.context.GrailsContextLoader.createWebApplicationContext(GrailsContextLoader.java: 68) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java: 192) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java: 47) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java: 548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: 191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java: 168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at
[appengine-java] Problem with AppStats
Hey Everyone, I just downloaded the new SDK and i was excited to use app stats. After following the instructions to set it up, I tried testing it on my localdev server and I got a nullpointerexception WARNING: /appstats/stats java.lang.NullPointerException at java.io.Reader.init(Reader.java:61) at java.io.InputStreamReader.init(InputStreamReader.java:80) at com.google.appengine.tools.appstats.TemplateTool.loadTemplateSource(TemplateTool.java: 115) at com.google.appengine.tools.appstats.Renderer $1.loadTemplateSource(Renderer.java:41) at com.google.appengine.tools.appstats.TemplateTool.getTemplate(TemplateTool.java: 142) at com.google.appengine.tools.appstats.TemplateTool.format(TemplateTool.java: 100) at com.google.appengine.tools.appstats.Renderer $1.format(Renderer.java:51) at com.google.appengine.tools.appstats.Renderer.renderSummaries(Renderer.java: 66) at com.google.appengine.tools.appstats.AppstatsServlet.doGet(AppstatsServlet.java: 99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java: 92) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) 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 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Anyone have any idea why? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] bouncycastle add provider failure
Hi, I have tried to add the bouncycastle JCE provider in the code, it works in Eclipse jetty server, but failed on GAE. I wonder if it's because my coding mistake or 'Security.addProvider' is forbidden by GAE. the stack trace is here: 03-27 01:31AM 01.275 javax.servlet.ServletContext log: unavailable java.lang.SecurityException: SHA1 digest error for org/bouncycastle/ jce/provider/BouncyCastleProvider.class at com.google.appengine.runtime.Request.process-4b6192778bef5418(Request.java) at sun.security.util.ManifestEntryVerifier.verify(Unknown Source) at java.util.jar.JarVerifier.processEntry(Unknown Source) at java.util.jar.JarVerifier.update(Unknown Source) at java.util.jar.JarVerifier$VerifierStream.read(Unknown Source) at sun.misc.Resource.getBytes(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java: 428) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java: 263) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java: 685) at org.mortbay.jetty.servlet.Context.startContext(Context.java:140) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java: 1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java: 517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java: 467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: 191) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java: 168) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 123) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 103) at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java: 251) at com.google.apphosting.runtime.JavaRuntime $RpcRunnable.run(JavaRuntime.java:404) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] allowMultipleRelationsOfSameType = true
I have upgraded to AE SDK 1.3.2, and am still having problems retrieving a class that contains multiple properties of the same type, i.e. class A { class B x; class B y; } With the allowMultipleRelationsOfSameType= true, the persistence is OK, but the retrieve returns duplicate value for properties of the same type (even though it was saved with different values for x y). Is there a fix planned for this? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Unable to read file in Classpath
My app has a configuration file which I place in the classpath and read using commons-configuration's XMLConfiguration class... XmlConfiguration config = new XmlConfiguration(config.xml); Before I started porting my app to app engine, this worked fine. But now I get this an exception (below). If I move the file to the War folder it finds it and parses it ok. But the root of the war is not where I want my config files to be!! Caused by: java.security.AccessControlException: access denied (java.io.FilePermission C:\Users\Eurig\config.xml read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java: 323) at java.security.AccessController.checkPermission(AccessController.java: 546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:731) at org.apache.commons.configuration.ConfigurationUtils.locate(ConfigurationUtils.java: 538) at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java: 213) ... 39 more -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Best way to manage your live JDO database?
Hey all, Just out of curiousity, how do you guys manage your live dbs? for your development servers you obviously have the _ah/admin section, but what do you use live? Best, George -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: log4j init fails
I'm getting the same problem. my log4j.properties is in the root of my source folder and it's giving me this issue. On Mar 12, 10:25 pm, Rajeev Dayal rda...@google.com wrote: Can you post a copy of your log4j.properties file? On Thu, Mar 11, 2010 at 12:45 PM, AJ Chen ajc...@web2express.org wrote: yes, log4j.properties is copied by the build. the app uses it. the warning message is weird. thanks. On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal rda...@google.com wrote: If you have your log4j.properties file at the root of your source tree, it should automatically be copied over to war/WEB-INF/classes whenever Eclipse performs a build of your project; you should not have to copy it over manually. I'm not sure why you're getting the error with regard to Datanucleus.Connection; I've added Don to this thread; he may have some insight into this. On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen ajc...@web2express.org wrote: I have the default log4j.properties in WEB-INF/classes dir. but the warning always comes up. the file is visible because I can change the log level to ERROR to get rid of the warning. -aj On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright rwright.li...@gmail.comwrote: I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it. Log4j looks for its configuration file on the classpath which means it looks in WEB-INF/classes (and also in all of the jars in the lib directory). AJ Chen wrote: I have log4j config in appengine-web.xml, system-properties property name=java.util.logging.config.file value=WEB-INF/logging.properties/ property name=log4j.configuration value=file:WEB-INF/classes/log4j.properties/ property name=monitor.config.file value=WEB-INF/monitor.properties/ /system-properties but GAE still complains about it: log4j:WARN No appenders could be found for logger (DataNucleus.Connection). log4j:WARN Please initialize the log4j system properly. Is there anything else that should be set? thanks, -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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 0x2B | ~0x2b -- Hamlet -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org twitter @web2express Palo Alto, CA, USA 650-283-4091 *Building social media monitoring pipeline, and connecting social customers to CRM* -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org twitter @web2express Palo Alto, CA, USA 650-283-4091 *Building social media monitoring pipeline, and connecting social customers to CRM* -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups
[appengine-java] Re: Blobstore UploadBlobServlet.java NPE
I have the same problem. It does not matter the url to the servlet i use to work with de keys of the blobs, i always have the same NPC. Any help about what we are doing wrong ? Thanks On 11 feb, 21:21, Stevko andy.ste...@gmail.com wrote: I'm trying to post files into theblobstoreon my dev station using eclipse. The _BlobInfo_ objects are appearing within the datastore viewer but this exception keep getting thrown for the first time I post the form. Is there anyone with access to UploadBlobServlet.java that can point me to why I'm getting a NPE? --Andy.Stevko Feb 11, 2010 8:06:43 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /_ah/upload/ ag5uaW51a3VtZW1vcmllc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGIYIDA java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa dBlobServlet.java: 365) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access $000(UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet $1.run(UploadBlobServlet.java:100) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS ervlet.java: 98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocat ion.java: 67) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipel ine.java: 122) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 110) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 121) 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(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) 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.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] JPA query contains stale data.
Hello. I'm using JPA for the App Engine datastore. And I've got some problems. I've got an entity Container than contains entities Item(s). Here is my actions. I start transaction then update entity then flush updates to database. Then I get all entities of class Item(s) for a container which contains my updated Item. But the list of retrieved items contains Item that does not have my changes. What is wrong with my code??? I've modelled this problem. (see code) @Entity public class Container implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @OneToMany(mappedBy = container, fetch = FetchType.LAZY) private ListItem items = new ArrayListItem(); public void setKey(Key key) { this.key = key; } public Key getKey() { return key; } public void setItems(ListItem items) { this.items = items; } public ListItem getItems() { return items; } } @Entity public class Item implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key key; @ManyToOne(fetch = FetchType.LAZY) private Container container; @Column private String value; public void setKey(Key key) { this.key = key; } public Key getKey() { return key; } public void setContainer(Container container) { this.container = container; } public Container getContainer() { return container; } public void setValue(String value) { this.value = value; } public String getValue() { return value; } @Override public String toString() { return Item [key= + key + , value= + value + ]; } } @Service(TestLocalService) public class LocalService { protected final Log logger = LogFactory.getLog(getClass()); public Key createContainer() { em.getTransaction().begin(); Container container = new Container(); em.persist(container); em.flush(); logger.fatal(new container + container.getKey()); em.getTransaction().commit(); return container.getKey(); } public Key generateItems(Key containerKey) { em.getTransaction().begin(); Container container = em.find(Container.class, containerKey); Key key = null; for (int i = 0; i 5; i++) { Item item = new Item(); item.setContainer(container); item.setValue(Integer.toString(i)); em.persist(item); em.flush(); key = item.getKey(); logger.fatal(new item + item); } em.getTransaction().commit(); return key; } public void changeItems(Key containerKey, Key itemKey) { em.getTransaction().begin(); Container container = em.find(Container.class, containerKey); Item changedItem = em.find(Item.class, itemKey); changedItem.setValue(xxx); // --- PROBLEM HERE em.flush(); logger.fatal(changed item: + changedItem); for (Item item : container.getItems()) { logger.fatal(list item: + item); // --- PROBLEM HERE (Item contains a stale value of the field value) } em.getTransaction().commit(); } public static void testListSync(LocalService service) { // MAIN TEST Key containerKey = service.createContainer(); Key itemKey = service.generateItems(containerKey); service.changeItems(containerKey, itemKey); } } EXECUTION LOG ### CALL createContainer datastore_v3.BeginTransaction datastore_v3.Put datastore_v3.Commit ## LOG createContainer SEVERE: new containerContainer(684) 27.03.2010 6:16:17 ru.englishvocabulary.bl.local.test.LocalService generateItems ### CALL generateItems datastore_v3.BeginTransaction datastore_v3.Get datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Put datastore_v3.Commit ### LOG generateItems SEVERE: new itemItem [key=Container(684)/Item(685), value=0] 27.03.2010 6:16:17 ru.englishvocabulary.bl.local.test.LocalService generateItems SEVERE: new itemItem [key=Container(684)/Item(686), value=1] 27.03.2010 6:16:17
[appengine-java] Re: Timeout using GData API
The same issue here. Has someone found a solution so far? On Mar 26, 3:55 am, Shinichiroh Takezaki [Virtual Technology] stakez...@gmail.com wrote: Hi I made a patch that the GData API library to execute asynchronously. see:http://code.google.com/p/reflexworks/source/browse/trunk/gdataclientp... source:http://code.google.com/p/reflexworks/source/browse/#svn/trunk/gdatacl... Takezaki 2010/3/19 Alexandru Farcas alexfarca...@gmail.com i have the same problem ... in some cases, for some searches I get this error and is very annoying because I can not increase the timeout ... It's very urgent to me ... so, if anyone can help me/us to resolve this problem... On Mar 18, 1:25 pm, Ice13ill andrei.fifi...@gmail.com wrote: Everybody says that using the setConntectionTimeout() can set the maximum timeout to 10 seconds. I also tried setting service.setConnectionTimeout() (witch sets the timeout for the HttpUrlConnectiion object used to fetch data) but with no effect (contrary to what it says here: http://code.google.com/appengine/docs/java/urlfetch/overview.html#Req...). I have read somewhere that this pb was fixed in an early release but it doesn't appear so. Can anyone help ? On Jan 20, 7:42 am, smile laugh uni...@gmail.com wrote: I also get same error is there someone can help me out -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- _/ 有限会社バーチャルテクノロジー 竹嵜 伸一郎 _/ Virtual Technology, Ready to Cloud _/http://www.virtual-tech.net/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Objectify - Twig - SimpleDS articles
Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I found out about 5 other frameworks as well (Twig, SimpleDS, siena, slim3, cloud2db). I was only interested in simple wrapper frameworks that acted as a convenience layer above the AppEngine low-level API. I _want_ the framework to expose the true nature of the datastore, but at the same time relieve the developer of the tedious tasks that's involved when working with the low-level API directly. It is much easier to work with the AppEngine datastore when its concepts, features, constraints and limitations are exposed directly. You can read more about the reasons for this in the article. This left me with objectify, Twig and SimpleDS. (siena and cloud2db are multi-platform and slim3 is more than just a datastore framework) I spent some time researching these when I got the idea to write an article about them. I contacted the authors for each framework and asked if they would be interested in participating. Passionate as they are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John Patterson (Twig) and Ignacio Coloma (SimpleDS) for this. The goal is to publish two articles; one interview with the authors, and one where I solve some typical scenario with each framework. The interview article has now been published and can be found at http://borglin.net/gwt-project/?page_id=604 . The code example article will be posted sometime in the upcoming two weeks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Problem with AppStats
Hi, I tried. After successfully running the following was added to the web.xml. servlet servlet-nameappstats/servlet-name servlet-classcom.google.appengine.tools.appstats.AppstatsServlet/servlet-class /servlet servlet-mapping servlet-nameappstats/servlet-name url-pattern/appstats/*/url-pattern /servlet-mapping security-constraint web-resource-collection url-pattern/appstats/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint filter filter-nameappstats/filter-name filter-classcom.google.appengine.tools.appstats.AppstatsFilter/filter-class init-param param-namelogMessage/param-name param-valueAppstats available: /appstats/details?time={ID}/param-value /init-param /filter filter-mapping filter-nameappstats/filter-name url-pattern/*/url-pattern /filter-mapping I think that I should confirm the environment such as jar files when there is no difference compared with your web.xml . please try. thanks. 2010/3/27 George Tang george.tang...@gmail.com: Hey Everyone, I just downloaded the new SDK and i was excited to use app stats. After following the instructions to set it up, I tried testing it on my localdev server and I got a nullpointerexception WARNING: /appstats/stats java.lang.NullPointerException at java.io.Reader.init(Reader.java:61) at java.io.InputStreamReader.init(InputStreamReader.java:80) at com.google.appengine.tools.appstats.TemplateTool.loadTemplateSource(TemplateTool.java: 115) at com.google.appengine.tools.appstats.Renderer $1.loadTemplateSource(Renderer.java:41) at com.google.appengine.tools.appstats.TemplateTool.getTemplate(TemplateTool.java: 142) at com.google.appengine.tools.appstats.TemplateTool.format(TemplateTool.java: 100) at com.google.appengine.tools.appstats.Renderer $1.format(Renderer.java:51) at com.google.appengine.tools.appstats.Renderer.renderSummaries(Renderer.java: 66) at com.google.appengine.tools.appstats.AppstatsServlet.doGet(AppstatsServlet.java: 99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java: 92) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) 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 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:349) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Anyone have any idea why? -- You received this
Re: [appengine-java] Re: Blobstore UploadBlobServlet.java NPE
h, We have the following code in the upload servlet: public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { BlobInfo info = new BlobInfoFactory().loadBlobInfo(blobstoreService.getUploadedBlobs(req).get(uploader)); // uploader is the name of the input type=file .. //Then we use the persistence manager to store the key //info.getBlobKey() .. info.getSize() .. //Then redirect to a new servlet to send json to the form complete handler } 2010/3/27 Miguel miguel.alex.cre...@gmail.com I have the same problem. It does not matter the url to the servlet i use to work with de keys of the blobs, i always have the same NPC. Any help about what we are doing wrong ? Thanks On 11 feb, 21:21, Stevko andy.ste...@gmail.com wrote: I'm trying to post files into theblobstoreon my dev station using eclipse. The _BlobInfo_ objects are appearing within the datastore viewer but this exception keep getting thrown for the first time I post the form. Is there anyone with access to UploadBlobServlet.java that can point me to why I'm getting a NPE? --Andy.Stevko Feb 11, 2010 8:06:43 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /_ah/upload/ ag5uaW51a3VtZW1vcmllc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGIYIDA java.lang.NullPointerException at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(Uploa dBlobServlet.java: 365) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access $000(UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet $1.run(UploadBlobServlet.java:100) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobS ervlet.java: 98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocat ion.java: 67) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipel ine.java: 122) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java: 110) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 51) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 121) 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(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:352) 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.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) 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) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group,
Re: [appengine-java] bouncycastle add provider failure
[ZaeX] I have tried to add the bouncycastle JCE provider in the code, it works in Eclipse jetty server, but failed on GAE. I wonder if it's because my coding mistake or 'Security.addProvider' is forbidden by GAE. It is currently not possible to add security providers to appengine. Add support for BouncyCastle JCE provider http://code.google.com/p/googleappengine/issues/detail?id=1612 Alan. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Timeout using GData API
FYI, I appended messages to this issue ( http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to describe my case. Surprisingly, this issue claims to be fixed on Sep 03, 2009?! On Mar 29, 2:21 pm, Kenyth ken...@gmail.com wrote: The same issue here. Has someone found a solution so far? On Mar 26, 3:55 am, Shinichiroh Takezaki [Virtual Technology] stakez...@gmail.com wrote: Hi I made a patch that the GData API library to execute asynchronously. see:http://code.google.com/p/reflexworks/source/browse/trunk/gdataclientp... source:http://code.google.com/p/reflexworks/source/browse/#svn/trunk/gdatacl... Takezaki 2010/3/19 Alexandru Farcas alexfarca...@gmail.com i have the same problem ... in some cases, for some searches I get this error and is very annoying because I can not increase the timeout ... It's very urgent to me ... so, if anyone can help me/us to resolve this problem... On Mar 18, 1:25 pm, Ice13ill andrei.fifi...@gmail.com wrote: Everybody says that using the setConntectionTimeout() can set the maximum timeout to 10 seconds. I also tried setting service.setConnectionTimeout() (witch sets the timeout for the HttpUrlConnectiion object used to fetch data) but with no effect (contrary to what it says here: http://code.google.com/appengine/docs/java/urlfetch/overview.html#Req...). I have read somewhere that this pb was fixed in an early release but it doesn't appear so. Can anyone help ? On Jan 20, 7:42 am, smile laugh uni...@gmail.com wrote: I also get same error is there someone can help me out -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- _/ 有限会社バーチャルテクノロジー 竹嵜 伸一郎 _/ Virtual Technology, Ready to Cloud _/http://www.virtual-tech.net/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Timeout using GData API
I noticed that too... I'll try async fetch... Hope it works... 2010/3/29 Kenyth ken...@gmail.com FYI, I appended messages to this issue ( http://code.google.com/p/googleappengine/issues/detail?id=1559 ) to describe my case. Surprisingly, this issue claims to be fixed on Sep 03, 2009?! On Mar 29, 2:21 pm, Kenyth ken...@gmail.com wrote: The same issue here. Has someone found a solution so far? On Mar 26, 3:55 am, Shinichiroh Takezaki [Virtual Technology] stakez...@gmail.com wrote: Hi I made a patch that the GData API library to execute asynchronously. see: http://code.google.com/p/reflexworks/source/browse/trunk/gdataclientp... source: http://code.google.com/p/reflexworks/source/browse/#svn/trunk/gdatacl... Takezaki 2010/3/19 Alexandru Farcas alexfarca...@gmail.com i have the same problem ... in some cases, for some searches I get this error and is very annoying because I can not increase the timeout ... It's very urgent to me ... so, if anyone can help me/us to resolve this problem... On Mar 18, 1:25 pm, Ice13ill andrei.fifi...@gmail.com wrote: Everybody says that using the setConntectionTimeout() can set the maximum timeout to 10 seconds. I also tried setting service.setConnectionTimeout() (witch sets the timeout for the HttpUrlConnectiion object used to fetch data) but with no effect (contrary to what it says here: http://code.google.com/appengine/docs/java/urlfetch/overview.html#Req...). I have read somewhere that this pb was fixed in an early release but it doesn't appear so. Can anyone help ? On Jan 20, 7:42 am, smile laugh uni...@gmail.com wrote: I also get same error is there someone can help me out -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- _/ 有限会社バーチャルテクノロジー 竹嵜 伸一郎 _/ Virtual Technology, Ready to Cloud _/http://www.virtual-tech.net/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Workaround for Spring transactions throw GenericSignatureFormatError
Hey, Thomas, Thanks very much for working on this! I think a lot of people want Spring transactions to work in GAE. What does your fix do? Or why does it work? It looks like you're just creating a proxy that passes the invocation along. For example, my jdo-context.xml is below. Is your new bean tied to a transaction manager somehow like the one below? Does having the proxy prevent the AOP engine from throwing the exception? Thanks! ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:p=http:// www.springframework.org/schema/p xmlns:aop=http://www.springframework.org/schema/aop; xmlns:context=http://www.springframework.org/schema/context; xmlns:jee=http://www.springframework.org/schema/jee; xmlns:tx=http://www.springframework.org/schema/tx; xsi:schemaLocation= http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd; bean id=persistenceManagerFactory class=org.springframework.orm.jdo.LocalPersistenceManagerFactoryBean property name=persistenceManagerFactoryName value=transactions- optional / /bean bean id=persistenceManagerFactoryProxy class=org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy property name=targetPersistenceManagerFactory ref=persistenceManagerFactory / property name=allowCreate value=false / /bean bean id=transactionManager class=org.springframework.orm.jdo.JdoTransactionManager property name=persistenceManagerFactory ref=persistenceManagerFactory / /bean /beans On Mar 28, 11:10 pm, Thomas mylee...@gmail.com wrote: Please refer tohttp://code.google.com/p/googleappengine/issues/detail?id=1381 comment #20 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How to get IP address of Appengine running my java servlet page
I am trying to get a sense of where (location) the Appengine is running my servlet to show how the cloud runs my servlet in different locations. I have tried to use request.getLocalAddr() but get back null. I tried getServletContext().getServerInfo() but did not get back an IP address. Any ideas? Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: AuthSub InvalidToken problem
Come on! Anyone, anything? Thanks. On Mar 26, 12:54 pm, nicanor.babula nicanor.bab...@gmail.com wrote: Hi all, I am facing a strange problem in with my app in GAE and I can't seem to figure it up by myself, so I hope you'll help me.. Here we are: I do : [code] String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, http://www.google.com/calendar/feeds/default/private/full;, false, true); response.sendRedirect(authSubUrl); [/code] in my servlet in order to get an auth subtoken. And the servlet at nextUrl does: [code] String oneTimeUseToken = AuthSubUtil.getTokenFromReply(request.getQueryString()); if(oneTimeUseToken != null){ String sessionToken = AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null); // persist the sessiontoken} // redirect to the page using google services [/code] in order to retrieve and persist the sessiontokenalong with other user information. The problem is that when later I do: [code] URL feedUrl = new URL(http://www.google.com/calendar/feeds/default/ private/full); CalendarQuery myQuery = new CalendarQuery(feedUrl); CalendarService calendarService = new CalendarService(some-app- name); calendarService.setAuthSubToken(currentUser.authSubToken, null); CalendarEventFeed resultFeed = calendarService.query(myQuery, CalendarEventFeed.class); [/code] It says that thetokenisinvalid, and raises this exception: [code] cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev: null com.google.gdata.util.AuthenticationException: OK HTML HEAD TITLETokeninvalid-InvalidAuthSubtoken./TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Tokeninvalid-InvalidAuthSubtoken./H1 H2Error 401/H2 /BODY /HTML at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData Request.java: 596) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG DataRequest.java: 563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques t.java: 550) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java : 530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. java: 535) at com.google.gdata.client.Service.getFeed(Service.java:1102) at com.google.gdata.client.Service.getFeed(Service.java:1044) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java: 662) at com.google.gdata.client.Service.query(Service.java:1204) at com.google.gdata.client.Service.query(Service.java:1145) at cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE ventsServiceImpl.java: 133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_ $1.run(Method_.java:165) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.privilegedInvoke(Method_.java: 163) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke_(Method_.java: 124) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke(Method_.java: 43) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 188) at cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java : 12) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo bUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF ilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43)
Re: [appengine-java] Re: log4j init fails
Can you provide the contents of the file? On Sat, Mar 27, 2010 at 11:44 AM, Eurig Jones eurigjo...@gmail.com wrote: I'm getting the same problem. my log4j.properties is in the root of my source folder and it's giving me this issue. On Mar 12, 10:25 pm, Rajeev Dayal rda...@google.com wrote: Can you post a copy of your log4j.properties file? On Thu, Mar 11, 2010 at 12:45 PM, AJ Chen ajc...@web2express.org wrote: yes, log4j.properties is copied by the build. the app uses it. the warning message is weird. thanks. On Thu, Mar 11, 2010 at 8:10 AM, Rajeev Dayal rda...@google.com wrote: If you have your log4j.properties file at the root of your source tree, it should automatically be copied over to war/WEB-INF/classes whenever Eclipse performs a build of your project; you should not have to copy it over manually. I'm not sure why you're getting the error with regard to Datanucleus.Connection; I've added Don to this thread; he may have some insight into this. On Thu, Mar 11, 2010 at 3:33 AM, AJ Chen ajc...@web2express.org wrote: I have the default log4j.properties in WEB-INF/classes dir. but the warning always comes up. the file is visible because I can change the log level to ERROR to get rid of the warning. -aj On Fri, Feb 19, 2010 at 7:24 PM, Rusty Wright rwright.li...@gmail.comwrote: I think you can simply put the log4j.properties file in the WEB-INF/classes dir and you don't need any appengine-web.xml stuff for it. Log4j looks for its configuration file on the classpath which means it looks in WEB-INF/classes (and also in all of the jars in the lib directory). AJ Chen wrote: I have log4j config in appengine-web.xml, system-properties property name=java.util.logging.config.file value=WEB-INF/logging.properties/ property name=log4j.configuration value=file:WEB-INF/classes/log4j.properties/ property name=monitor.config.file value=WEB-INF/monitor.properties/ /system-properties but GAE still complains about it: log4j:WARN No appenders could be found for logger (DataNucleus.Connection). log4j:WARN Please initialize the log4j system properly. Is there anything else that should be set? thanks, -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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- 0x2B | ~0x2b -- Hamlet -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org twitter @web2express Palo Alto, CA, USA 650-283-4091 *Building social media monitoring pipeline, and connecting social customers to CRM* -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org
Re: [appengine-java] Update to GAE/J 1.3.2 - Project in Eclipse broken
Hi, Could you try a few things: - What happens when you right-click your project, and select Run As Web Application? Does the Console come to focus? What does it say? - Could you create a new Web Application project (using GAE 1.3.2) and try Run As Web Application on it? Does this work? - I may have misunderstood when you said dumps stack traces, but if there are stack traces, could you include them in your reply? Thanks jason On Sun, Mar 28, 2010 at 10:07 PM, Joa joachim.pfeif...@gmail.com wrote: I've tried to update GAE to 1.3.2. Now the project is broken and I seem to be not even able to revert back to 1.3.1. I've taken the following steps: - Trying to locate instructions. Couldn't find any, so this must be simple... - Updated Google plugin through Help - Check for updates. Checks out - Then downloaded GAE 1.3.2 for Java, unzip - Set Project Properties using Google App Engine. Use specific SDK set to 1.3.2. Now the project root in the Eclipse Package Explorer is marked with an error. The project won't start any longer without an error message and dumps stack traces. To my dismay, any changes in this panel do not seem to have an impact whatsoever now. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Update to GAE/J 1.3.2 - Project in Eclipse broken
Hi Moritz, Could you try the following: - In your project properties, could you see what the App Engine SDK is set to (right-click project Properties Google App Engine). Does it show an error on this page? If you click the Configure SDKs button, what is the path for the SDK? - In your project properties, can you go to Java Build Path , then Libraries tab, and see if there are any leftover JARs on your classpath? If there are, could you take a screenshot of that dialog (hopefully tall enough so all the entries are visible)? Thanks, jason On Mon, Mar 29, 2010 at 1:53 AM, Moritz mor...@cloudme.org wrote: I have the same problem: The App Engine SDK '/{project-root}/war' on the project's build path is not valid where {project-root} is the root directory of my project. When I create a new project, this error does not occur, but I cannot spot any differences in the configuration files of both projects, so I'm a bit stuck at the moment. On 29 Mrz., 04:07, Joa joachim.pfeif...@gmail.com wrote: I've tried to update GAE to 1.3.2. Now the project is broken and I seem to be not even able to revert back to 1.3.1. I've taken the following steps: - Trying to locate instructions. Couldn't find any, so this must be simple... - Updated Google plugin through Help - Check for updates. Checks out - Then downloaded GAE 1.3.2 for Java, unzip - Set Project Properties using Google App Engine. Use specific SDK set to 1.3.2. Now the project root in the Eclipse Package Explorer is marked with an error. The project won't start any longer without an error message and dumps stack traces. To my dismay, any changes in this panel do not seem to have an impact whatsoever now. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] JDO java cascade unidirectional mapping problem
What steps will reproduce the problem? @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Patient { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key patientID; @Persistent private String patientName; @ForeignKey @Persistent private Genders genderID; @Persistent private Date patientBirthDate; } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Genders { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key genderID; @Persistent private String genderText; } What is the expected output? What do you see instead? I use this code: Patient patient = new Patient(someName, pm.getObjectById( Genders.class, 7), new Date(), new ); And i got this exception: Detected attempt to establish Patient(420) as the parent of Genders(7) but the entity identified by Genders(7) has already been persisted without a parent. A parent cannot be established or changed once an object has been persisted. What version of the product are you using? On what operating system? Eclipse Please provide any additional information below. Please help to solve this problem -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to get IP address of Appengine running my java servlet page
Hi, check out class java.lang.System: you can get various system properties. didier On Mar 29, 4:30 pm, powell...@gmail.com powell...@gmail.com wrote: I am trying to get a sense of where (location) the Appengine is running my servlet to show how the cloud runs my servlet in different locations. I have tried to use request.getLocalAddr() but get back null. I tried getServletContext().getServerInfo() but did not get back an IP address. Any ideas? Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Objectify - Twig - SimpleDS articles
+1 On Mar 29, 4:03 am, Andreas Borglin andreas.borg...@gmail.com wrote: Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I found out about 5 other frameworks as well (Twig, SimpleDS, siena, slim3, cloud2db). I was only interested in simple wrapper frameworks that acted as a convenience layer above the AppEngine low-level API. I _want_ the framework to expose the true nature of the datastore, but at the same time relieve the developer of the tedious tasks that's involved when working with the low-level API directly. It is much easier to work with the AppEngine datastore when its concepts, features, constraints and limitations are exposed directly. You can read more about the reasons for this in the article. This left me with objectify, Twig and SimpleDS. (siena and cloud2db are multi-platform and slim3 is more than just a datastore framework) I spent some time researching these when I got the idea to write an article about them. I contacted the authors for each framework and asked if they would be interested in participating. Passionate as they are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John Patterson (Twig) and Ignacio Coloma (SimpleDS) for this. The goal is to publish two articles; one interview with the authors, and one where I solve some typical scenario with each framework. The interview article has now been published and can be found athttp://borglin.net/gwt-project/?page_id=604. The code example article will be posted sometime in the upcoming two weeks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] error when trying to run gae/j app - Usage: dev-appserver [options] war directory
getting this message when trying to run my gae/j app in Eclipse: Usage: dev-appserver [options] war directory Options: --help, -h Show this help message and exit. --server=SERVERThe server to use to determine the latest -s SERVER SDK version. --address=ADDRESS The address of the interface on the local machine -a ADDRESS to bind to (or 0.0.0.0 for all interfaces). --port=PORTThe port number to bind to on the local machine. -p PORT --sdk_root=rootOverrides where the SDK is located. --disable_update_check Disable the check for newer SDK versions. I was experimenting with implementing gwt in my gae/j app but decided not to pursue that path further. Now, I'm just trying to run the app and have the use gwt settings unchecked but am still getting this error. I'm using Eclipse 3.4.1 and gae/j 1.3.1 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to get IP address of Appengine running my java servlet page
It seems quite unlikely that GAE appservers are going to have public IP addresses. Even if you can get the IP address of the host (and I suspect this is impossible), it's going to be a private address. The best you will probably be able to do is get the NATed apparent address of the URLFetch servers. Make a URLFetch request to a server you run somewhere and check the source IP address in the logs. This isn't necessarily a good piece of data, though. For one, this is simply going to be an outbound public IP. The request could have been routed around the world through Google's private network before it found an outbound node. For another, it's going to come from the URLFetch service... and there is no guarantee that the URLFetch server is the same box (or even located anywhere near) the box your app runs on. It's an opaque system - deliberately so. Jeff On Mon, Mar 29, 2010 at 9:43 AM, Didier Durand durand.did...@gmail.com wrote: Hi, check out class java.lang.System: you can get various system properties. didier On Mar 29, 4:30 pm, powell...@gmail.com powell...@gmail.com wrote: I am trying to get a sense of where (location) the Appengine is running my servlet to show how the cloud runs my servlet in different locations. I have tried to use request.getLocalAddr() but get back null. I tried getServletContext().getServerInfo() but did not get back an IP address. Any ideas? Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Why should app startup times be a problem.
Hah, Blake, guess you caught us! We might be doing more stuff with that in addition to what went out with 1.3.2. On Fri, Mar 26, 2010 at 6:50 PM, Blake blakecaldw...@gmail.com wrote: Ikai - that's awesome - great to see you guys listening to us. Is that doc already outdated? Didn't you just release this? Ability to select different availability vs. latency options for Datastore On Mar 26, 1:42 pm, Ikai L (Google) ika...@google.com wrote: Keeping reserved instances has been added to our public roadmap: http://code.google.com/appengine/docs/roadmap.html http://code.google.com/appengine/docs/roadmap.htmlAs far as spinning up additional instances, there are probably a few good solutions here. We'll be best off collecting feedback when we ship reserved instances on which solution works best. On Fri, Mar 26, 2010 at 10:38 AM, gholler georgehol...@gmail.com wrote: Thanks for your replies. I think we would want an option to pay to keep at least one instance warm and ready to go at any time (I don't know what makes sense for a fee though). And as Guillermo says, that won't help us as new instances are needed to scale. There could be a fee for paying accounts to get those special startup requests, and I also don't know what makes sense for a fee there. It would also need to be able to handle more than 30 seconds, ideally it could be a task that keeps gettings called until it returns a 200-299 status. The url for the task could be specified in the appengine-web.xml. G -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp:// googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Error message after updating AppEngine in my project
Not sure why this should be happening as the deploy script should be ignoring this, but is it possible for you to do an svn export to another directory prior to a deploy? On Sat, Mar 27, 2010 at 5:10 AM, Fux ufi...@gmail.com wrote: com.google.appengine.tools.info.LocalVersionFactory getVersion INFO: Could not find API version from C:\Documents and Settings \myproject\war\WEB-INF\lib\.svn java.io.FileNotFoundException: C:\Documents and Settings\myproject\war \WEB-INF\lib\.svn (Access Denied) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:114) at java.util.jar.JarFile.init(JarFile.java:133) at java.util.jar.JarFile.init(JarFile.java:97) at com.google.appengine.tools.util.ApiVersionFinder.findApiVersion(ApiVersionFinder.java: 37) at com.google.appengine.tools.info.LocalVersionFactory.getVersion(LocalVersionFactory.java: 65) at com.google.appengine.tools.info.UpdateCheck.getLocalVersion(UpdateCheck.java: 112) at com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java: 91) at com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java: 164) at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java: 132) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:150) at com.google.appengine.tools.util.Parser $ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java: 113) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java: 89) No error is shown If I delete the folder: C:\Documents and Settings \myproject\war\WEB-INF\lib\.svn But if I remove that folder I get rid of the SVN bindings! Anyone can help please? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] I was reading the objectify wiki and the have the best short explanation of the datastore i ever read. Here the link
I like that in one of the first sentences, Jeff says The datastore is not an RDBMS! It is like a giant HashMap! You can really see that developers tend to get stuck on the relational model. Sometimes I will say table or column accidentally myself in these groups. On Sat, Mar 27, 2010 at 7:11 AM, nicolas melendez nfmelen...@gmail.comwrote: link : http://code.google.com/p/objectify-appengine/wiki/Concepts#Entities NM -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Looking to brush-up on my Java
Having *not* done JEE in a while may actually be a boon, as you would have had to unlearn a few concepts coming from a relational persistence, stateful servlets world to one that is not. If you work your way through the tutorial and App Engine documentation, your prior Java experience should be more than enough to start building, so as long as you don't try to jump in and use frameworks you aren't familiar with from the get-go. As far as specific App Engine questions go: search the groups and StackOverflow, and if you don't find your answer you can always ask. On Sat, Mar 27, 2010 at 9:14 PM, aeshanw aesh...@gmail.com wrote: Its been a very long time since I used J2EE. been doing web dev in LAMP for the past couple of years. Im looking to get back in the game. Can anyone reccommend a good book on Java development for the AppEngine? I'm looking to get a good background on the Platform, which should help me better understand the debug messages Im getting on my app. Any suggestions? Thanks alot! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Charging Application Users for Data Storage
There's no native API for this. You'll have to track this in your application. On Sun, Mar 28, 2010 at 8:41 AM, Gareth Davies womble.abr...@gmail.comwrote: I am currently working on my first Java application for Google App Engine. It would allow users to record discrete amounts of data (recorded with an Android application) by posting to a service (currently XML over HTTP). I have reviewed the Billing-related GAE documents and understand that after a certain threshold I would have to pay for additional storage space. In the (however unlikely!) event that my app becomes popular and this threshold is significantly exceeded I would like to pass on the cost by charging users based on how much data they store. I had hoped that there would be existing facilities within the Google platform (Apps, Checkout etc.) that would make this relatively easy to setup, at least from a technical standpoint. However, after searching this list and the wider web I have not found much relevant information. Are there any best practices/recommendations for how to go about this, or should I be looking for a solution independent of the Google App Engine plaform? Thanks, Gareth Davies -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] SSLSocket / SSLSocketFactory
I would like to send/provoke an apple iphone push from the Java App Engine. This is done via ssl. I have found a library that does exactly that, but it uses the class SSLSocket SSLSocketFactory which are not supported. Are there any alternatives, or any other ways to do this with the app engine api? I saw that ssl for third party domains is number one on the roadmap, but I am not sure if this will meet my requirements. thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Objectify - Twig - SimpleDS articles
One question: Why didn't you consider jiql? On Mon, Mar 29, 2010 at 1:04 PM, Blake blakecaldw...@gmail.com wrote: +1 On Mar 29, 4:03 am, Andreas Borglin andreas.borg...@gmail.com wrote: Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I found out about 5 other frameworks as well (Twig, SimpleDS, siena, slim3, cloud2db). I was only interested in simple wrapper frameworks that acted as a convenience layer above the AppEngine low-level API. I _want_ the framework to expose the true nature of the datastore, but at the same time relieve the developer of the tedious tasks that's involved when working with the low-level API directly. It is much easier to work with the AppEngine datastore when its concepts, features, constraints and limitations are exposed directly. You can read more about the reasons for this in the article. This left me with objectify, Twig and SimpleDS. (siena and cloud2db are multi-platform and slim3 is more than just a datastore framework) I spent some time researching these when I got the idea to write an article about them. I contacted the authors for each framework and asked if they would be interested in participating. Passionate as they are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John Patterson (Twig) and Ignacio Coloma (SimpleDS) for this. The goal is to publish two articles; one interview with the authors, and one where I solve some typical scenario with each framework. The interview article has now been published and can be found athttp:// borglin.net/gwt-project/?page_id=604. The code example article will be posted sometime in the upcoming two weeks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Saludos cordiales, Guillermo Schwarz Sun Certified Enterprise Architect -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Why should app startup times be a problem.
JohnJ, The way I see it, you just need to pay for one warmed instance. I've measured that one instance is enough to handle 30 requests per second. Trying to execute more requests than that immediatly triggers the loading of a new instance and so far some of the requests fail. Therefore, If you are using 1 instance in real traffic (max 30 requests per second), you only need another one when you reach 31 requests per second, so that new instance in theory would all you need warmed (unless you think you will jump from one instance to 3 instance from one second to the next). Assuming all requests end before one second, and assuming the time to load an instance to be kept warmed is a few seconds, you only need 1 warmed instance added to the instances you are actually using (which should be number of requests per second / 30). Did I make myself clear? Cheers, Guillermo. On Mon, Mar 29, 2010 at 1:58 PM, Ikai L (Google) ika...@google.com wrote: Hah, Blake, guess you caught us! We might be doing more stuff with that in addition to what went out with 1.3.2. On Fri, Mar 26, 2010 at 6:50 PM, Blake blakecaldw...@gmail.com wrote: Ikai - that's awesome - great to see you guys listening to us. Is that doc already outdated? Didn't you just release this? Ability to select different availability vs. latency options for Datastore On Mar 26, 1:42 pm, Ikai L (Google) ika...@google.com wrote: Keeping reserved instances has been added to our public roadmap: http://code.google.com/appengine/docs/roadmap.html http://code.google.com/appengine/docs/roadmap.htmlAs far as spinning up additional instances, there are probably a few good solutions here. We'll be best off collecting feedback when we ship reserved instances on which solution works best. On Fri, Mar 26, 2010 at 10:38 AM, gholler georgehol...@gmail.com wrote: Thanks for your replies. I think we would want an option to pay to keep at least one instance warm and ready to go at any time (I don't know what makes sense for a fee though). And as Guillermo says, that won't help us as new instances are needed to scale. There could be a fee for paying accounts to get those special startup requests, and I also don't know what makes sense for a fee there. It would also need to be able to handle more than 30 seconds, ideally it could be a task that keeps gettings called until it returns a 200-299 status. The url for the task could be specified in the appengine-web.xml. G -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp:// googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Saludos cordiales, Guillermo Schwarz Sun Certified Enterprise Architect -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Objectify - Twig - SimpleDS articles
Hi Guillermo. Well, it's hard to consider things that I didn't know existed :-). I was only aware of the six frameworks that I mentioned in the post. I'll take a look at it. On 29 mar, 20:52, Guillermo Schwarz guillermo.schw...@gmail.com wrote: One question: Why didn't you consider jiql? On Mon, Mar 29, 2010 at 1:04 PM, Blake blakecaldw...@gmail.com wrote: +1 On Mar 29, 4:03 am, Andreas Borglin andreas.borg...@gmail.com wrote: Hi all. I recently decided to migrate away from JDO to one of the third party datastore frameworks. At first I had only heard about objectify, but after some further digging I found out about 5 other frameworks as well (Twig, SimpleDS, siena, slim3, cloud2db). I was only interested in simple wrapper frameworks that acted as a convenience layer above the AppEngine low-level API. I _want_ the framework to expose the true nature of the datastore, but at the same time relieve the developer of the tedious tasks that's involved when working with the low-level API directly. It is much easier to work with the AppEngine datastore when its concepts, features, constraints and limitations are exposed directly. You can read more about the reasons for this in the article. This left me with objectify, Twig and SimpleDS. (siena and cloud2db are multi-platform and slim3 is more than just a datastore framework) I spent some time researching these when I got the idea to write an article about them. I contacted the authors for each framework and asked if they would be interested in participating. Passionate as they are, they agreed :-). Thanks to Jeff Schnitzer (objectify), John Patterson (Twig) and Ignacio Coloma (SimpleDS) for this. The goal is to publish two articles; one interview with the authors, and one where I solve some typical scenario with each framework. The interview article has now been published and can be found athttp:// borglin.net/gwt-project/?page_id=604. The code example article will be posted sometime in the upcoming two weeks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Saludos cordiales, Guillermo Schwarz Sun Certified Enterprise Architect -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: error when trying to run gae/j app - Usage: dev-appserver [options] war directory
This is what's in the .launch file for this app: ?xml version=1.0 encoding=UTF-8 standalone=no? launchConfiguration type=com.google.gdt.eclipse.suite.webapp stringAttribute key=com.google.gdt.eclipse.suiteMainTypeProcessor.PREVIOUSLY_SET_MAIN_TYPE_NAME value=com.google.appengine.tools.development.DevAppServerMain/ booleanAttribute key=com.google.gdt.eclipse.suiteWarArgumentProcessor.IS_WAR_FROM_PROJECT_PROPERTIES value=true/ listAttribute key=org.eclipse.debug.core.MAPPED_RESOURCE_PATHS listEntry value=/ZacksWebApps/ /listAttribute listAttribute key=org.eclipse.debug.core.MAPPED_RESOURCE_TYPES listEntry value=4/ /listAttribute listAttribute key=org.eclipse.debug.ui.favoriteGroups listEntry value=org.eclipse.debug.ui.launchGroup.debug/ listEntry value=org.eclipse.debug.ui.launchGroup.run/ /listAttribute stringAttribute key=org.eclipse.jdt.launching.CLASSPATH_PROVIDER value=com.google.gwt.eclipse.core.moduleClasspathProvider/ stringAttribute key=org.eclipse.jdt.launching.MAIN_TYPE value=com.google.appengine.tools.development.DevAppServerMain/ stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS value=--port= zwa.ZacksWebApps C:\eclipse\projects\ZacksWebApps \war/ stringAttribute key=org.eclipse.jdt.launching.PROJECT_ATTR value=ZacksWebApps/ stringAttribute key=org.eclipse.jdt.launching.VM_ARGUMENTS value=- javaagent:C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle. 1.3.1_1.3.1.v201002101412\appengine-java-sdk-1.3.1\lib\agent\appengine- agent.jar -Xmx512m/ stringAttribute key=org.eclipse.jdt.launching.WORKING_DIRECTORY value=/ZacksWebApps/war/ /launchConfiguration On Mar 29, 3:00 pm, Jason Parekh jasonpar...@gmail.com wrote: Hey Zack, Looks like the launch configuration got into a bad state. Before you proceed with the solution below, could you send us a copy of the .launch file for this launch configuration? That file will be in your WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches directory. The solution: You can safely delete the existing launch configuration (in Run Run configurations), close the dialog, and then try right-clicking on your project Run As Web Application. jason On Mon, Mar 29, 2010 at 1:06 PM, zackmac zack.macom...@gmail.com wrote: getting this message when trying to run my gae/j app in Eclipse: Usage: dev-appserver [options] war directory Options: --help, -h Show this help message and exit. --server=SERVER The server to use to determine the latest -s SERVER SDK version. --address=ADDRESS The address of the interface on the local machine -a ADDRESS to bind to (or 0.0.0.0 for all interfaces). --port=PORT The port number to bind to on the local machine. -p PORT --sdk_root=root Overrides where the SDK is located. --disable_update_check Disable the check for newer SDK versions. I was experimenting with implementing gwt in my gae/j app but decided not to pursue that path further. Now, I'm just trying to run the app and have the use gwt settings unchecked but am still getting this error. I'm using Eclipse 3.4.1 and gae/j 1.3.1 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: error when trying to run gae/j app - Usage: dev-appserver [options] war directory
Solution worked great - thanks! On Mar 29, 3:00 pm, Jason Parekh jasonpar...@gmail.com wrote: Hey Zack, Looks like the launch configuration got into a bad state. Before you proceed with the solution below, could you send us a copy of the .launch file for this launch configuration? That file will be in your WORKSPACE/.metadata/.plugins/org.eclipse.debug.core/.launches directory. The solution: You can safely delete the existing launch configuration (in Run Run configurations), close the dialog, and then try right-clicking on your project Run As Web Application. jason On Mon, Mar 29, 2010 at 1:06 PM, zackmac zack.macom...@gmail.com wrote: getting this message when trying to run my gae/j app in Eclipse: Usage: dev-appserver [options] war directory Options: --help, -h Show this help message and exit. --server=SERVER The server to use to determine the latest -s SERVER SDK version. --address=ADDRESS The address of the interface on the local machine -a ADDRESS to bind to (or 0.0.0.0 for all interfaces). --port=PORT The port number to bind to on the local machine. -p PORT --sdk_root=root Overrides where the SDK is located. --disable_update_check Disable the check for newer SDK versions. I was experimenting with implementing gwt in my gae/j app but decided not to pursue that path further. Now, I'm just trying to run the app and have the use gwt settings unchecked but am still getting this error. I'm using Eclipse 3.4.1 and gae/j 1.3.1 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Java Tasks
I have a simple Java task that simply checks to see if it needs to send an email email sent flag =N. It is taking in excess of 6604 milliseconds to execute. Are tasks executed with a much lower priority? When I moved my start time to15 minutes later I was a least able to get rid of the most of the HTTP 500 errors caused by exceeding the simultaneous dynamic request limit. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Why should app startup times be a problem.
Warmed instances make absolutely no sense on the GAE! It's supposed to be an invisible, infinite, platform without the notion of ram, cpu's, drives or instances - it goes completely against the heart and soul of the project. That just makes us an Amazon. It's boggled my mind from day 1 why instances aren't loaded in the background. I always assumed it would be addressed shortly - but instead we've decided to completely break the model. Why? I hate to over-simply, but it really doesn't seem like it's that difficult to make sure requests only go to ready/warm servers. I bet you could even solve 99% of the cases by simply waiting 3 minutes before serving a request. Of course, I still love the GAE :) Baz -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Contacts/Address Book App?
Here is the plan. I have a team of 100 people. 3 of those people would be administrators. (we are setup and using Google Apps and those 3 are setup in that system) I would like to collect the names, email address, cell phone numbers of the 100. In addition, for each meeting we have every month, I would like to track which of the 100 attendedthen be able to run reports on who attend what meetings...as well as print a roster of all 100. -Tom On Mar 29, 12:24 pm, Ikai L (Google) ika...@google.com wrote: What kind of Address Book are you writing? GData has a contacts API already you can take advantage of: http://code.google.com/apis/contacts/ On Sun, Mar 28, 2010 at 6:27 PM, iwas9409 t.lomb...@gmail.com wrote: Instead of writing a Contacts/Address Book App from scratch, is there a place I can go to find canned apps that I can tweak OR can someone send me anything to get me started? -Tom -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Error message after updating AppEngine in my project
Similar problem here. Upgraded to 1.3.2 error, switched back to 1.3.1 ... everything fine again. Mar 29, 2010 11:24:44 PM com.google.appengine.tools.info.LocalVersionFactory getVersion INFO: Could not find API version from ../project/war/WEB-INF/lib/.svn java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(ZipFile.java:114) at java.util.jar.JarFile.init(JarFile.java:133) at java.util.jar.JarFile.init(JarFile.java:97) at com.google.appengine.tools.util.ApiVersionFinder.findApiVersion(ApiVersionFinder.java: 37) at com.google.appengine.tools.info.LocalVersionFactory.getVersion(LocalVersionFactory.java: 65) at com.google.appengine.tools.info.UpdateCheck.getLocalVersion(UpdateCheck.java: 112) at com.google.appengine.tools.info.UpdateCheck.checkForUpdates(UpdateCheck.java: 91) at com.google.appengine.tools.info.UpdateCheck.doNagScreen(UpdateCheck.java: 164) at com.google.appengine.tools.info.UpdateCheck.maybePrintNagScreen(UpdateCheck.java: 132) at com.google.appengine.tools.development.DevAppServerMain $StartAction.apply(DevAppServerMain.java:150) at com.google.appengine.tools.util.Parser $ParseResult.applyArgs(Parser.java:48) at com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java: 113) at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java: 89) Mar 29, 2010 11:24:44 PM com.google.apphosting.utils.jetty.JettyLogger info INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Mar 29, 2010 11:24:44 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed ../project/war/WEB-INF/appengine-web.xml Mar 29, 2010 11:24:44 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml On Mar 29, 7:04 pm, Ikai L (Google) ika...@google.com wrote: Not sure why this should be happening as the deploy script should be ignoring this, but is it possible for you to do an svn export to another directory prior to a deploy? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Why should app startup times be a problem.
It's boggled my mind from day 1 why instances aren't loaded in the background. I always assumed it would be addressed What is difficult to understand? 1 server has X resources warmed instanced require Y resources X - YN = resources left over for the server to fulfill requests. By reducing N (the number of warmed instances), you can increase the capacity to fulfill actual requests. By allowing us to pay for our own N, Google can presumably increase the capacity of each server or can increase the number of servers. I can see how it can cost Google to have unused apps loaded and ready to immediately serve. Can't you. I don't see what the difficulty understanding is. Shawn -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: AuthSub InvalidToken problem
Hi, I was not able to have them reproduce behavior though I tried a little. (It was possible to execute it normally). Can post do you the source code further? I want to confirm behavior. Or, the environment might be a cause. thank. Come on! Anyone, anything? Thanks. On Mar 26, 12:54 pm, nicanor.babula nicanor.bab...@gmail.com wrote: Hi all, I am facing a strange problem in with my app in GAE and I can't seem to figure it up by myself, so I hope you'll help me.. Here we are: I do : [code] String authSubUrl = AuthSubUtil.getRequestUrl(nextUrl, http://www.google.com/calendar/feeds/default/private/full;, false, true); response.sendRedirect(authSubUrl); [/code] in my servlet in order to get an auth subtoken. And the servlet at nextUrl does: [code] String oneTimeUseToken = AuthSubUtil.getTokenFromReply(request.getQueryString()); if(oneTimeUseToken != null){ String sessionToken = AuthSubUtil.exchangeForSessionToken(oneTimeUseToken, null); // persist the sessiontoken} // redirect to the page using google services [/code] in order to retrieve and persist the sessiontokenalong with other user information. The problem is that when later I do: [code] URL feedUrl = new URL(http://www.google.com/calendar/feeds/default/ private/full); CalendarQuery myQuery = new CalendarQuery(feedUrl); CalendarService calendarService = new CalendarService(some-app- name); calendarService.setAuthSubToken(currentUser.authSubToken, null); CalendarEventFeed resultFeed = calendarService.query(myQuery, CalendarEventFeed.class); [/code] It says that thetokenisinvalid, and raises this exception: [code] cri.domodentweb.server.rpc.CalendarEventsServiceImpl getEventsDev: null com.google.gdata.util.AuthenticationException: OK HTML HEAD TITLETokeninvalid-InvalidAuthSubtoken./TITLE /HEAD BODY BGCOLOR=#FF TEXT=#00 H1Tokeninvalid-InvalidAuthSubtoken./H1 H2Error 401/H2 /BODY /HTML at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGData Request.java: 596) at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleG DataRequest.java: 563) at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataReques t.java: 550) at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java : 530) at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest. java: 535) at com.google.gdata.client.Service.getFeed(Service.java:1102) at com.google.gdata.client.Service.getFeed(Service.java:1044) at com.google.gdata.client.GoogleService.getFeed(GoogleService.java: 662) at com.google.gdata.client.Service.query(Service.java:1204) at com.google.gdata.client.Service.query(Service.java:1145) at cri.domodentweb.server.rpc.CalendarEventsServiceImpl.getEventsDev(CalendarE ventsServiceImpl.java: 133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_ $1.run(Method_.java:165) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.privilegedInvoke(Method_.java: 163) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke_(Method_.java: 124) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.M ethod_.invoke(Method_.java: 43) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 188) at cri.domodentweb.server.rpc.BaseServiceImpl.processCall(BaseServiceImpl.java : 12) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo bUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler
[appengine-java] Re: GAEJ Access to Google Calendar, How to Authenticate ?
Hi, I am glad to be useful for you. Moreover, in the near future I am looking forward to [Built-in support for OAuth OpenID]. thanks. Thank'sSeleronm, the AuthSubUtil was my missing part to fix my problem. Regards Stephan On 26 Mrz., 08:53,seleronmseler...@gmail.com wrote: Hi, Though I am not an expert. If you use not UserService but [com.google.gdata.client.http.AuthSubUtil] the problem might be solved. I think that this link is useful.http://code.google.com/intl/us/apis/gdata/docs/auth/authsub.html Please try. thanks. Hi GAEJ Experts, I like to access (Read/Write) a GoogleCalendarfrom the Google App Engine. To learn how it works I have Up my Java Google App Application and on my PC a smallCalendartest program. Now I need the missing link how to combine both application's. In my GAEJ servlet I get the current user with : UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); (after successfully login ) And have access to the user Nickname, email address ... To access thecalendarI need the user and password. CalendarService myService = new CalendarService( exampleCo- exampleApp-1); myService.setUserCredentials( myAccount, myPassword ); I understand that I have no access to the User Password. For this reason I think there must be a other way around to access the usercalendar's. I can't believe there is no other way to access the CalendarService ? Any Idea ? Magic Cookies ? Regards Stephan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] createLoginURL - userservice takes me to custom google apps domain login page
My code on the server is if(userPrincipal != null){ String name = userPrincipal.getName(); site.setNickName(name); site.setLoginLogOutURL(userService.createLogoutURL(thisURL)); site.setLoggedIn(true); }else{ site.setNickName(Guest); site.setLoginLogOutURL(userService.createLoginURL(thisURL)); site.setLoggedIn(false); } The Problem is that the URL takes me to the custom Google Apps Login page instead of the standard google accounts login page. i.e for a domain xyz.com - it takes me to google apps login page for xyz.com. Do I need to do something different?? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [google-appengine] How to visit GAE apps in China, now it denied completely!
Most of the time, yourapp.appspot.com can be accessed in China. www.yourdomain.com is a different story, many times it can't. What we've done is advertising yourapp.appspot.com in China. Good luck, Will On Sun, Mar 28, 2010 at 10:17 PM, Dark-horse shenguoc...@gmail.com wrote: The access is being completely denied. How to fix it ? We love Google, but why google abandon their costomers without considering our feelings. Our bussiness totally dependent the stable access to our web site on GEA from China. -- -- Guochun Shen http://shenguochun.googlepages.com/ │ ┌┬┬┬┐ ∮ │││▌▌│▌▌▌│▌▌│▌▌▌│▌▌ life │││ ││∮││is full │││ └∮┴┴┘of memories ... ? ┼┼┼── -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@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] Could not retrieve YouTube upload token: Bad Request
I'm getting the error below when we try to upload a video to test out our YouTube Direct app on Google App Engine. I checked the logs to try and debug but there is no indication of the error. Help! Could not retrieve YouTube upload token: Bad Request -- 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-appeng...@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] Datastore native types and #bytes taken towards 1MB entity size. Also compact way to store key references.
Regarding the list of datatypes supported by the App Engine Datastore http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types is there a list of how many bytes each value takes towards the maximum of 1MB per entity? Does a string take variable length or always 500bytes? Does a blob use just its actual size? Does the key count towards the 1MB limit and how much? What is the most efficient way in terms of #bytes to have a property value which points at another entity. Currently I use a serialized key but it seems kind of long in terms of #bytes and only uses base-64 (6bits per byte) - should I compact it somehow? Thanks ZS -- 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-appeng...@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] Frustrations with JDO on GAE
Hi All, I have made one DAO-Impl class using GAE JDO. It does the find and save operaions fine but when it comes to deleting an object it keeps giving an error like this: Caused by: java.lang.RuntimeException: javax.jdo.JDOUserException: Transient-Transactional instances cant be deleted. Object id = {0} NestedThrowables: org.datanucleus.exceptions.NucleusUserException: Transient-Transactional instances cant be deleted. Object id = {0} at com.gp.med.diag.dao.impl.DefaultDaoImpl.delete(DefaultDaoImpl.java:37) at com.gp.med.diag.bean.UserRequestBean.deleteSelectedUsers(UserRequestBean.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.sun.el.parser.AstValue.invoke(AstValue.java:187) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:297) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:98) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ... 33 more Below is my DefaultDaoImpl class: package com.gp.med.diag.dao.impl; import com.gp.med.diag.common.CommonUtility; import com.gp.med.diag.dao.DefaultDao; import java.io.Serializable; import java.util.List; import java.util.logging.Logger; import javax.jdo.PersistenceManager; import javax.jdo.Query; import javax.jdo.Transaction; public class DefaultDaoImplT, Key extends Serializable implements DefaultDaoT, Key { private Logger log = Logger.getLogger(this.getClass().getName()); /** */ private static final long serialVersionUID = -7434657287999140983L; @Override public void delete(T t) { PersistenceManager pm = CommonUtility.get().getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); // T t = findByKey(clazz, key); log.finer(Deleting object: + t); pm.makeTransactional(t); // pm.retrieve(t); pm.deletePersistent(t); tx.commit(); } catch (Exception e) { tx.rollback(); throw new RuntimeException(e); } finally { pm.close(); } } @SuppressWarnings(unchecked) @Override public ListT findAll(ClassT clazz) { PersistenceManager pm = CommonUtility.get().getPersistenceManager(); try { Query query = pm.newQuery(clazz); ListT result = (ListT) query.execute(); result.size(); pm.detachCopyAll(result); return result; } catch (Exception e) { throw new RuntimeException(e); } finally { pm.close(); } } @Override public T findByKey(ClassT clazz, Key key) { PersistenceManager pm = CommonUtility.get().getPersistenceManager(); try { T t = (T) pm.getObjectById(clazz, key); pm.detachCopy(t); return t; } catch (Exception e) { throw new RuntimeException(e); } finally { pm.close(); } } @Override public T save(T entity) { PersistenceManager pm = CommonUtility.get().getPersistenceManager(); try { return pm.makePersistent(entity); } catch (Exception e) { throw new RuntimeException(e); } finally { pm.close(); } } @Override public void update(ClassT clazz, Key key, T entity) { PersistenceManager pm = CommonUtility.get().getPersistenceManager(); try { // T t = findByKey(clazz, key); pm.makePersistent(entity); } catch (Exception e) { throw new RuntimeException(e); } finally { pm.close(); } } } When I was not calling the makeTransactional() method in the delete() method I was getting an error like Cannot delete a Transient instance. Thanks for your help. Regards, Gurdev -- 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-appeng...@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 and Apps Marketplace
I'm glad OpenID and GAE are on the roadmap. It's actually very important for Google to get this going as this is a basic enabler to get marketplace apps up and running - I do hope this materialises soon. -- 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-appeng...@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] 500 error and nologging
I have an application (oraperfcontacts2.appspot.com) that is working fine after it is deployed and after a couple minutes it stops responding and gives an 500 error. If I do a refresh of the application it works again but after a while of inactivity the same session it stops and after a while it gives an error 500, but nothing can be found in the logs. Does anyone have any pointers of what to check and where? Thanks, Anjo. -- 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-appeng...@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] Unable deploy.Server bug?Server error?
Application ID has been set. The version has been set. It was possible to deploy it first. It becomes impossible to deploy any applicationID when deploying it several times. Why? ---error log Unable to update: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=rior-jpversion=1; 403 Forbidden You do not have permission to modify this app (app_id=u'rior-jp'). at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:549) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:366) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) -- 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-appeng...@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] Email limited to 2000 even for Billing enabled users?
Today my limit hit 2000 email and my App failed to send any further email. I have enabled billing almost a year ago and it is active, but I have never cross free quota until today. According to Google AppEngine Quotas, Billing enabled users can send 7,400,000 email per day. http://code.google.com/appengine/docs/quotas.html#Mail Anyone faced similar problem and if so what is the solution? (info: I am not using Google Apps for my site.) 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-appeng...@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] JDO Property Default Value
Is it possible to set a default value on a property with the datastore? -- 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-appeng...@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] Wildcard queries
Apparently the datastore doesn't support wildcard queries. As long as the query just has a trailing %, I suppose you could emulate them with combined = and filters, but what would you specify for the filter ? As an aside, I'm rather puzzled by the limitations of the query language, compared with SQL. Are there any resources explaining these limitations and pssible workarounds..? -- 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-appeng...@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] I want more scalability.
My application needs more than 50 request/second. I found some warning logs, that returns 500 error page. Error log says: Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.html for more details. The error has 0cpu_ms, 0api_cpu_ms, but it cost just 1ms to return the page with 500 error. I post this thread, but no solution. http://groups.google.com/group/google-appengine-python/browse_thread/thread/d0a9be3d880c3579 So I take a very simple test for scalability. Deploy the very simple webapp Hello Wolrd application with time.sleep(0.3). # Like http://code.google.com/appengine/docs/python/gettingstarted/usingwebapp.html # For emulate real application, insert time.sleep(0.3) after def get(self) statement. Result: * 10request/second test is good. * All request returns 200 page by 330ms. (300ms is time.sleep(0.3)) * 50request/second test is little good. * Some result takes too slow. almost returns 200 page by 330ms. but some page takes more than 3000ms. * 100request/second test is not good. * Returns many 500 errors. Of course billing status is much. How can I get more scalability? Very sorry for my poor english, but I'm in big trouble. Thanks in Advance, unacowa -- 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-appeng...@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] appengine SDK expiration doesn't work unless default_expiration set
Hello, The expiration: blah doesn't work, and only the value for default_expiration: blah blah is picked up for every static handler for me. Has anyone else faced this issue?? Regards, -Dhruv. -- 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-appeng...@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: I want more scalability.
You should contact Google and request an increase http://code.google.com/support/bin/request.py?contact_type=AppEngineCPURequest On 27 Mrz., 09:37, unacowa ueki@gmail.com wrote: My application needs more than 50 request/second. I found some warning logs, that returns 500 error page. Error log says: Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please seehttp://code.google.com/appengine/docs/quotas.htmlfor more details. The error has 0cpu_ms, 0api_cpu_ms, but it cost just 1ms to return the page with 500 error. I post this thread, but no solution.http://groups.google.com/group/google-appengine-python/browse_thread/... So I take a very simple test for scalability. Deploy the very simple webapp Hello Wolrd application with time.sleep(0.3). # Likehttp://code.google.com/appengine/docs/python/gettingstarted/usingweba... # For emulate real application, insert time.sleep(0.3) after def get(self) statement. Result: * 10request/second test is good. * All request returns 200 page by 330ms. (300ms is time.sleep(0.3)) * 50request/second test is little good. * Some result takes too slow. almost returns 200 page by 330ms. but some page takes more than 3000ms. * 100request/second test is not good. * Returns many 500 errors. Of course billing status is much. How can I get more scalability? Very sorry for my poor english, but I'm in big trouble. Thanks in Advance, unacowa -- 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-appeng...@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] Safety of Taskqueue duplicates
I've been thinking of using the fact that taskqueue names cannot be duplicated to my advantage. But how reliable is this fact. Is there ANY chance that the taskqueue will indeed be enqueued again? -- 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-appeng...@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.
Re: [google-appengine] Email limited to 2000 even for Billing enabled users?
Did you allocate any budget on the resource Recipients Emailed? It's $0.0001/Email if over free quota. Shinichi On Sat, Mar 27, 2010 at 08:22, charming30 charmin...@gmail.com wrote: Today my limit hit 2000 email and my App failed to send any further email. I have enabled billing almost a year ago and it is active, but I have never cross free quota until today. According to Google AppEngine Quotas, Billing enabled users can send 7,400,000 email per day. http://code.google.com/appengine/docs/quotas.html#Mail Anyone faced similar problem and if so what is the solution? (info: I am not using Google Apps for my site.) 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-appeng...@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. -- 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-appeng...@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: Email limited to 2000 even for Billing enabled users?
On Mar 28, 4:22 am, charming30 charmin...@gmail.com wrote: Anyone faced similar problem and if so what is the solution? My app regularly sends more than 2,000 emails per day. Make sure you have set some budget for this in billing settings. -- 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-appeng...@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: Login to Google app engine application using Google sites email + password
OK, thanks Google account can be created with any e-mail address On Mar 28, 9:47 pm, Wooble geoffsp...@gmail.com wrote: On Mar 28, 6:04 am, Jonathan jonathan.na...@gmail.com wrote: Would like to enable users of Google sites with their own domain and email to log into my Google app engine application without creating an additional gmail account just for that purpose. Looks like an obvious issue because those users are already using a complete infrastructure of Google including password handling and gmail All they need to do is make the Google Apps login also a Google account. Any Google account will work with the users API when you haven't restricted logins to a Google Apps domain; they don't need to be gmail.com accounts. -- 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-appeng...@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.
Re: [google-appengine] Wildcard queries
PoulS wrote: Apparently the datastore doesn't support wildcard queries. As long as the query just has a trailing %, I suppose you could emulate them with combined = and filters, but what would you specify for the filter ? Let's say you have a search string like search = u'abc' I can think of two ways to do this: = search AND search + u'\U0010' which will not work if one of your matches begins with search+u'\U0010' but that is very unlikely... And the other solution is = search AND search[:-1] + unichr(ord(search[-1])+1) -Ulrich As an aside, I'm rather puzzled by the limitations of the query language, compared with SQL. Are there any resources explaining these limitations and pssible workarounds..? -- 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-appeng...@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: Login to Google app engine application using Google sites email + password
On Mar 29, 1:12 am, Jonathan jonathan.na...@gmail.com wrote: google account == gmail account Not true. A google account can use any email address. If your users really won't accept a google account, though, use OpenID. -- 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-appeng...@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.
Re: [google-appengine] i18n GWT 2.0 application reaching the max files limit
You can make a zip file and serve the files from it with a request handler. Maximum zip file size is 10Mb. 2010/3/28 François Masurel fm2...@mably.com: Hi, While trying to deploy our internationalized GWT 2.0 application into production we encountered the error : Applications are limited to 3000 files, you have 3956.. In fact, while developping we were limiting ourselves to one language and one browser and had no problem. But once when we activated a few more languages and all browsers, we couldn't deploy our months of work application anymore. It's very annoying. Is there anyway to increase the 3000 files limit ? Thanx a lot for your help. François Bordeaux, FRANCE App ID : i-wands -- 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-appeng...@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. -- 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-appeng...@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.
Re: [google-appengine] i18n GWT 2.0 application reaching the max files limit
Thanx for your answer. You mean I can serve GWT generated javascript files and other resources from a ZIP file via a request handler ? Has anybody done this already ? Any code samples around ? Thanx again. On Mon, Mar 29, 2010 at 1:41 PM, djidjadji djidja...@gmail.com wrote: You can make a zip file and serve the files from it with a request handler. Maximum zip file size is 10Mb. 2010/3/28 François Masurel fm2...@mably.com: Hi, While trying to deploy our internationalized GWT 2.0 application into production we encountered the error : Applications are limited to 3000 files, you have 3956.. In fact, while developping we were limiting ourselves to one language and one browser and had no problem. But once when we activated a few more languages and all browsers, we couldn't deploy our months of work application anymore. It's very annoying. Is there anyway to increase the 3000 files limit ? Thanx a lot for your help. François Bordeaux, FRANCE App ID : i-wands -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- 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-appeng...@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.
Re: [google-appengine] Wildcard queries
Google has provided a nice set of articles about the datastore: http://code.google.com/appengine/articles/datastore/overview.html Robert On Mar 29, 2010, at 5:35, Ulrich mierendo...@googlemail.com wrote: PoulS wrote: Apparently the datastore doesn't support wildcard queries. As long as the query just has a trailing %, I suppose you could emulate them with combined = and filters, but what would you specify for the filter ? Let's say you have a search string like search = u'abc' I can think of two ways to do this: = search AND search + u'\U0010' which will not work if one of your matches begins with search+u'\U0010' but that is very unlikely... And the other solution is = search AND search[:-1] + unichr(ord(search[-1])+1) -Ulrich As an aside, I'm rather puzzled by the limitations of the query language, compared with SQL. Are there any resources explaining these limitations and pssible workarounds..? -- 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- appeng...@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 . -- 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-appeng...@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.
Re: [google-appengine] Datastore native types and #bytes taken towards 1MB entity size. Also compact way to store key references.
Look at this article: http://code.google.com/appengine/articles/storage_breakdown.html As I recall it explains how everything is stored. Robert On Mar 27, 2010, at 9:24, ZS zvi.schrei...@gmail.com wrote: Regarding the list of datatypes supported by the App Engine Datastore http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Core_Value_Types is there a list of how many bytes each value takes towards the maximum of 1MB per entity? Does a string take variable length or always 500bytes? Does a blob use just its actual size? Does the key count towards the 1MB limit and how much? What is the most efficient way in terms of #bytes to have a property value which points at another entity. Currently I use a serialized key but it seems kind of long in terms of #bytes and only uses base-64 (6bits per byte) - should I compact it somehow? Thanks ZS -- 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- appeng...@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 . -- 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-appeng...@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 to visit GAE apps in China, now it denied completely!
We love Google, but why google abandon their costomers without considering our feelings. Our bussiness totally dependent the stable access to our web site on GEA from China. It's unfair by saying that the Google abandon customers. It is not the Google's fault. I would like to say that the Google abandons their revenue for your human right! But I do hope to see more and more people in China can keep contacts with the freedom and connected world. The key is that you have to help yourselves. Maybe this can do something for you: Http over SMTP Proxy http://www.edge-security.com/hosproxy.php -- 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-appeng...@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] heap size
Hello , When i execute my application on the GAE server , i've the following error : javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String client.GreetingService.greetServer(java.lang.String)' threw an unexpected exception: java.lang.OutOfMemoryError: Java heap space at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) But when i execute in IntelliJ , no problem. Thanks for your request -- 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-appeng...@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] heap size
Hello , ObjectifyService.register(Record.class); ObjectifyService.register(Person.class); ObjectifyService.register(Project.class); ObjectifyService.register(Allocation.class); Objectify ofy = ObjectifyService.beginTransaction(); String stringToReturn = ; try { Record record = new Record(5, new Time(1, 2010)); Person person = new Person(bagno,laurent); person.setElementForTrainingList(1,record); Project project = new Project(nova); person.addProject(project); Allocation alloc = new Allocation(project,person); ofy.put(person); ofy.put(alloc); ofy.getTxn().commit();}... When i execute my application on the GAE server , i've the following error : javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String client.GreetingService.greetServer(java.lang.String)' threw an unexpected exception: java.lang.OutOfMemoryError: Java heap space at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) But when i execute in IntelliJ , no problem. Thanks for your request -- 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-appeng...@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.
Re: [google-appengine] Safety of Taskqueue duplicates
Hi, The Task Queue guarantees that two tasks with the same name cannot be enqueued within 7 days of each other. Beyond that, tombstoned names may be garbage collected. -Nick Johnson On Mon, Mar 29, 2010 at 8:19 AM, prgmratlarge yossiele...@gmail.com wrote: I've been thinking of using the fact that taskqueue names cannot be duplicated to my advantage. But how reliable is this fact. Is there ANY chance that the taskqueue will indeed be enqueued again? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@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.
Re: [google-appengine] Re: How to visit GAE apps in China, now it denied completely!
Hi everyone, First, thanks your guys for helping me to get through the GFW. But one point i still want to argue with you: which one, food or the right to hear any news, will you choose when you are almost hunger to death? My point is that Google think we need the above right, but actually we want a job to keep our daily life first. You will not believe how hard to find a good job in China right now! Google should take a survey on Chinese people about what will they choose on the above question before take action like leave China. On Mon, Mar 29, 2010 at 8:17 PM, Singuan, Iap iap...@gmail.com wrote: We love Google, but why google abandon their costomers without considering our feelings. Our bussiness totally dependent the stable access to our web site on GEA from China. It's unfair by saying that the Google abandon customers. It is not the Google's fault. I would like to say that the Google abandons their revenue for your human right! But I do hope to see more and more people in China can keep contacts with the freedom and connected world. The key is that you have to help yourselves. Maybe this can do something for you: Http over SMTP Proxy http://www.edge-security.com/hosproxy.php -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- -- Guochun Shen http://shenguochun.googlepages.com/ │ ┌┬┬┬┐ ∮ │││▌▌│▌▌▌│▌▌│▌▌▌│▌▌ life │││ ││∮││is full │││ └∮┴┴┘of memories ... ? ┼┼┼── -- 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-appeng...@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] Help with data transformation
Hey guys, I want to release a new version of our product that has some changes to the persistent objects we already have stored in the data store. Most importantly - i'm removing a parent child relationship. Since this is a big change to the data and indexes, i was hoping someone could help point me towards some good tools or methods for getting old objects out of the data store, changing them and re- persisting them. I'm about to write a bunch of code to do this and i don't want to re-invent the wheel. If this was SQL Server, i'd write a DTS transformation to migrate my data. Anything like that out there? -- 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-appeng...@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: IP address to GPS coordinates
thanks guys - a web service to submit an IP and get Lat and Long back would be ideal for me, since i need to get them during a POST coming from devices; i won't be able to launch any client code. I'm sure there will be a web service that does this eventually or i'll make it. On Mar 25, 5:53 pm, nickmilon nickmi...@gmail.com wrote: The best approach is to delegate the task to the client using javascript and a geolocation service provided my google maps API as Niklasrol above suggests, it is free for non-commercial use and the most acurate method. For an example you can take a look at my app http://www.geognos.com/geo/en/cc/us.html and select move map my place from the drop box on top right for an explanation take a look at page source and javascript. If you have to do it in the server you can use an API like maxminds as Ulrich above is suggesting or you can build your own service on app engine. For an example of the later see http://milon.appspot.com/stravon/db/cc/83.212.217.149 and may be you read my remarks on this here in the following threadhttp://groups.google.com/group/google-appengine/browse_thread/thread/... Happy coding ;) On Mar 25, 7:00 pm, Ulrich mierendo...@googlemail.com wrote: Benjamin wrote: Does anyone know a good way to get an approximate GPS coordinate (Latitude and Longitude) when you have a users IP Address? When my users post to a web service i'm pretty sure i know their IP. I'd like to get the Latitude and Longitude of the client based on that like GEO IP does but from my system running on app engine. Something likehttp://www.maxmind.com/app/ip-locationcouldhelp you. I would download the database and load it into the datastore. -Ulrich -- 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-appeng...@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: IP address to GPS coordinates
actually this may be exactly what i needed: http://www.hostip.info/ On Mar 25, 5:53 pm, nickmilon nickmi...@gmail.com wrote: The best approach is to delegate the task to the client using javascript and a geolocation service provided my google maps API as Niklasrol above suggests, it is free for non-commercial use and the most acurate method. For an example you can take a look at my app http://www.geognos.com/geo/en/cc/us.html and select move map my place from the drop box on top right for an explanation take a look at page source and javascript. If you have to do it in the server you can use an API like maxminds as Ulrich above is suggesting or you can build your own service on app engine. For an example of the later see http://milon.appspot.com/stravon/db/cc/83.212.217.149 and may be you read my remarks on this here in the following threadhttp://groups.google.com/group/google-appengine/browse_thread/thread/... Happy coding ;) On Mar 25, 7:00 pm, Ulrich mierendo...@googlemail.com wrote: Benjamin wrote: Does anyone know a good way to get an approximate GPS coordinate (Latitude and Longitude) when you have a users IP Address? When my users post to a web service i'm pretty sure i know their IP. I'd like to get the Latitude and Longitude of the client based on that like GEO IP does but from my system running on app engine. Something likehttp://www.maxmind.com/app/ip-locationcouldhelp you. I would download the database and load it into the datastore. -Ulrich -- 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-appeng...@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.
Re: [google-appengine] Help with data transformation
Hi Benjamin, You may find my recently-released bulkupdate library helpful here: http://blog.notdot.net/2010/03/Announcing-a-robust-datastore-bulk-update-utility-for-App-Engine Unfortunately, it does not yet automatically shard, so updates will be processed serially, but it may be suitable for your task regardless. -Nick On Mon, Mar 29, 2010 at 3:25 PM, Benjamin bsaut...@gmail.com wrote: Hey guys, I want to release a new version of our product that has some changes to the persistent objects we already have stored in the data store. Most importantly - i'm removing a parent child relationship. Since this is a big change to the data and indexes, i was hoping someone could help point me towards some good tools or methods for getting old objects out of the data store, changing them and re- persisting them. I'm about to write a bunch of code to do this and i don't want to re-invent the wheel. If this was SQL Server, i'd write a DTS transformation to migrate my data. Anything like that out there? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@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: Help with data transformation
Thanks Nick, By the way - I wanted to thank you for mentioning our app Nimbits Data Historian in your blog Posting googleappengine.blogspot.com - it was really exciting for us to get noticed liked that I was just coming back to this post to update that that it looked like appcfg.py does what we'd need but appcfg.cmd (with the java sdk) does not. Is it true that the python sdk can download and upload data but the java sdk cannot? I'm looking for the java sdk equivalent to http://code.google.com/appengine/docs/python/tools/uploadingdata.html - Benjamin On Mar 29, 10:32 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Benjamin, You may find my recently-released bulkupdate library helpful here:http://blog.notdot.net/2010/03/Announcing-a-robust-datastore-bulk-upd... Unfortunately, it does not yet automatically shard, so updates will be processed serially, but it may be suitable for your task regardless. -Nick On Mon, Mar 29, 2010 at 3:25 PM, Benjamin bsaut...@gmail.com wrote: Hey guys, I want to release a new version of our product that has some changes to the persistent objects we already have stored in the data store. Most importantly - i'm removing a parent child relationship. Since this is a big change to the data and indexes, i was hoping someone could help point me towards some good tools or methods for getting old objects out of the data store, changing them and re- persisting them. I'm about to write a bunch of code to do this and i don't want to re-invent the wheel. If this was SQL Server, i'd write a DTS transformation to migrate my data. Anything like that out there? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@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.
Re: [google-appengine] Re: Help with data transformation
Hi Benjamin, On Mon, Mar 29, 2010 at 3:55 PM, Benjamin bsaut...@gmail.com wrote: Thanks Nick, By the way - I wanted to thank you for mentioning our app Nimbits Data Historian in your blog Posting googleappengine.blogspot.com - it was really exciting for us to get noticed liked that I was just coming back to this post to update that that it looked like appcfg.py does what we'd need but appcfg.cmd (with the java sdk) does not. Is it true that the python sdk can download and upload data but the java sdk cannot? I'm looking for the java sdk equivalent to http://code.google.com/appengine/docs/python/tools/uploadingdata.html Yes, currently only the Python runtime has direct support for bulkloading. Support for Java is something we'd like to add in the future, but in the meantime you can load using the Python bulkloader. -Nick Johnson - Benjamin On Mar 29, 10:32 am, Nick Johnson (Google) nick.john...@google.com wrote: Hi Benjamin, You may find my recently-released bulkupdate library helpful here: http://blog.notdot.net/2010/03/Announcing-a-robust-datastore-bulk-upd... Unfortunately, it does not yet automatically shard, so updates will be processed serially, but it may be suitable for your task regardless. -Nick On Mon, Mar 29, 2010 at 3:25 PM, Benjamin bsaut...@gmail.com wrote: Hey guys, I want to release a new version of our product that has some changes to the persistent objects we already have stored in the data store. Most importantly - i'm removing a parent child relationship. Since this is a big change to the data and indexes, i was hoping someone could help point me towards some good tools or methods for getting old objects out of the data store, changing them and re- persisting them. I'm about to write a bunch of code to do this and i don't want to re-invent the wheel. If this was SQL Server, i'd write a DTS transformation to migrate my data. Anything like that out there? -- 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.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@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: popularity of Python vs Java on GAE
My choice is obvious. Just look at this definition. public void setInterfaceHandlerUrl(String interfaceHandlerUrl) { this.interfaceHandlerUrl = interfaceHandlerUrl; } It does nothing active and cannot be understood why pre or postprocessing can't handle seemingly total compiler stuff -- 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-appeng...@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.
Re: [google-appengine] Re: How to visit GAE apps in China, now it denied completely!
Hi, Dark-horse The Iceland Govt. in bankruptcy state does not has GFW. It surprise me that the severe economical situation of China in your description. Well, I don't think that here is the right place to make political or military arguments. Let's focus on the problem specific to your country. The GFW actually also enclosed an opportunity for you by locking the door up. Why not start your own business with TyphoonAE(Python) or AppScale (Java) in your country. The market of GAE-compatible service within the GFW is all yours. Haven't you find that how great it is. The people of China can access all the utilities and tools on the internet freely. All of the free lunch on the internet were not been blocked by the GFW provided that they do not annoy the China Govt. Whereas the websites (services) outside the China are not accessible by consumers in the so-called world largest market which behinds the GFW. No matter you care about your fellows' human rights or not, The GFW might become beneficial to your pocket with TyphoonAE and AppScale. See, what the Google done is good for the people who address to human rights as well as people who emphases on business profits. 2010/3/29 Dark-horse shenguoc...@gmail.com Hi everyone, First, thanks your guys for helping me to get through the GFW. But one point i still want to argue with you: which one, food or the right to hear any news, will you choose when you are almost hunger to death? My point is that Google think we need the above right, but actually we want a job to keep our daily life first. You will not believe how hard to find a good job in China right now! Google should take a survey on Chinese people about what will they choose on the above question before take action like leave China. -- 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-appeng...@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: No longer able to deploy cron.yaml - after 1.3.2
Same issue here, Monday 3/29/2010 - description: do this cron url: /do-this-cron schedule: every day 08:00 timezone: America/Los_Angeles I will +1 the bug. -- 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-appeng...@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.
Re: [google-appengine] Re: How to visit GAE apps in China, now it denied completely!
Hello Dark-horse, I am a Chinese. I think it's useless to complaint here. Google has his faith, while Chinese gov has his rules. As we are unable to change either of two side, the only thing we can do is adapt ourself, keep pacing with the advanced techs, and figure out some solution to handle current situation. Good news is GAE apps seems not blocked entirely, I can access my app in company, my friend told me he can access my app from home, and most apps in google app gallery are still available in China. Although still some websites are denied. But I never heard any news about China gov will block Google App or Google cancel his app market in China. I think it's just some websites are blocked temporary due to some sensitive words. I agree that the condition for Chinese developers is not optimistic, but it's really meaningless to complaint here. On Mon, Mar 29, 2010 at 9:24 PM, Dark-horse shenguoc...@gmail.com wrote: Hi everyone, First, thanks your guys for helping me to get through the GFW. But one point i still want to argue with you: which one, food or the right to hear any news, will you choose when you are almost hunger to death? My point is that Google think we need the above right, but actually we want a job to keep our daily life first. You will not believe how hard to find a good job in China right now! Google should take a survey on Chinese people about what will they choose on the above question before take action like leave China. On Mon, Mar 29, 2010 at 8:17 PM, Singuan, Iap iap...@gmail.com wrote: We love Google, but why google abandon their costomers without considering our feelings. Our bussiness totally dependent the stable access to our web site on GEA from China. It's unfair by saying that the Google abandon customers. It is not the Google's fault. I would like to say that the Google abandons their revenue for your human right! But I do hope to see more and more people in China can keep contacts with the freedom and connected world. The key is that you have to help yourselves. Maybe this can do something for you: Http over SMTP Proxy http://www.edge-security.com/hosproxy.php -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- -- Guochun Shen http://shenguochun.googlepages.com/ │ ┌┬┬┬┐ ∮ │││▌▌│▌▌▌│▌▌│▌▌▌│▌▌ life │││ ││∮││is full │││ └∮┴┴┘of memories ... ? ┼┼┼── -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Best Regards, From Raymond Ling -- 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-appeng...@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] Sporadic Outage
Hello, Is anyone aware of a known outage/issue on Sunday? We haven't updated in days, but all of a sudden we're getting 'RegexURLResolver' object has no attribute 'name' errors. The errors are sporadic, and as far as we can tell, have nothing to do with our code (it was stable and we'd not uploaded any modifications). 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-appeng...@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] data center location
Hi guys. Can I specify where to deploy my app geographically? Say I want my data to stay in Europe only. Is this possible? If so, what are the available locations? 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-appeng...@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] API
Application Programming interface. am a novice will love 2be updated.Fill me in fella. -- 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-appeng...@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.
Re: [google-appengine] Are static websites permitted in App Engine?
There's nothing in the ToS forbidding this at all. In fact, this is a particularly good strategy - host a static site, then whenever you feel comfortable adding additional functionality, it's right there for you to do so. On Fri, Mar 26, 2010 at 5:08 PM, bms benmsch...@gmail.com wrote: Understanding that using Google App Engine for this purpose is probably overkill, I am wondering if small business static websites are allowed to be hosted via Google App Engine. Do websites hosted via Google App Engine need to be web apps or can they be static? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/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-appeng...@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.
Re: [google-appengine] Re: IP address to GPS coordinates
On Mon, Mar 29, 2010 at 8:31 AM, Benjamin bsaut...@gmail.com wrote: actually this may be exactly what i needed: http://www.hostip.info/ How important is a correct answer on the first try? I'm visiting a friend in Thousand Oaks, CA, but this site says I'm in Reston, VA. I suspect that it says most if not all Verizion customers, live in Reston, VA. These guys do a better job with my current ip, they think I'm in Oxnard, CA with my friends tell me is 15min or so by car, not a couple days by car. Demos are free, but if you want to check more than 25/day you need to pay. On Mar 25, 5:53 pm, nickmilon nickmi...@gmail.com wrote: The best approach is to delegate the task to the client using javascript and a geolocation service provided my google maps API as Niklasrol above suggests, it is free for non-commercial use and the most acurate method. For an example you can take a look at my app http://www.geognos.com/geo/en/cc/us.html and select move map my place from the drop box on top right for an explanation take a look at page source and javascript. If you have to do it in the server you can use an API like maxminds as Ulrich above is suggesting or you can build your own service on app engine. For an example of the later see http://milon.appspot.com/stravon/db/cc/83.212.217.149 and may be you read my remarks on this here in the following threadhttp://groups.google.com/group/google-appengine/browse_thread/thread/... Happy coding ;) On Mar 25, 7:00 pm, Ulrich mierendo...@googlemail.com wrote: Benjamin wrote: Does anyone know a good way to get an approximate GPS coordinate (Latitude and Longitude) when you have a users IP Address? When my users post to a web service i'm pretty sure i know their IP. I'd like to get the Latitude and Longitude of the client based on that like GEO IP does but from my system running on app engine. Something likehttp://www.maxmind.com/app/ip-locationcouldhelp you. I would download the database and load it into the datastore. -Ulrich -- 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-appeng...@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. -- Drew Einhorn -- 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-appeng...@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.
Re: [google-appengine] Re: creating a local copy of application for development
I've actually gotten to the point where I git repo everything I do. It takes seconds, and being able to cheaply branch to try different things is indispensable. I've heard the argument that people don't want to use Github because the free version exposes your code, but for all practical purposes, this is bunk. It's hard enough to understand *documented* source code. On Sun, Mar 28, 2010 at 6:46 AM, Tim Hoffman zutes...@gmail.com wrote: No probs didn't think you where too harsh, just a different opinion. On Mar 28, 8:58 pm, Baz b...@thinkloop.com wrote: Now we're talking! Sorry I came off a little harsh, I just wasn't into calling him a non-serious developer because he wanted to get at his own code. I don't create a git repo for every little file I make (even though I probably should!), and maybe his code is just for experimentation without big security needs. Or maybe he forgot to commit! Anyway, I agree with you guys about the security. Yep I do that too. If it's micky mouse stuff but I don't want to lose it I tar it up and stick it in gmail, or docs. T -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/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-appeng...@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.
Re: [google-appengine] google-appengine] A tip to speed up a local large development datastore: use ramdisk [linux]
Cool tip! 2010/3/28 José Moreira matrixowns...@gmail.com Setup something like http://ubuntuforums.org/showthread.php?t=182764 and set your datastore path on to the ramdisk with : --datastore_path=PATH Path to use for storing Datastore file stub data. (Default /tmp/dev_appserver.datastore) *** speed tests *** Regular disk: jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/sda4 /dev/sda4: Timing cached reads: 3576 MB in 2.00 seconds = 1791.11 MB/sec Timing buffered disk reads: 112 MB in 3.01 seconds = 37.23 MB/sec Ram disk disk: jmore...@mint ~/Tmp $ sudo hdparm -Tt /dev/ram0 /dev/ram0: Timing cached reads: 4114 MB in 2.00 seconds = 2061.44 MB/sec Timing buffered disk reads: 64 MB in 0.14 seconds = 446.65 MB/sec -- josemore...@irc.freenode.net http://beta.icodedhere.com http://pt.linkedin.com/in/josemoreira http://djangopeople.net/josemoreira http://www.crunchbase.com/user/josemoreira -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/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-appeng...@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] html5 cache ... is it working?
Can someone show how to use HTML5 cache with google app engine python? I have gone through the tutorials and have an app.yaml that looks like this application: secret-valentine version: 1 runtime: python api_version: 1 handlers: - url: /cache.manifest mime_type: text/cache-manifest static_files: cache.manifest upload: cache.manifest - url: /static static_dir: static - url: .* script: secret-valentine.py login: required The cache.manifest file looks like this: # v9 CACHE MANIFEST /static/ext-all.js static/ext-all.js ext-all.js NETWORK: FALLBACK: And the browser is downloading the cache.manifest file as a manifest file. The problem is that the browser is always going to the server to get the ext-all.js file. I want it to get the file out of its local cache. One thing I notice in the logs is that the call to cache.manifest always comes after the call to ex-all.js. Even when I put the ext- all.js script tag at the very bottom of the page. I saw this http://code.google.com/p/googleappengine/issues/detail?id=1050 and took a close look at this page http://iui-js.appspot.com/samples/music/music.html#_home using firebug and I see his cache files are also being requested. (Unless firebug is wrong). Maybe I have the wrong expectations of html5 and you cannot utilize a local server? Anyone familiar with HTML5 cache? Thanks, -Tim Firefox 3.6 on Mac tiger GAE (python) 1.3.1 on mac -- 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-appeng...@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.