[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.