[appengine-java] UnknownException
I was working on my application (vs-accounting.appspot.com), and suddenly I started getting errors for the same operation I performed earlier. I looked into the logs. I get the following error. Please see if the following information from the logs can help. Is there a way to traceback more information about the error? 1. 02-16 12:18AM 12.674 /partymgr/listparty? tenantId=ag12cy1hY2NvdW50aW5ncj4LEg9NYXN0ZXJVc2VyTG9naW4iGmFzd2F0aC5zYXRyYXNhbGFAZ21haWwuY29tDAsSBlRlbmFudCIDbmV3 DA 200 112ms 105cpu_ms 8api_cpu_ms 0kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 GTB6 (.NET CLR 3.5.30729),gzip(gfe) See details 122.166.10.207 - aswath.satrasala [16/Feb/2010:00:18:12 -0800] GET /partymgr/listparty? tenantId=ag12cy1hY2NvdW50aW5ncj4LEg9NYXN0ZXJVc2VyTG9naW4iGmFzd2F0aC5zYXRyYXNhbGFAZ21haWwuY29tDAsSBlRlbmFudCIDbmV3 DA HTTP/1.1 200 141 http://vs-accounting.appspot.com/partymgr/listparty? tenantId=ag12cy1hY2NvdW50aW5ncj4LEg9NYXN0ZXJVc2VyTG9naW4iGmFzd2F0aC5zYXRyYXNhbGFAZ21haWwuY29tDAsSBlRlbmFudCIDbmV3 DA Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 GTB6 (.NET CLR 3.5.30729),gzip(gfe) vs- accounting.appspot.com 2. E 02-16 12:18AM 12.735 com.veersoft.action.LoginInterceptor intercept: com.google.apphosting.api.ApiProxy$UnknownException: An error occurred for the API request datastore_v3.Get(). -Aswath -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Web XML validation NPE upon launching the 1.3.1 dev server
Can no one help me? I am a bit stuck on this one. My web.xml file is: ?xml version=1.0 encoding=UTF-8? web-app filter filter-nameWicketApplication/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter- class init-param param-nameapplicationClassName/param-name param-value[...]/param-value /init-param /filter filter-mapping filter-nameWicketApplication/filter-name url-pattern/wicket/*/url-pattern /filter-mapping filter-mapping filter-nameWicketApplication/filter-name url-pattern/*/url-pattern /filter-mapping session-config session-timeout30/session-timeout /session-config welcome-file-list welcome-file/ /welcome-file-list /web-app -- 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 would you suggest to have a dynamic settings in my app ?
1. Well, I guess that's the best option. Normally from my past experience a setting file would include the db connection properties and then I would just add more settings to it. I guess that as long as I don't need to save settings regarding what to do if the datastore has a problem - it would be just fine Thanks On Tue, Feb 16, 2010 at 11:48 AM, Ian Marshall ianmarshall...@gmail.comwrote: 1. Why not have have a persistent class with one or more instances persisted to the datastore. You could amend persisted values with the Administration Console datastore viewer as desired. Your app can look these settings up as needed. 2. Or else construct an administration web page, and allow the viewing and changing of your app settings from there? -- 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: Datastore migration
If you need an integrated backup solution in GAE, please star issue : http://code.google.com/p/googleappengine/issues/detail?id=776 On 2 fév, 19:22, Moritz mor...@cloudme.org wrote: Hello everyone, after a couple of versions of my application I found out that I need to change the datamodel fundamentally in order to achieve better performance. My approach was as follows: (Coding) - Mark all old API as @Deprecated - Create new classes etc. - Update views etc. - Develop a migration servlet which copies data from the old model to the new model (Migration) - Deploy new app - Call migration servlet URL All tests on my local development environment were successful. The new datamodel is less complex than the old one, it contains only implicit relations and stores large data in a separate entity. That perfectly matches the application's scope, only minor refactorings were necessary to implement the new datamodel. However, the migration failed. Of course, I had already so much data in the system, that the request timed out. Now my datastore is half old and half new. Bummer. Luckily, that application is not really in production, so it is not a fatal loss. However, I'm wondering how such migration is usually done. - How do Ibackupmy datastore? - How do I run migration scripts (in my case =servlet)? Thank you, Moritz -- 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] Content caching and Compression
AFAIK gzip compression is turned on by default. You can verify this by looking at the content-encoding response header (i use the Live HTTP headers plugin for firebug/firefox). Regards, Stephan 2010/2/15 zainul franciscus zainul.francis...@gmail.com I was browsing through Google App Engine feature documentation. In certain page I found that Google App Engine does not support gzip compression nor content caching but on other page Google said that they have incorporated gzip compression feature in app engine. Does any body know whether google app engine support gzip compression and content caching ? If yes how can we do it. Cheers, Zainul Franciscus -- 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] DeadlineExceededException on LogFactory.getClass()
On Mon, Feb 15, 2010 at 4:29 PM, Heru Martinus Salim heru.sa...@googlemail.com wrote: Hello, I got a DeadlineExceededException as I initialize my Logger. Here is the code which threw this exception: private final org.apache.commons.logging.Log LOG = org.apache.commons.logging.LogFactory.getLog(this.getClass()); Any idea how could this happen? most likely it is not related to initializing the logger... imho it you are getting the DeadlineExceededException because starting up spring the first time takes too long (30 secs)... you should check out the documentation how to get spring up and running successfully on GAE... ra! This class is initialized via Spring Framework and also this exception is thrown on initializing the spring bean. Below is the error Log. Best regards, Heru [org.springframework.web.servlet.DispatcherServlet] - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginController' defined in class path resource [rumahmakan-servlet.xml]: Initialization of bean failed; nested exception is com.google.apphosting.api.DeadlineExceededException: This request (41e0e0837894c24e) started at 2010/02/15 08:42:29.271 UTC and was still executing at 2010/02/15 08:42:57.773 UTC. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402) at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316) at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282) at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126) at javax.servlet.GenericServlet.init(GenericServlet.java:215) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433) at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:612) at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) at 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:235) 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:363) at
Re: [appengine-java] Mail API / Sender Email Address
You could try to login to app-engine with your google apps account under https://appengine.google.com/a/YOURDOMAIN.COM/ Of course you have to create and deploy a new app instance in this account. I guess it is related to the fact that real google accounts (like google mail) and google apps accounts use different authentication infrastructures. Regards, Stephan 2010/2/14 Henning henning2...@hotmail.de Hello, I have set up my own .com domain on Google apps, set the CNAME entries and I can now access my google app engine project through my own .com address rather than appspot. I set up google mail as a google app on my domain too. If I have now a google mail account like m...@mydomain.com and my app runs on www.mydomain.com how can I send with my application emails with sender address m...@mydomain.com ? In the doc there it is said that only addresses of admins or developers are valid. I tried to create a new developer m...@mydomain.com but that does not work (no invitation email ever arrives). If I send an email from hotmail to m...@mydomain.com it arrives. What can I do ? I have a registration form and the password should be sent to the user by email. I don't want to provide the user my fancy hotmail address I used to register on app engine / google accounts originally. Thank you, Henning. -- 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: JPA still has the 1000 record limit in GAE 1.3.1?
I don't know about JPA, but with JDO you can use cursors now for simple get more than 1000 records. http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Query_Cursors It new new feauture http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes On Feb 15, 11:20 am, mjustin michael.jus...@gmx.net wrote: Thanks for your answer! My current code uses query.setFirstResult(n), is this still limited to 1000? Your link is rather old and covers Python, but I would like to use JPA with Java. Do I have to use JDO or will JPA drop the 1000 records limit later? Regards, On 15 Feb., 05:31, Timofey Koolin timo...@koolin.ru wrote: Offset get all records from datastore, than skip first n records. You can try to readhttp://code.google.com/appengine/articles/paging.html On Feb 15, 12:02 am, mjustin michael.jus...@gmx.net wrote: My application uses JPA and I see the same errors as in version 1.3.0 now. If I count records in a table which has more than 1000 entries, the result is 1000. If I try to start a Query at an offset 1000, this error occurs: Caused by: java.lang.IllegalArgumentException: offset may not be above 1000 at com.google.appengine.api.datastore.DatastoreApiHelper.translateError(Datast oreApiHelper.java: 33) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(Datastor eApiHelper.java: 60) at com.google.appengine.api.datastore.PreparedQueryImpl.runQuery(PreparedQuery Impl.java: 115) at com.google.appengine.api.datastore.PreparedQueryImpl.asQueryResultList(Prep aredQueryImpl.java: 75) at org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery(Dat astoreQuery.java: 359) at org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery(Datastore Query.java: 269) at org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(Datasto reQuery.java: 228) at org.datanucleus.store.appengine.query.JPQLQuery.performExecute(JPQLQuery.ja va: 77) at org.datanucleus.store.query.Query.executeQuery(Query.java:1489) at org.datanucleus.store.query.Query.executeWithMap(Query.java:1398) at org.datanucleus.jpa.JPAQuery.getResultList(JPAQuery.java:163) Does this mean only the native API and JDO can use more than 1000 records in a query? Regards, -- 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] AppCfg error
you can see:Using Apache Anthttp://code.google.com/appengine/docs/java/tools/ant.html 在 2010年2月16日 上午5:40,Andreas Blomqvist blomqvist.andr...@gmail.com写道: Hi Still has this problem. Using Netbeans 6.8 on SnowLeopard 10.6 (OSX) What build file are you refering to? The build-impl.xml or the ant-deploy.xml ? Thanks 2010/1/30 杨浩 skzr@gmail.com after gae set,this is a e.x: target name=GAE update description=Uploads the application to App Engine. echo开始更新GAE.../echo appcfg action=update war=war/ /target -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Problem with Junit Test with JDO
Thanks, but error not repeated, when I re-create project. On Feb 13, 11:50 pm, Moritz mor...@cloudme.org wrote: Remove datanucleus-appengine-1.0.5.final.jar from your build path, but leave it in the WEB-INF/lib folder. On 13 Feb., 07:07, Timofey Koolin timo...@koolin.ru wrote: I use eclipse. I create new project for create Junit tests of my GAE application, add my gae application in JavaBuildPath/Project. Than i copy all jars from sdk to lib in my project and add all to build path. in constructor i create helper: helper = new LocalServiceTestHelper( new LocalDatastoreServiceTestConfig() ); in setUp method i do helper.setUp(); PersistenceManager pm = PMF.get().getPersistenceManager(); // - this line throw exception (stacktrace below) I tried create jdoconfig.xml - but have compile error - duplicate description. java.lang.ExceptionInInitializerError at ru.abc_software.horoscope.test.HoroscopePageTest.Empty(HoroscopePageTest.ja va: 35) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.junit.runners.model.FrameworkMethod $1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable. java: 15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.j ava: 41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.ja va: 20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.ja va: 73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.ja va: 46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestRe ference.java: 46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR unner.java: 467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestR unner.java: 683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner .java: 390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunne r.java: 197) Caused by: javax.jdo.JDOFatalInternalException: Unexpected exception caught. NestedThrowables: java.lang.reflect.InvocationTargetException at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOH elper.java: 1186) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 803) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 1086) at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java: 914) at ru.abc_software.horoscope.test.PMF.clinit(PMF.java:8) ... 25 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at javax.jdo.JDOHelper$16.run(JDOHelper.java:1956) at java.security.AccessController.doPrivileged(Native Method) at javax.jdo.JDOHelper.invoke(JDOHelper.java:1951) at javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOH elper.java: 1159) ... 29 more Caused by: org.datanucleus.exceptions.NucleusException: Plugin (Bundle) org.datanucleus.jpa is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath. The URL file:/C:/Users/Timofey.NovaBigBook-PC/Documents/Eclipse/
[appengine-java] GWT Integration with Acegi to run on AppEngine.
Hi, I would like to know if GWT can be integrated with Acegi to run on AppEngine. I have read the link below. But, looking for more detailed information. http://code.google.com/p/gwt-ent/wiki/IntegrationGWTWithAcegi Can anyone provide any better ways of providing form based login. I know that it can be done by sending a cookie and starting a session as described in http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ. But, my question is, does GWT give us a way to protect a resource and provide access to it based on login? Please provide any resources or ideas. Looking forward for the reply. Thanks, Shyam Visamsetty -- 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: Handling HardDeadlineExceededError
We don't currently make any guarantees about throwing DeadlineExceededException or HardDeadlineExceededError if you're in a tight CPU loop. We may in the future, but for the moment please only rely on getting notifications of deadlines if you're doing one of the following: a) periodically making API calls, b) periodically doing I/O (e.g. loading data from files), or c) sleeping. On Mon, Feb 15, 2010 at 10:58 AM, Esteban Masoero emaso...@getsense.com.arwrote: yes, I'm sure I'm not catching anything. In fact, I did some tests and find out that most of the time the deadline exception is not thrown when executing some code (untill now the deadline exception only happened once), but It is always thrown when you are doing something like sleep(). If you are executing some code, then most of the time I only get a message of Error: Server Error with status code 500 (and strangely the log doesn't say anything this time, but I guess is still the HardDeadlineExceededError). Here's the code: public class SimpleServlet extends HttpServlet { private static final long serialVersionUID = -3775863594932985057L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { int time = req.getParameter(sleep) != null ? Integer.valueOf(req.getParameter(sleep)) : 40; resp.getWriter().println(Sleeping + time + seconds...); Thread.sleep(time * 1000); resp.getWriter().println(Interating infinitly...); int i = 0; boolean b = true; while (b) { i++; } } catch (InterruptedException e) { System.out.println(InterruptedException); resp.getWriter().println(InterruptedException); } catch (DeadlineExceededException e) { System.out.println(DeadlineExceededException); resp.getWriter().println(DeadlineExceededException); } catch (Throwable e) { System.out.println(Catch throwable); resp.getWriter().println(Catch throwable); } } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); } } I guess the deadline handling process ise still a bit immature and we should not rely upon it. Thanks, Esteban El 12/02/2010 18:40, John Patterson escribió: I believe that the stack trace from a HDEE is not accurate. I found that it seemed to be copied from the first DEE. Are you sure you are not catching and ignoring this first? On 12 Feb 2010, at 22:24, Esteban Ignacio Masoero wrote: Hi there: I'm facing the same problem. I tried and I tried and I still can't catch any deadlineException that is supossed to be thrown when I exceed the 30 seconds. The only thing I see is a HardDeadlineExceededError, and in my case it ocurrs in the middle of a JDOQuery.deletePersistentAll() method. Anyone has any ideas? All I want to do is make sure that I'm handling that situation in case it happens. Here's the stack: com.google.apphosting.runtime.HardDeadlineExceededError: This request (ccc45fc5ce7541bd) started at 2010/02/12 14:51:12.763 UTC and was still executing at 2010/02/12 14:51:42.551 UTC. at com.google.appengine.runtime.Request.process-ccc45fc5ce7541bd(Request.java) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(Unknown Source) at java.util.concurrent.CountDownLatch.await(Unknown Source) at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish(RpcWaiter.java:96) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:52) at com.google.appengine.api.datastore.DatastoreServiceImpl$3.run(DatastoreServiceImpl.java:225) at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30) at com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:211) at com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:192) at com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:184) at org.datanucleus.store.appengine.RuntimeExceptionWrappingDatastoreService.delete(RuntimeExceptionWrappingDatastoreService.java:141) at org.datanucleus.store.appengine.DatastorePersistenceHandler.delete(DatastorePersistenceHandler.java:196) at
[appengine-java] How to get testing working with anything other than the default queue
Prior to version 2.01 I was able to get testing to work with other queues by the following code: LocalTaskQueue ltq = LocalTaskQueueTestConfig.getLocalTaskQueue(); LocalServiceContext ctx = new LocalServiceContext() { public File getAppDir() { Logger.getAnonymousLogger().info(trying to run getAppDir()); File file = new File(war); return file; } }; HashMapString,String prop = new HashMapString,String(); ltq.init(ctx, prop); ltq.start(); You had to tell it where to find the config file queue.xml. Now after upgrading and using private static LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalTaskQueueTestConfig()); along with: helper.setUp I am getting the old testing errors of: java.lang.IllegalStateException: The specified queue is unknown : How do I get the Queue environment to recognize the queues in the queue.xml file? -- 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] How to get testing working with anything other than the default queue
Try this: private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalTaskQueueTestConfig()) { @Override protected LocalServerEnvironment newLocalServerEnvironment() { final LocalServerEnvironment lse = super.newLocalServerEnvironment(); return new LocalServerEnvironment() { public File getAppDir() { return new File(dir/with/queues.xml); } public String getAddress() { return lse.getAddress(); } public int getPort() { return lse.getPort(); } public void waitForServerToStart() throws InterruptedException { lse.waitForServerToStart(); } }; } }; On Tue, Feb 16, 2010 at 9:35 AM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max On Tue, Feb 16, 2010 at 9:24 AM, Will Bunker w...@thebunkers.com wrote: Prior to version 2.01 I was able to get testing to work with other queues by the following code: LocalTaskQueue ltq = LocalTaskQueueTestConfig.getLocalTaskQueue(); LocalServiceContext ctx = new LocalServiceContext() { public File getAppDir() { Logger.getAnonymousLogger().info(trying to run getAppDir()); File file = new File(war); return file; } }; HashMapString,String prop = new HashMapString,String(); ltq.init(ctx, prop); ltq.start(); You had to tell it where to find the config file queue.xml. Now after upgrading and using private static LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalTaskQueueTestConfig()); along with: helper.setUp I am getting the old testing errors of: java.lang.IllegalStateException: The specified queue is unknown : How do I get the Queue environment to recognize the queues in the queue.xml file? -- 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: 500 internal server error
You can try logging into App Engine Admin Panel (http:// appengine.google.com), select Logs and you can filter the Logs by Error,Info,Debug,etc, and you might see the stacktrace where it breaks in your code. On Feb 14, 5:22 am, karthikeyan s.p spkarthikeya...@gmail.com wrote: Hi, I have created a web application that can be accessed with this link,http://publicationnumbersearch.appspot.com/ It gives 500 internal server error and I am not able to find why and what causes the problem. How can I find the problem and what would have been wrong here. Thanks. Karthi. -- 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] Citical Security error in Accounts Java API: request.getUserPrincipal() gets wrong username/email
Hello, I use App Engine in my Google Apps domain and restricted the authentification of app engine to my apps domain. (see http://code.google.com/appengine/articles/auth.html ) I developed a widget and use this in multiple accounts of my google apps domain. When i switch from one account (of my apps domain) to the other, the former account is displayed in the widget (Java: request.getUserPrincipal().getName() ). So the gadget placed on my Google Apps Inbox displays data of a user different to the user logged in to google apps. I noticed that the problems goes away when i wait some minutes ( session expiration ?? ). see picture: http://picasaweb.google.com/lh/photo/QDcR2Lgk2xI2-UQ77BoGXw?feat=directlink -- 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] NullPointerException at Transaction.commit()
import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Transaction; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.persistence.Query; import com.google.gwt.user.client.Window; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.wissen.enterprisebysush.client.GreetingService; import com.wissen.enterprisebysush.server.domainobject.Department; import com.wissen.enterprisebysush.server.domainobject.Employee; /** * The server side implementation of the RPC service. */ @SuppressWarnings(serial) public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { EntityManagerFactory emf = Persistence.createEntityManagerFactory(transactions-optional); public String greetServer(String input) { String serverInfo = getServletContext().getServerInfo(); String userAgent = getThreadLocalRequest().getHeader(User- Agent); return Hello, + input + !brbrI am running + serverInfo + .brbrIt looks like you are using:br + userAgent; } @SuppressWarnings(unchecked) public void addDept(String dept_name, String dept_head) { EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Department d = new Department(); d.setDept_name(dept_name); d.setHead(dept_head); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); ListDepartment deptList = q.getResultList(); for (Department dept : deptList) { System.out.println(Department name: + dept.getDept_name()); } em.persist(d); } finally { em.getTransaction().commit(); em.close(); } } public void addEmp(String emp_name, String emp_sal, String did) { EntityManager em = emf.createEntityManager(); try { String s = did; EntityTransaction transaction = em.getTransaction(); transaction.begin(); System.out.println(value of Department_name is:: + s); System.out.println(Transaction is active and is::+transaction); //Query q = em.createQuery(select dept_id from com.wissen.enterprisebysush.server.domainobject.Department d where d.dept_name = ?1); //q.setParameter(1, s); //System.out.println(Name of Department is:: + s); //Department dept = (Department) q.getSingleResult(); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); Department dept = (Department) q.getResultList().get(0); System.out.println(Name of Department is:: + dept.getDept_name()); //System.out.println(Query executed Successfully!! + q.getSingleResult()); Employee e = new Employee(); e.setEmp_name(Abdch); e.setEmp_sal(5000); e.setDepartment(dept); em.persist(e); System.out.println(Transaction: + transaction); transaction.commit(); em.close(); } catch (NullPointerException e) { e.printStackTrace(); System.out.println(Exception:: + e.getCause()); } finally { } } } output:: value of Department_name is::Production Transaction is active and is::org.datanucleus.jpa.entitytransactioni...@1a21c7d Name of Department is::Accounts Transaction: org.datanucleus.jpa.entitytransactioni...@1a21c7d java.lang.NullPointerException Exception::null at com.google.appengine.api.datastore.KeyFactory.stringToKey(KeyFactory.java: 181) at org.datanucleus.store.appengine.DatastoreElementContainerStoreSpecialization.extractElementKey(DatastoreElementContainerStoreSpecialization.java: 170) at org.datanucleus.store.appengine.DatastoreAbstractCollectionStoreSpecialization.contains(DatastoreAbstractCollectionStoreSpecialization.java: 57) at org.datanucleus.store.mapped.scostore.AbstractCollectionStore.contains(AbstractCollectionStore.java: 116) at org.datanucleus.sco.backed.List.contains(List.java:455) at org.datanucleus.state.RelationshipManager.processManyToOneBidirectionalRelation(RelationshipManager.java: 690) at org.datanucleus.state.RelationshipManager.process(RelationshipManager.java: 294) at org.datanucleus.state.JDOStateManagerImpl.processManagedRelations(JDOStateManagerImpl.java: 2377) at org.datanucleus.ObjectManagerImpl.performManagedRelationships(ObjectManagerImpl.java: 2706) at org.datanucleus.ObjectManagerImpl.flush(ObjectManagerImpl.java: 2744)
[appengine-java] Jpa gae nullpoiterException
Dear all, I am getting NullPointerException in the following code for the transaction tx. Please reply me soon. Code: package com.wissen.enterprisebysush. server; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Transaction; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.persistence.Query; import com.google.gwt.user.client.Window; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.wissen.enterprisebysush.client.GreetingService; import com.wissen.enterprisebysush.server.domainobject.Department; import com.wissen.enterprisebysush.server.domainobject.Employee; /** * The server side implementation of the RPC service. */ @SuppressWarnings(serial) public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { EntityManagerFactory emf = Persistence.createEntityManagerFactory(transactions-optional); public String greetServer(String input) { String serverInfo = getServletContext().getServerInfo(); String userAgent = getThreadLocalRequest().getHeader(User-Agent); return Hello, + input + !brbrI am running + serverInfo + .brbrIt looks like you are using:br + userAgent; } @SuppressWarnings(unchecked) public void addDept(String dept_name, String dept_head) { EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Department d = new Department(); d.setDept_name(dept_name); d.setHead(dept_head); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); ListDepartment deptList = q.getResultList(); for (Department dept : deptList) { System.out.println(Department name: + dept.getDept_name()); } em.persist(d); } finally { em.getTransaction().commit(); em.close(); } } public void addEmp(String emp_name, String emp_sal, String did) { EntityManager em = emf.createEntityManager(); try { String s = did; EntityTransaction transaction = em.getTransaction(); transaction.begin(); System.out.println(value of Department_name is:: + s); System.out.println(Transaction is active and is::+transaction); //Query q = em.createQuery(select dept_id from com.wissen.enterprisebysush.server.domainobject.Department d where d.dept_name = ?1); //q.setParameter(1, s); //System.out.println(Name of Department is:: + s); //Department dept = (Department) q.getSingleResult(); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); Department dept = (Department) q.getResultList().get(0); System.out.println(Name of Department is:: + dept.getDept_name()); //System.out.println(Query executed Successfully!! + q.getSingleResult()); Employee e = new Employee(); e.setEmp_name(Ritesh Navandar); e.setEmp_sal(5000); e.setDepartment(dept); em.persist(e); System.out.println(Transaction: + transaction); transaction.commit(); em.close(); } catch (NullPointerException e) { e.printStackTrace(); System.out.println(Exception:: + e.getCause()); } finally { } } } -- Regards, Sujata... -- 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] Compass on Google App Engine
Hello Folks, I think deploying a compass app on gae is not possible because the core compass interface extends javax.naming.Referenceable which is not on google's whitelist.I encoutered a similar problem when I call buildCompass() It throws a NoClassDefFoundError on org.compass.core.impl.DefaultCompass Any thoughts?? anyone? -- 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] Null Pointer Exception at the time of transaction commit.
package com.wissen.enterprisebysush.server; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Transaction; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.EntityTransaction; import javax.persistence.Persistence; import javax.persistence.Query; import com.google.gwt.user.client.Window; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.wissen.enterprisebysush.client.GreetingService; import com.wissen.enterprisebysush.server.domainobject.Department; import com.wissen.enterprisebysush.server.domainobject.Employee; /** * The server side implementation of the RPC service. */ @SuppressWarnings(serial) public class GreetingServiceImpl extends RemoteServiceServlet implements GreetingService { EntityManagerFactory emf = Persistence.createEntityManagerFactory(transactions-optional); public String greetServer(String input) { String serverInfo = getServletContext().getServerInfo(); String userAgent = getThreadLocalRequest().getHeader(User-Agent); return Hello, + input + !brbrI am running + serverInfo + .brbrIt looks like you are using:br + userAgent; } @SuppressWarnings(unchecked) public void addDept(String dept_name, String dept_head) { EntityManager em = null; try { em = emf.createEntityManager(); em.getTransaction().begin(); Department d = new Department(); d.setDept_name(dept_name); d.setHead(dept_head); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); ListDepartment deptList = q.getResultList(); for (Department dept : deptList) { System.out.println(Department name: + dept.getDept_name()); } em.persist(d); } finally { em.getTransaction().commit(); em.close(); } } public void addEmp(String emp_name, String emp_sal, String did) { EntityManager em = emf.createEntityManager(); try { String s = did; EntityTransaction transaction = em.getTransaction(); transaction.begin(); System.out.println(value of Department_name is:: + s); System.out.println(Transaction is active and is::+transaction); //Query q = em.createQuery(select dept_id from com.wissen.enterprisebysush.server.domainobject.Department d where d.dept_name = ?1); //q.setParameter(1, s); //System.out.println(Name of Department is:: + s); //Department dept = (Department) q.getSingleResult(); Query q = em.createQuery(select from com.wissen.enterprisebysush.server.domainobject.Department d); Department dept = (Department) q.getResultList().get(0); System.out.println(Name of Department is:: + dept.getDept_name()); //System.out.println(Query executed Successfully!! + q.getSingleResult()); Employee e = new Employee(); e.setEmp_name(Abcdh); e.setEmp_sal(5000); e.setDepartment(dept); em.persist(e); System.out.println(Transaction: + transaction); transaction.commit(); em.close(); } catch (NullPointerException e) { e.printStackTrace(); System.out.println(Exception:: + e.getCause()); } finally { } } } Output is:: The server is running at http://localhost:8090/ value of Department_name is::Production Transaction is active and is::org.datanucleus.jpa.entitytransactioni...@1a21c7d Name of Department is::Accounts Transaction: org.datanucleus.jpa.entitytransactioni...@1a21c7d java.lang.NullPointerException Exception::nullat com.google.appengine.api.datastore.KeyFactory.stringToKey(KeyFactory.java:181) at org.datanucleus.store.appengine.DatastoreElementContainerStoreSpecialization.extractElementKey(DatastoreElementContainerStoreSpecialization.java:170) at org.datanucleus.store.appengine.DatastoreAbstractCollectionStoreSpecialization.contains(DatastoreAbstractCollectionStoreSpecialization.java:57) at org.datanucleus.store.mapped.scostore.AbstractCollectionStore.contains(AbstractCollectionStore.java:116) at org.datanucleus.sco.backed.List.contains(List.java:455) at org.datanucleus.state.RelationshipManager.processManyToOneBidirectionalRelation(RelationshipManager.java:690) at org.datanucleus.state.RelationshipManager.process(RelationshipManager.java:294) at org.datanucleus.state.JDOStateManagerImpl.processManagedRelations(JDOStateManagerImpl.java:2377) at org.datanucleus.ObjectManagerImpl.performManagedRelationships(ObjectManagerImpl.java:2706) at
[appengine-java] problem while deploying app engine
Hi, I just started using GWT and I am trying to deploy my first app on app engine.. I am getting the following error while doing Deploy to App Engine... Unable to update app: Connection timed out: connect com.google.appengine.tools.admin.AdminException: Unable to update app: Connection timed out: connect at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.protocol.https.HttpsClient.init(Unknown Source) at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 338) at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 133) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 532) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 349) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more any help would be highly appreciated.. 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.
[appengine-java] Re: How to get testing working with anything other than the default queue
Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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 testing working with anything other than the default queue
By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks: http://code.google.com/appengine/docs/java/tools/localunittesting/javadoc/com/google/appengine/tools/development/testing/LocalTaskQueueTestConfig.html Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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: How to get testing working with anything other than the default queue
This workaround works, all I have to do is give it: return new File(war); and it finds the queue.xml file. Is there another location other than the war/WEB-INF/queue.xml the file is supposed to be in? -- 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 testing working with anything other than the default queue
I am saying that it is not reading queue.xml. I am testing to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks:http://code.google.com/appengine/docs/java/tools/localunittesting/jav... Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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: How to get testing working with anything other than the default queue
I see. In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up. On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying that it is not reading queue.xml. I am testing to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks: http://code.google.com/appengine/docs/java/tools/localunittesting/jav... Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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 . 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: How to get testing working with anything other than the default queue
Is that the best expected behavior. Should I have to remember to move over a new copy of queue.xml if it changes in the war directory. Or should it pick up the actual directory?? I am thinking of doing a link on the file system as a workaround. Thanks for your help. On Feb 16, 10:47 am, Max Ross (Google) maxr+appeng...@google.com wrote: I see. In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up. On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying that it is not reading queue.xml. I am testing to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks: http://code.google.com/appengine/docs/java/tools/localunittesting/jav... Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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 . 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: How to get testing working with anything other than the default queue
I put in queue.xml in the test directory and it didn't seem to find it. On Feb 16, 10:47 am, Max Ross (Google) maxr+appeng...@google.com wrote: I see. In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up.I On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying that it is not reading queue.xml. I am testing to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks: http://code.google.com/appengine/docs/java/tools/localunittesting/jav... Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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 . 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: Tag search
I am sorry but it does not work. With 1 objects and searching for 2 tags we got following error. com.google.appengine.api.datastore.DatastoreNeedIndexException: The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query.. Unable to determine what index is missing. This is probably a bug in the App Engine SDK. Solution I have proposed is not effecient enough when inserting data. It may take ~5 seconds per object. May be we have to host tag search server outside of google app engine. :( or decrease number of tags to minimum On Feb 12, 2:22 pm, Max max.seven@gmail.com wrote: Thank You very much it works! correct code is:- query.setFilter(tags == 'hello' tags == 'world'); I hope it will work with thousands and millions of records as well. I have not tested with large number of data yet. Thanks again! On Feb 12, 2:46 am, John Patterson jdpatter...@gmail.com wrote: On 12 Feb 2010, at 06:53, Max wrote: I have not coded much in native API but I think it will search first for hello and then for world then mix results. No, it does a merge join - only returning entities that match all filters - not separate queries like the JDO contains() creates. -- 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: Handling HardDeadlineExceededError
Thanks for the response Don. I would suggest altering the page http://code.google.com/intl/en/appengine/docs/java/runtime.html to clarify this. Thanks again, Esteban El 16/02/2010 13:08, Don Schwarz escribió: We don't currently make any guarantees about throwing DeadlineExceededException or HardDeadlineExceededError if you're in a tight CPU loop. We may in the future, but for the moment please only rely on getting notifications of deadlines if you're doing one of the following: a) periodically making API calls, b) periodically doing I/O (e.g. loading data from files), or c) sleeping. On Mon, Feb 15, 2010 at 10:58 AM, Esteban Masoero emaso...@getsense.com.ar mailto:emaso...@getsense.com.ar wrote: yes, I'm sure I'm not catching anything. In fact, I did some tests and find out that most of the time the deadline exception is not thrown when executing some code (untill now the deadline exception only happened once), but It is always thrown when you are doing something like sleep(). If you are executing some code, then most of the time I only get a message of Error: Server Error with status code 500 (and strangely the log doesn't say anything this time, but I guess is still the HardDeadlineExceededError). Here's the code: public class SimpleServlet extends HttpServlet { private static final long serialVersionUID = -3775863594932985057L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { int time = req.getParameter(sleep) != null ? Integer.valueOf(req.getParameter(sleep)) : 40; resp.getWriter().println(Sleeping + time + seconds...); Thread.sleep(time * 1000); resp.getWriter().println(Interating infinitly...); int i = 0; boolean b = true; while (b) { i++; } } catch (InterruptedException e) { System.out.println(InterruptedException); resp.getWriter().println(InterruptedException); } catch (DeadlineExceededException e) { System.out.println(DeadlineExceededException); resp.getWriter().println(DeadlineExceededException); } catch (Throwable e) { System.out.println(Catch throwable); resp.getWriter().println(Catch throwable); } } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); } } I guess the deadline handling process ise still a bit immature and we should not rely upon it. Thanks, Esteban El 12/02/2010 18:40, John Patterson escribió: I believe that the stack trace from a HDEE is not accurate. I found that it seemed to be copied from the first DEE. Are you sure you are not catching and ignoring this first? On 12 Feb 2010, at 22:24, Esteban Ignacio Masoero wrote: Hi there: I'm facing the same problem. I tried and I tried and I still can't catch any deadlineException that is supossed to be thrown when I exceed the 30 seconds. The only thing I see is a HardDeadlineExceededError, and in my case it ocurrs in the middle of a JDOQuery.deletePersistentAll() method. Anyone has any ideas? All I want to do is make sure that I'm handling that situation in case it happens. Here's the stack: com.google.apphosting.runtime.HardDeadlineExceededError: This request (ccc45fc5ce7541bd) started at 2010/02/12 14:51:12.763 UTC and was still executing at 2010/02/12 14:51:42.551 UTC. at com.google.appengine.runtime.Request.process-ccc45fc5ce7541bd(Request.java) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(Unknown Source) at java.util.concurrent.CountDownLatch.await(Unknown Source) at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish(RpcWaiter.java:96) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:52) at com.google.appengine.api.datastore.DatastoreServiceImpl$3.run(DatastoreServiceImpl.java:225) at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30) at com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:211) at
Re: [appengine-java] can not get message containing embedded widget to work
This sounds like a Google Web Toolkit question. Have you tried posting there? http://groups.google.com/group/Google-Web-Toolkit On Fri, Feb 12, 2010 at 3:45 PM, laurent cha...@gmail.com wrote: when defining a simple embedded link in a msg, using uibinder, I can not get the text of the Hyperlink to appear without a br (I would like to get in a single line starts at hyp01 but I keep on getting start at hyp01 - panel definition from xml --- g:HTMLPanel ui:msg starts at, g:Hyperlink ui:field=hyper1uhyp01/u/g:Hyperlink /ui:msg /g:HTMLPanel -- 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] GWT Developer Plugin for Safari 4.0.4!
Can you ask on the Google Web Toolkit groups? http://groups.google.com/group/Google-Web-Toolkit On Sat, Feb 13, 2010 at 11:11 AM, Babgali babuvi...@gmail.com wrote: Can any one please help me out on getting GWT Developer Plugin for Safari 4.0.4 to read MIME type application/x-gwt-hosted-mode. -- 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] Re: Handling HardDeadlineExceededError
In case anyone is interested in the feature Don talked about, you can vote it here: http://code.google.com/p/googleappengine/issues/detail?id=2782 . Regards, Esteban On Tue, Feb 16, 2010 at 5:56 PM, Esteban Masoero emaso...@getsense.com.arwrote: Thanks for the response Don. I would suggest altering the page http://code.google.com/intl/en/appengine/docs/java/runtime.html to clarify this. Thanks again, Esteban El 16/02/2010 13:08, Don Schwarz escribió: We don't currently make any guarantees about throwing DeadlineExceededException or HardDeadlineExceededError if you're in a tight CPU loop. We may in the future, but for the moment please only rely on getting notifications of deadlines if you're doing one of the following: a) periodically making API calls, b) periodically doing I/O (e.g. loading data from files), or c) sleeping. On Mon, Feb 15, 2010 at 10:58 AM, Esteban Masoero emaso...@getsense.com.ar wrote: yes, I'm sure I'm not catching anything. In fact, I did some tests and find out that most of the time the deadline exception is not thrown when executing some code (untill now the deadline exception only happened once), but It is always thrown when you are doing something like sleep(). If you are executing some code, then most of the time I only get a message of Error: Server Error with status code 500 (and strangely the log doesn't say anything this time, but I guess is still the HardDeadlineExceededError). Here's the code: public class SimpleServlet extends HttpServlet { private static final long serialVersionUID = -3775863594932985057L; @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { try { int time = req.getParameter(sleep) != null ? Integer.valueOf(req.getParameter(sleep)) : 40; resp.getWriter().println(Sleeping + time + seconds...); Thread.sleep(time * 1000); resp.getWriter().println(Interating infinitly...); int i = 0; boolean b = true; while (b) { i++; } } catch (InterruptedException e) { System.out.println(InterruptedException); resp.getWriter().println(InterruptedException); } catch (DeadlineExceededException e) { System.out.println(DeadlineExceededException); resp.getWriter().println(DeadlineExceededException); } catch (Throwable e) { System.out.println(Catch throwable); resp.getWriter().println(Catch throwable); } } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doGet(req, resp); } } I guess the deadline handling process ise still a bit immature and we should not rely upon it. Thanks, Esteban El 12/02/2010 18:40, John Patterson escribió: I believe that the stack trace from a HDEE is not accurate. I found that it seemed to be copied from the first DEE. Are you sure you are not catching and ignoring this first? On 12 Feb 2010, at 22:24, Esteban Ignacio Masoero wrote: Hi there: I'm facing the same problem. I tried and I tried and I still can't catch any deadlineException that is supossed to be thrown when I exceed the 30 seconds. The only thing I see is a HardDeadlineExceededError, and in my case it ocurrs in the middle of a JDOQuery.deletePersistentAll() method. Anyone has any ideas? All I want to do is make sure that I'm handling that situation in case it happens. Here's the stack: com.google.apphosting.runtime.HardDeadlineExceededError: This request (ccc45fc5ce7541bd) started at 2010/02/12 14:51:12.763 UTC and was still executing at 2010/02/12 14:51:42.551 UTC. at com.google.appengine.runtime.Request.process-ccc45fc5ce7541bd(Request.java) at sun.misc.Unsafe.park(Native Method) at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown Source) at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(Unknown Source) at java.util.concurrent.CountDownLatch.await(Unknown Source) at com.google.net.rpc.util.RpcWaiter.waitForRpcsToFinish(RpcWaiter.java:96) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:48) at com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:52) at com.google.appengine.api.datastore.DatastoreServiceImpl$3.run(DatastoreServiceImpl.java:225) at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:30) at com.google.appengine.api.datastore.DatastoreServiceImpl.delete(DatastoreServiceImpl.java:211) at
Re: [appengine-java] delete log and entities
Hi, I'm also interested in a both features, mainly the datastore one. Are we going to have something like this soon? Thanks, Esteban El 30/01/2010 6:08, Andrés Cerezo escribió: Hello!! Ho can I delete the logs and the entities of my project in app engine? I need it to initializate all the system. 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.
[appengine-java] App Engine and Spring slow start up
Hello Google App Engine forum, We have been seeing ever since we deployed our applications (currently 3 of them) that when our application instances become idle (they have not been hit for x amount of seconds) subsequent requests return with a 500 response. Logs show a hard deadline exceeded error com.google.apphosting.runtime.HardDeadlineExceededError: This request (32306ebe63b71ab0) started at 2010/02/12 20:39:11.984 UTC and was still executing at 2010/02/12 20:39:41.225 UTC. at com.google.appengine.runtime.Request.process-32306ebe63b71ab0(Request.java) And the first line of the log message has the following : 02-12 12:39PM 14.088 javax.servlet.ServletContext log: Initializing Spring root WebApplicationContext Question: Has anyone else seen this behavior? How long does it take for an application instance to become idle? 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: Getting the size of a http request?
This data may come from a system outside App Engine before being sent to the request logs. At any rate, it's not available in an API yet, and would likely only be in aggregated form or seriously delayed. At any rate, you may wish to create a feature request and star it: http://code.google.com/p/googleappengine/issues/list On Sun, Feb 14, 2010 at 9:48 PM, armanuj arun_rama...@yahoo.com wrote: Ok, Thanks, Ikai. I will try this (subject to latency considerations), and let you know. I am assuming GAE tracks the bytes flowing on the wire and log it - could there be access to such data from the logs for each request? If so, how to enable such logging and how to access such data from the logs? Thanks, Arun On Feb 5, 11:56 pm, Ikai L (Google) ika...@google.com wrote: It's not going to be pretty, but you can manually get the size using either getInputStream() or getReader() and just iterating until you get to the end, incrementing your count by your buffer size each time, then counting the final result: http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/Servle... On Fri, Feb 5, 2010 at 3:37 AM, armanuj arun_rama...@yahoo.com wrote: One more clarification: in my get or post request, there is no file upload involved. I just want the total number of bytes transferred in a GET or a form-based POST request, and this is done by our custom client application (and not the browser). Thanks, Arun On Jan 28, 4:31 am, Ikai L (Google) ika...@google.com wrote: Are there places where this isn't reliably set? In my servlet I am calling: int contentLength = request.getContentLength(); This works with the following form: form action=/content_length method=POST enctype=multipart/form-data input type=file name=somefile / input type=text name=sometext / input type=submit / /form On Mon, Jan 25, 2010 at 3:46 AM, armanuj arama...@gmail.com wrote: Hello, How can one get the byte size of a http request, esp. in the context of a Java servlet being used in the Google app. engine? Is there a way to do this where the 'Content-Length' is not set (or not reliably set) in the get/post headers? Appreciate your help in this. Thanks, Arun -- 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@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 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. -- 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.
[appengine-java] How to get more than one Testing Environment going
I have a section of code that uses both TaskQueue and Datastore services. I can get one or the other working with: private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()); or private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalTaskQueueTestConfig()); how do I get both environments set up simultaneously so that my data is cleared and queues are functioning? -- 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] Problems using a ThreadLocal variable
Hi there: Since today, my app started to have problems when using a ThreadLocal variable. I'm using wicket framework, and it happens that the first request to the page is fine, but sometimes I get an exception caused by wicket saying that the app (which is stored in a threadlocal variable) is not found (is null). I didn't make any change to the framework related to that, I only made some minor changes that have no relation to this problem. Has anyone experienced something alike? Can any guy from google give some hint about this? Thanks, Esteban -- 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] Custom User Management using App Engine and GWT
Yes, though you will have to maintain your own User models and not use the UsersService (read only). You could also use GData and work with User's contact and calendar information, to name a few places you could start. On Tue, Feb 16, 2010 at 8:56 AM, VSS shyamsunder...@gmail.com wrote: Hi, Can I implement custom user management using App Engine and GWT and host the app on app-engine. Thanks, Shyam -- 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] Re: Tag search
How many different kinds of tags are there? Is this an exploding indexes situation? http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes On Tue, Feb 16, 2010 at 12:34 PM, Max max.seven@gmail.com wrote: I am sorry but it does not work. With 1 objects and searching for 2 tags we got following error. com.google.appengine.api.datastore.DatastoreNeedIndexException: The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query.. Unable to determine what index is missing. This is probably a bug in the App Engine SDK. Solution I have proposed is not effecient enough when inserting data. It may take ~5 seconds per object. May be we have to host tag search server outside of google app engine. :( or decrease number of tags to minimum On Feb 12, 2:22 pm, Max max.seven@gmail.com wrote: Thank You very much it works! correct code is:- query.setFilter(tags == 'hello' tags == 'world'); I hope it will work with thousands and millions of records as well. I have not tested with large number of data yet. Thanks again! On Feb 12, 2:46 am, John Patterson jdpatter...@gmail.com wrote: On 12 Feb 2010, at 06:53, Max wrote: I have not coded much in native API but I think it will search first for hello and then for world then mix results. No, it does a merge join - only returning entities that match all filters - not separate queries like the JDO contains() creates. -- 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] Re: bulk download error 403
The Google Apps control panel does not affect who is a admin on a particular app engine application. That's controlled by the App Engine admin console, e.g. http://appengine.google.com/permissions?app_id=myprogram . For remote_api to work you also need the admin to match the authentication option of the application, e.g. whatever it says on http://appengine.google.com/domain?app_id=myprogram for Authentication Options. If it says anyone with a valid Google Account then you need to use a non-Google Apps account for the admin with remote API. This is often simplest to do with a Gmail account. If it says anyone with a valid *yourdomain* Google Apps domain, then only admins on the Permissions page with Google Apps account in that domain will work. Hopefully this clarifies things--it's confusing because there are so many different places to check. --Matthew On Dec 24 2009, 1:48 am, lembas keremo...@gmail.com wrote: First of all, sorry for writing remote instead of bulkload in my last 2 posts. There is no remote version. The only version is bulkload. I created it with Python like I said in my first post in this thread. I logged out my gmail.com account and mydomain.com account in my browser. Then I visithttp://bulkload.latest.myprogram.appspot.com/remote_api. There comes a login page of mydomain.com. When I login with my admin account on mydomain.com, it says Error: Forbidden Your client does not have permission to get URL /remote_api from this server. I do not use GAE UserService anywhere in my code. I do not have any security-constraint in my web.xml. I looked at the logs as you said. I have the following in my request- only-filtered log: 12-24 01:33AM 02.761 /remote_api 403 36ms 0cpu_ms 0kb Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.6 (KHTML, like Gecko) Chrome/4.0.266.0 Safari/532.6,gzip(gfe) See details 193.xxx.yyy.zzz - myid [24/Dec/2009:01:33:02 -0800] GET /remote_api HTTP/1.1 403 0 https://www.google.com/a/mydomain.com/ServiceLogin? service=ahpassive=truecontinue=http:// bulkload.latest.myprogram.appspot.com/_ah/login%3Fcontinue%3Dhttp:// bulkload.latest.myprogram.appspot.com/ remote_apiltmpl=gaahname=dummysig=a0d1d0bdb0ea9947083be67280bb1e39 Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/532.6 (KHTML, like Gecko) Chrome/4.0.266.0 Safari/532.6,gzip(gfe) How can I check if my admin account on mydomain.com is really an admin forhttp://bulkload.latest.myprogram.appspot.com/remote_api? I checked it by logging inhttps://www.google.com/a/cpanel/kavancha.com/Users and see that admin is an Administrator as stated in Status column next to Username column. Am I right? Thanks for your help. Now what should I do next? On Dec 24, 4:54 am, Matthew Blain matthew.bl...@google.com wrote: (Note that the log in page is only needed to test interactive login.) On Dec 23, 6:53 pm, Matthew Blain matthew.bl...@google.com wrote: You need to log in to the application, not just the Google control panel--do you have a login page you can visit onhttp://remote.latest.myprogram.appspot.com/remote_api? What do the logs look like in the admin console for your app? On Dec 19, 2:36 am, lembas keremo...@gmail.com wrote: First I visithttps://www.google.com/a/cpanel/mydomain.com then login as ad...@mydomain.com and then I visithttp://remote.latest.myprogram.appspot.com/remote_api, which has remoteapi definition in web.xml as stated inhttp://groups.google.com/group/google-appengine-java/browse_thread/th..., it says Error: Forbidden Your client does not have permission to get URL /remote_api from this server. but if i visithttp://myprogram.appspot.com/remote_api, which is the current version without any remoteapi definition in web.xml, it says Error: Not Found The requested URL /remote_api was not found on this server. what should I do now? On Dec 19, 2:24 am, Matthew Blain matthew.bl...@google.com wrote: A quick test is if you can visit yourapp/remote_api in the web browser--it should work if you log in as an admin, well it should say This request did not contain a necessary header but not any other errors. On Dec 16, 2:52 pm, lembas keremo...@gmail.com wrote: I get exactly the same error when I try to bulkupload with this command: appcfg.py upload_data --auth_domain=mydomain.com --db_filename=skip -- url=http://remote.latest.myprogram.appspot.com/remote_api--no_cookies --has_header --config_file=loader.py --filename=kind.csv --kind=Kind myprogram On Dec 17, 12:37 am, lembas keremo...@gmail.com wrote: Hi, I have a java app on myprogram.appspot.com. I use google eclipse plugin to deploy it.(Eclipse 3.5, App Engine SDK 1.3.0, GWT SDK 2.0.0) I set the version to bulkload and deployed it. Now I have bulkload.latest.myprogram.appspot.com as I can see
[appengine-java] Re: Bulk Upload with Authentication
I've responded in the other thread. On Feb 14, 1:01 pm, lembas keremo...@gmail.com wrote: I have a Java-app-with-authentication. I created it this way. I wish I had not. I need to upload bulk data. I am waiting for months but Java still cannot do it. I tried to do it with Python. I cannot do with it either because I have created my app with authentication and I cannot change my app back to a non-authentication-app. I can create another Java-app-without-authentication. But this time I need to bulk download my data but I cannot because my app is a Java- app-with-authentication. Any help? When will it be possible to bulk-upload to a Java app with authentication via Python or Java or any other way? Any workaround? Neither works for me as stated inhttp://groups.google.com/group/google-appengine-java/browse_thread/th... -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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 testing working with anything other than the default queue
Sorry Will, we look for ./WEB-INF/queue.xml by default. Anyway glad you got it working with the workaround. I'll get this straightened out for the next release. Max On Tue, Feb 16, 2010 at 11:41 AM, Will Bunker w...@thebunkers.com wrote: I put in queue.xml in the test directory and it didn't seem to find it. On Feb 16, 10:47 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: I see. In the test environment it looks in . by default so if you place queue.xml in the directory from which you're executing the test it should pick it up.I On Tue, Feb 16, 2010 at 10:35 AM, Will Bunker w...@thebunkers.com wrote: I am saying that it is not reading queue.xml. I am testing to make sure a certain function puts x number tasks in a queue that is not the default. It doesn't load the queue.xml file unless I use your workaround (then it works great.) On Feb 16, 10:21 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com wrote: By default the LocalTaskQueueTestConfig configures the local task queue service to not automatically execute tasks: http://code.google.com/appengine/docs/java/tools/localunittesting/jav. .. Or are you saying it's not reading queue.xml? On Tue, Feb 16, 2010 at 10:16 AM, Will Bunker w...@thebunkers.com wrote: Actually it doesn't seem to be reading the queue at all. It is coming from the standard directory in WAR, but doesn't seem to pick it up. I am on Mac OS if that makes any difference. On Feb 16, 9:35 am, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com maxr%2bappeng...@google.com maxr%252bappeng...@google.com maxr%252bappeng...@google.com maxr%25252bappeng...@google.com wrote: Hi Will, You're loading queue.xml from a different location in your unit tests? This is a use case I didn't thoroughly consider. I can certainly fix this for the next release but let me see if I can find a workaround for you. Thanks, Max -- 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 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@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. -- 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] Creating a key for retrieval, but the key id is zero (IllegalArgumentException)
I'm not sure what I'm doing wrong here. I'm persisting an object with a key created using a unique string, in this case the user id. However, to make things more URI friendly, I'm using the Key.getId() of these objects to serve as a unique id (uid). The first entity I save has key.getId() == 0. When I later attempt to recover this entity, using a Key created by KeyFactory: // Key ID for the object being retrieved is 0. AuthorDO.uidToKey(0); public static Key uidToKey(String uid) { long keyId = Long.parseLong(uid); return KeyFactory.createKey(AuthorDO.class.getSimpleName(), keyId); } I get an illegal argument exception: java.lang.IllegalArgumentException: id cannot be zero at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java: 44 at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java: 31) at com.sageek.quotebook.data.dao.jdo.AuthorDO.uidToKey(AuthorDO.java: 214) The id is 0, according to the key that was created by the datastore. Where is this error coming from? What am I doing wrong? -- 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: Problems using a ThreadLocal variable
I have not used Wicket myself, but have you seen http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine ? It looks like Wicket must be massaged a little to work... On Feb 16, 3:36 pm, Esteban Masoero emaso...@getsense.com.ar wrote: Hi there: Since today, my app started to have problems when using a ThreadLocal variable. I'm using wicket framework, and it happens that the first request to the page is fine, but sometimes I get an exception caused by wicket saying that the app (which is stored in a threadlocal variable) is not found (is null). I didn't make any change to the framework related to that, I only made some minor changes that have no relation to this problem. Has anyone experienced something alike? Can any guy from google give some hint about this? Thanks, Esteban -- 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: Request was aborted after waiting too long to attempt to service your request.
I am also getting this error on a simple app that sends back hello world essentially. There does seem to be something strange going on because I'm the only one accessing the app, so it couldn't be simultaneous requests. Have you found anything around this? On Jan 22, 11:44 am, Locke locke2...@gmail.com wrote: I have seen this error even for hello world. It MAY be caused by too many simultaneous requests, but it also may be caused by a problem with appengine itself. On Jan 22, 12:30 pm, Don Schwarz schwa...@google.com wrote: On Fri, Jan 22, 2010 at 10:55 AM, Millisecond millisec...@gmail.com wrote: I'm getting this log message a lot in my application: Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please seehttp://code.google.com/appengine/docs/quotas.htmlformoredetails.; I do have excessive latency in that I run non-trivial tasks in the TaskQueue handlers interacting with external systems averaging about 10 seconds per handler with a couple per cycle pushing the 30 second limit, but on the Dashboard my requests/second never seem to exceed ~1.5. I have billing enabled and my understanding is that gives me 500 simultaneous requests. That's not accurate. Where did you hear this? Here's the documentation we have on this: http://code.google.com/appengine/docs/java/runtime.htmlsays: *** An application can process around 30 active dynamic requests simultaneously. This means that an application whose average server-side request processing time is 75 milliseconds can serve up to (1000 ms/second / 75 ms/request) * 30 = 400 requests/second without incurring any additional latency. Applications that are heavily CPU-bound may incur some additional latency in long-running requests in order to make room for other apps sharing the same servers. Requests for static files are not affected by this limit. *If your application is making efficient use of resources and traffic is about to exceed your expected maximum queries per second, you can request that the simultaneous dynamic request limit be raisedhttp://code.google.com/appengine/kb/billing.html#cpu. App Engine can scale far beyond 30 simultaneous requests; this default limit is in place to prevent a poorly performing or malicious app from hoarding resources.* I suggest that you calculate the maximum number of simultaneous requests that you need to serve and fill out the above form. Thanks, Don -- 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] Problem whit upload form multipart
Hola he probado el codigo siguiente para recibir un formulario multipart en mi aplicacion : Test folowing code import org.apache.commons.fileupload.FileItemStream; import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.InputStream; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { private static final Logger log = Logger.getLogger(FileUpload.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { FileItemStream item = iterator.next(); InputStream stream = item.openStream(); if (item.isFormField()) { log.warning(Got a form field: + item.getFieldName()); } else { log.warning(Got an uploaded file: + item.getFieldName() + , name = + item.getName()); // You now have the filename (item.getName() and the // contents (which you can read from stream). Here we just // print them back out to the servlet output stream, but you // will probably want to do something more interesting (for // example, wrap them in a Blob and commit them to the // datastore). int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) != -1) { res.getOutputStream().write(buffer, 0, len); } } } } catch (Exception ex) { throw new ServletException(ex); } } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } el caso es que simpre me da un error cuando envio el formulario con image folowing error : Error for /FileUpload java.lang.NoSuchMethodError: org.apache.commons.fileupload.servlet.ServletFileUpload.getItemIterator(Ljavax/ servlet/http/HttpServletRequest;)Lorg/apache/commons/fileupload/ FileItemIterator; at com.ubicacion.servlet.FileUpload.doPost(FileUpload.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:830) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 235) 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
[appengine-java] Re: Google Plugin for Eclipse 1.3 plans
Hi all, Where exactly is the Google Plugin for Eclipse preview located ? Or is it not released yet ? Im dying to try it out :-) Cheers, :-) Kasper On Feb 4, 8:52 pm, Keith Platfoot kplatf...@google.com wrote: Hey all, Many of you have reported incompatibilities between the Google Plugin for Eclipse and other build systems/project structures, most notably Maven and J2EE/Dynamic Web Projects. For example, issue 1515 (Eclipse plugin requires fixed location for war directory)http://code.google.com/p/googleappengine/issues/detail?id=1515 has collected well over 100 stars, and a similar one in the GWT issue tracker has attracted a lot of attention as well. Based on this feedback, we've decided to try and address as many of the incompatibilities as possible with our upcoming 1.3 release of the plugin. To deliver on that goal, we want to share with your our current plans, and also let you know about a preview build that we'll make available so you can test the changes for yourself and give us feedback before final release. Our plans for the 1.3 release include 4 changes designed to make integration with Maven and J2EE projects easier: 1. The WAR directory can now be configured to be *any* project-relative path (e.g. src/main/webapp if you're using Maven). You'll also be able to specify whether that directory is source-only (typical Maven/J2EE scenario), or whether it should also function as the WAR output directory from which to run/debug or deploy to App Engine. If your WAR directory is input *and* output (which will remain the default for new Web App projects), the plugin will manage synchronizing the contents of WEB-INF/lib WEB-INF/classes with your project's build path and compiled output. Otherwise, we'll leave your WAR source directory alone and you'll need to specify your WAR output location when launching, deploying, etc (the plugin will remember the location once you set it the first time). 2. The Web App launch configuration UI is being redesigned to allow you to see, and if necessary change, *any* of the launch arguments. Previously, we were waiting until launch time to set many of these arguments based on heuristics that were invisible and inaccessible to you. Now you'll be in full control of how your projects get launched. Also, we're adding the capability to automatically migrate your launch configurations when necessary, for example, updating the -javaagent flag when changing App Engine SDKs. 3. GWT/App Engine projects will no longer require our SDK library on the classpath. This means Maven users will be able to pull in JAR files from their M2 repository as they're accustomed to and the plugin won't mind a bit. 4. The severity of any problem marker generated by the plugin will be fully customizable via an Errors/Warnings preference page (similar to the Java Errors/Warnings page), letting you specify either Error, Warning, or Ignore. We'll also be including a few smaller features and bug fixes as well. What does everyone think about the 4 changes outlined above? We've been testing the plugin against various Maven and J2EE configurations to try to ensure that we've eliminated the most critical roadblocks. However, we're very interested in also having you folks take it for a spin before the official release date (slated for next month). We're not quite ready yet, but stay tuned for a 1.3 preview build to be made available hopefully in a few weeks. We'll distribute it as a zip file for dropin installationhttp://code.google.com/eclipse/docs/install-from-zip.html so it will come with the standard warnings and caveats (use with a clean Eclipse install and workspace, use at your risk, etc.). However, it will hopefully give you a chance to give us any last-minute feedback about our changes before the final release. Thanks, Keith -- 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 whit upload form multipart
Do you have a different version of the jar in your lib directory to the one on your build path? On 17 Feb 2010, at 09:11, NIko Judo wrote: Hola he probado el codigo siguiente para recibir un formulario multipart en mi aplicacion : Test folowing code import org.apache.commons.fileupload.FileItemStream; import org.apache.commons.fileupload.FileItemIterator; import org.apache.commons.fileupload.servlet.ServletFileUpload; import java.io.InputStream; import java.io.IOException; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class FileUpload extends HttpServlet { private static final Logger log = Logger.getLogger(FileUpload.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { try { ServletFileUpload upload = new ServletFileUpload(); res.setContentType(text/plain); FileItemIterator iterator = upload.getItemIterator(req); while (iterator.hasNext()) { FileItemStream item = iterator.next(); InputStream stream = item.openStream(); if (item.isFormField()) { log.warning(Got a form field: + item.getFieldName()); } else { log.warning(Got an uploaded file: + item.getFieldName() + , name = + item.getName()); // You now have the filename (item.getName() and the // contents (which you can read from stream). Here we just // print them back out to the servlet output stream, but you // will probably want to do something more interesting (for // example, wrap them in a Blob and commit them to the // datastore). int len; byte[] buffer = new byte[8192]; while ((len = stream.read(buffer, 0, buffer.length)) != -1) { res.getOutputStream().write(buffer, 0, len); } } } } catch (Exception ex) { throw new ServletException(ex); } } @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { } } el caso es que simpre me da un error cuando envio el formulario con image folowing error : Error for /FileUpload java.lang.NoSuchMethodError: org .apache .commons.fileupload.servlet.ServletFileUpload.getItemIterator(Ljavax/ servlet/http/HttpServletRequest;)Lorg/apache/commons/fileupload/ FileItemIterator; at com.ubicacion.servlet.FileUpload.doPost(FileUpload.java:32) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1093) at com .google .apphosting .utils .servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com .google .apphosting .runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com .google .apphosting .utils .servlet .TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 360) at org .mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com .google .apphosting .runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:830) at com .google .apphosting .runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at com .google .apphosting .runtime .jetty .JettyServletEngineAdapter .serviceRequest(JettyServletEngineAdapter.java: 135) at com .google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime
Re: [appengine-java] how to keep fields unique
You could use transactions if all Servers are in the same entity group. In a transaction you can query for existing A specifying the ancestor in the query. When you find no other Server with the key you can store it - also with the same ancestor - then commit the transaction. If another request saved the same key in between an exception would be thrown so you could try another key. On 17 Feb 2010, at 11:58, smile laugh wrote: hello everyone I have several fields which must be unique because of business logic.how can app engine make the unique key for the several fields? For example, in a Server A ,I query a value and find there is no existing value , so I insert value into Server A successfully. But almost the same time , another one can do the same thing(insert the same record) successfully in Server B. Because at this time , Server A and Server B are not consistent, the prior inserts will all be successful. how can I avoid to insert the same records? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] [URGENT RFH] Help on com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread
Hi, I am continuously getting the exceptions mentioned below. Can someone please help me? I have no idea why this exception occurs :(, PLEASE HELP! /Imran 02-16 08:34PM 17.041 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue $SystemLoader loadFinalizer: Not allowed to access system class loader. I 02-16 08:34PM 17.067 com.google.appengine.repackaged.com.google.common.base.internal.Finalizer getInheritableThreadLocalsField: Couldn't access Thread.inheritableThreadLocals. Reference finalizer threads will inherit thread local values. I 02-16 08:34PM 17.072 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created. java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-0f2fe9e7cf5a6e2c(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:43) at com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.init(FinalizableReferenceQueue.java: 127) at com.google.appengine.repackaged.com.google.common.collect.Interners $WeakInterner.clinit(Interners.java:118) at com.google.appengine.repackaged.com.google.common.collect.Interners.newWeakInterner(Interners.java: 59) at com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.clinit(ProtocolSupport.java: 55) at com.google.apphosting.api.DatastorePb $Query.init(DatastorePb.java:1185) at com.google.apphosting.api.DatastorePb$Query $1.init(DatastorePb.java:2677) at com.google.apphosting.api.DatastorePb $Query.clinit(DatastorePb.java:2677) at com.google.appengine.api.datastore.QueryTranslator.convertToPb(QueryTranslator.java: 28) at com.google.appengine.api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java: 151) at com.google.appengine.api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java: 111) at com.google.appengine.api.datastore.PreparedQueryImpl.asIterator(PreparedQueryImpl.java: 81) at com.google.appengine.api.datastore.BasePreparedQuery.asIterator(BasePreparedQuery.java: 37) at com.smartitengineering.stockexchange.api.impl.QuotesServiceImpl.getStockExchanges(QuotesServiceImpl.java: 120) at com.smartitengineering.stockexchange.api.impl.QuotesServiceCacheImpl.getStockExchanges(QuotesServiceCacheImpl.java: 48) at com.smartitengineering.stockexchange.feeds.panels.StockExchangePanel.initComponents(StockExchangePanel.java: 32) at com.smartitengineering.stockexchange.feeds.panels.StockExchangePanel.init(StockExchangePanel.java: 28) at com.smartitengineering.stockexchange.feeds.HomePage.init(HomePage.java: 15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java: 192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java: 57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java: 298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java: 320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java: 234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java: 92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 312) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 35) at
[appengine-java] Production Strange behavior for Struts 2 Iterator Tag
Hi, I have a struts2 based application running beautifully till time. I am using struts2 tag extensively, and its working fine and pulling the stuffs effectively from valuestack. s:iterator value=adminUserList status=status span s:property value=#status.count//span span id=loginIds:property value=#status.count/s:property value=loginId//span /s:iterator Above snippet of code run soothly on appengine sdk 1.3.1 on development machine. When I try the same on production it throws an internal server error due to following reason: org.apache.tiles.impl.BasicTilesContainer render: Error rendering tile java.lang.ClassCastException: org.apache.struts2.views.jsp.IteratorStatus cannot be cast to java.lang.String at com.google.appengine.runtime.Request.process- d6ff5789e159d872(Request.java) at org.apache.struts2.components.Property.start(Property.java:141) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java: 53) at org.apache.jsp.WEB_002dINF.content.admin.mgmt.tiles.super_002dhome_002dtiles_jsp._jspx_meth_s_property_24(super_002dhome_002dtiles_jsp.java: 665) If I run the following snippet It run successfully on prod : s:iterator value=adminUserList status=status span s:property value=#status.count//span /s:iterator So I am filling that in production environment inclusion of the struts tag s:property value=#status.count/ inside double quote create exception. I had used this tag for long time and didn't faced any problem till in other environment. Is somebody will explain why its happening? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] [URGENT RFH] Help on com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread
Try searching this list first - the question has been answered many times. On 17 Feb 2010, at 12:14, imyousuf wrote: Hi, I am continuously getting the exceptions mentioned below. Can someone please help me? I have no idea why this exception occurs :(, PLEASE HELP! /Imran 02-16 08:34PM 17.041 com .google .appengine.repackaged.com.google.common.base.FinalizableReferenceQueue $SystemLoader loadFinalizer: Not allowed to access system class loader. I 02-16 08:34PM 17.067 com .google.appengine.repackaged.com.google.common.base.internal.Finalizer getInheritableThreadLocalsField: Couldn't access Thread.inheritableThreadLocals. Reference finalizer threads will inherit thread local values. I 02-16 08:34PM 17.072 com .google .appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created. java.lang.reflect.InvocationTargetException at com .google .appengine.runtime.Request.process-0f2fe9e7cf5a6e2c(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:43) at com .google .appengine .repackaged .com .google .common .base.FinalizableReferenceQueue.init(FinalizableReferenceQueue.java: 127) at com.google.appengine.repackaged.com.google.common.collect.Interners $WeakInterner.clinit(Interners.java:118) at com .google .appengine .repackaged .com.google.common.collect.Interners.newWeakInterner(Interners.java: 59) at com .google .appengine .repackaged .com.google.io.protocol.ProtocolSupport.clinit(ProtocolSupport.java: 55) at com.google.apphosting.api.DatastorePb $Query.init(DatastorePb.java:1185) at com.google.apphosting.api.DatastorePb$Query $1.init(DatastorePb.java:2677) at com.google.apphosting.api.DatastorePb $Query.clinit(DatastorePb.java:2677) at com .google .appengine .api.datastore.QueryTranslator.convertToPb(QueryTranslator.java: 28) at com .google .appengine .api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java: 151) at com .google .appengine .api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java: 111) at com .google .appengine .api.datastore.PreparedQueryImpl.asIterator(PreparedQueryImpl.java: 81) at com .google .appengine .api.datastore.BasePreparedQuery.asIterator(BasePreparedQuery.java: 37) at com .smartitengineering .stockexchange .api.impl.QuotesServiceImpl.getStockExchanges(QuotesServiceImpl.java: 120) at com .smartitengineering .stockexchange .api .impl .QuotesServiceCacheImpl.getStockExchanges(QuotesServiceCacheImpl.java: 48) at com .smartitengineering .stockexchange .feeds .panels.StockExchangePanel.initComponents(StockExchangePanel.java: 32) at com .smartitengineering .stockexchange .feeds.panels.StockExchangePanel.init(StockExchangePanel.java: 28) at com .smartitengineering.stockexchange.feeds.HomePage.init(HomePage.java: 15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at org .apache .wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java: 192) at org .apache .wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java: 57) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .newPage(BookmarkablePageRequestTarget.java: 298) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .getPage(BookmarkablePageRequestTarget.java: 320) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .processEvents(BookmarkablePageRequestTarget.java: 234) at org .apache .wicket .request .AbstractRequestCycleProcessor .processEvents(AbstractRequestCycleProcessor.java: 92) at org .apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 479) at org .apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 312) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1084) at com .google
[appengine-java] Re: sending mail in google app engine in java
Hi, Thanks for your reply.But i can not get any error or mail ,even i set that favicon. please,help me. On Feb 12, 12:12 am, Ikai L (Google) ika...@google.com wrote: That's just your browser trying to get a favicon from your site: http://en.wikipedia.org/wiki/Favicon http://en.wikipedia.org/wiki/FaviconCreate one and put it in your app where it is accessible athttp://yourappid.appspot.com/favicon.ico On Thu, Feb 11, 2010 at 4:32 AM, Sowji sowji.ap...@gmail.com wrote: Hi, i am trying to send a mail with google app engine wuth java. My code is, Properties props = *new* Properties(); props.put( mail.smtp.host,smtp.gmail.com); props.put( mail.smtp.username,sowji.apr10); props.put( mail.smtp.PASSWORD,smtp.gmail.com); Session session = Session.*getDefaultInstance*(props, *null*); String msgBody = Hai this is my first mail through java programming; * try* { Message msg= *new* MimeMessage(session); msg.setText( hai...+msgBody); msg.setSubject( First Message from java); msg.setFrom( *new* InternetAddress(myown my...@gmail.com@gmail.com)); msg.setRecipient(Message.RecipientType. *TO*,*new* InternetAddress(my...@gmail.com)); Transport.*send*(msg); PrintWriter pw=resp.getWriter(); pw.println( html/bodymail is seding.../body/html); } * catch*(AddressException adde){ // System. *out*.print(error in address); } * catch*(MessagingException mse){ // System. *out*.print(error in messaging); } For this code i did not get any mail or any errors as reply. My console print warning like this, The server is running athttp://localhost:3624/ Feb 11, 2010 12:22:58 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Feb 11, 2010 12:23:00 PM com.google.appengine.tools.development.LocalResourceFileServlet doGet WARNING: No file found for: /favicon.ico Please help me to solve this problem. Thanks, Lakshmi. -- 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- Hide quoted text - - Show quoted text - -- 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: [URGENT RFH] Help on com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread
Thanks, I did not know about the warming up exception, then this same thing could have caused Google Guice to crash, will re-investigate It would be nice to have it as a FAQ/Notice just for developers info! /Imran On Feb 17, 11:47 am, John Patterson jdpatter...@gmail.com wrote: Try searching this list first - the question has been answered many times. On 17 Feb 2010, at 12:14, imyousuf wrote: Hi, I am continuously getting the exceptions mentioned below. Can someone please help me? I have no idea why this exception occurs :(, PLEASE HELP! /Imran 02-16 08:34PM 17.041 com .google .appengine.repackaged.com.google.common.base.FinalizableReferenceQueue $SystemLoader loadFinalizer: Not allowed to access system class loader. I 02-16 08:34PM 17.067 com .google.appengine.repackaged.com.google.common.base.internal.Finalizer getInheritableThreadLocalsField: Couldn't access Thread.inheritableThreadLocals. Reference finalizer threads will inherit thread local values. I 02-16 08:34PM 17.072 com .google .appengine.repackaged.com.google.common.base.FinalizableReferenceQueue init: Failed to start reference finalizer thread. Reference cleanup will only occur when new references are created. java.lang.reflect.InvocationTargetException at com .google .appengine.runtime.Request.process-0f2fe9e7cf5a6e2c(Request.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:43) at com .google .appengine .repackaged .com .google .common .base.FinalizableReferenceQueue.init(FinalizableReferenceQueue.java: 127) at com.google.appengine.repackaged.com.google.common.collect.Interners $WeakInterner.clinit(Interners.java:118) at com .google .appengine .repackaged .com.google.common.collect.Interners.newWeakInterner(Interners.java: 59) at com .google .appengine .repackaged .com.google.io.protocol.ProtocolSupport.clinit(ProtocolSupport.java: 55) at com.google.apphosting.api.DatastorePb $Query.init(DatastorePb.java:1185) at com.google.apphosting.api.DatastorePb$Query $1.init(DatastorePb.java:2677) at com.google.apphosting.api.DatastorePb $Query.clinit(DatastorePb.java:2677) at com .google .appengine .api.datastore.QueryTranslator.convertToPb(QueryTranslator.java: 28) at com .google .appengine .api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java: 151) at com .google .appengine .api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java: 111) at com .google .appengine .api.datastore.PreparedQueryImpl.asIterator(PreparedQueryImpl.java: 81) at com .google .appengine .api.datastore.BasePreparedQuery.asIterator(BasePreparedQuery.java: 37) at com .smartitengineering .stockexchange .api.impl.QuotesServiceImpl.getStockExchanges(QuotesServiceImpl.java: 120) at com .smartitengineering .stockexchange .api .impl .QuotesServiceCacheImpl.getStockExchanges(QuotesServiceCacheImpl.java: 48) at com .smartitengineering .stockexchange .feeds .panels.StockExchangePanel.initComponents(StockExchangePanel.java: 32) at com .smartitengineering .stockexchange .feeds.panels.StockExchangePanel.init(StockExchangePanel.java: 28) at com .smartitengineering.stockexchange.feeds.HomePage.init(HomePage.java: 15) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:33) at org .apache .wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java: 192) at org .apache .wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java: 57) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .newPage(BookmarkablePageRequestTarget.java: 298) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .getPage(BookmarkablePageRequestTarget.java: 320) at org .apache .wicket .request .target .component .BookmarkablePageRequestTarget .processEvents(BookmarkablePageRequestTarget.java: 234) at org .apache .wicket .request .AbstractRequestCycleProcessor .processEvents(AbstractRequestCycleProcessor.java: 92) at org .apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
[appengine-java] Re: SVG data in a jsp file
On 14 fév, 19:35, Martin Trögner troegner_mar...@web.de wrote: My application shall create SVG data which will be integrated in a jsp. For svg data you normally can use object data=f.svg type=image/svg+xml width=200 height=200 / I think that you could have something like this object data=http://my_app_engine/generated_svg/f.svg; type=image/svg +xml width=200 height=200 / -- 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: Creating a key for retrieval, but the key id is zero (IllegalArgumentException)
Probably you did not retrieve the Key of the stored object correctly, or the error/bug is while storing the object. I do the same - convert Key to Long or String when storing relationship between entities, but I never got 0 as the generated Key. Vaclav On Feb 17, 12:15 am, Clint clintandrewh...@gmail.com wrote: I'm not sure what I'm doing wrong here. I'm persisting an object with a key created using a unique string, in this case the user id. However, to make things more URI friendly, I'm using the Key.getId() of these objects to serve as a unique id (uid). The first entity I save has key.getId() == 0. When I later attempt to recover this entity, using a Key created by KeyFactory: // Key ID for the object being retrieved is 0. AuthorDO.uidToKey(0); public static Key uidToKey(String uid) { long keyId = Long.parseLong(uid); return KeyFactory.createKey(AuthorDO.class.getSimpleName(), keyId); } I get an illegal argument exception: java.lang.IllegalArgumentException: id cannot be zero at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java: 44 at com.google.appengine.api.datastore.KeyFactory.createKey(KeyFactory.java: 31) at com.sageek.quotebook.data.dao.jdo.AuthorDO.uidToKey(AuthorDO.java: 214) The id is 0, according to the key that was created by the datastore. Where is this error coming from? What am I doing wrong? -- 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] unexpected execution of task queue
I have a queue to run a task every hour by adding a new task (ETA=60min) after the current task is finished. It works fine in eclipse, but it behaves unexpectedly on production. The task is actually run every minute or so even though ETA time on the task queues console indicates it should be executed in 1 hour or so. And, the number of tasks keeps growing. I understand ETA is not exact, but 1 min actual is just too far from 60 min ETA. Any idea how to make the scheduled task more reliable? the app is at http://realmon9.appspot.com thanks, -aj-- AJ Chen, PhD Chair, Semantic Web SIG, sdforum.org http://web2express.org @web2express on twitter Palo Alto, CA, USA 650-283-4091 *Monitoring social media in real time* -- 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: owned relationship ? - could it be a bug
any help on this please... Thanks. On Fri, Feb 12, 2010 at 3:18 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikia As suggested by you in the thread 'Incorrect number of entities returned', I have attached the complete files in my previous email. Please let me know, what am I doing wrong here. Thanks -Aswath On Tue, Feb 9, 2010 at 3:06 PM, aswath satrasala aswath.satras...@gmail.com wrote: Hello Ikai, Attached is the zip file that contains three files A.java B.java BTest.java Please load in your environment and test it. Thanks. -Aswath On Fri, Feb 5, 2010 at 4:36 PM, aswath satrasala aswath.satras...@gmail.com wrote: B list is missing from class A in my previous posting. Here is the complete A class... @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; @Persistent private ListB bList ; } On Fri, Feb 5, 2010 at 4:32 PM, aswath satrasala aswath.satras...@gmail.com wrote: This is a similar posting I had posted earlier incorrect number of entities returned. Hopefully, this posting may be more clean and I will get some replies. I have two classes 1) A 2) B A is in 1 to many relationship with B @PersistenceCapable(identityType = IdentityType.APPLICATION) public class A { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key=gae.encoded-pk, value=true) private String id; @Persistent @Extension(vendorName = datanucleus, key=gae.pk-name, value=true) private String name; } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class B { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName = datanucleus, key = gae.encoded-pk, value = true) private String id; @Persistent @Extension(vendorName = datanucleus, key = gae.pk-name, value = true) private String name; } public class BTest extends JDOTestCase { public void testB() throws Exception { A a = new A(); a.setName(a); B b = new B(); b.setName(b); a.getBList().add(b); beginTxn(); pm.makePersistent(a); a = pm.getObjectById(A.class, a.getId()); assertEquals(1, a.getBList().size()); commitTxn(); B b1 = new B(); b1.setName(b1); beginTxn(); pm.makePersistent(b1); b1 = pm.getObjectById(B.class, b1.getId()); b1.getId(); commitTxn(); } } The test fails at the last line b1.getId() If any of B entity is in relation with A earlier, then another entity of B cannot be persisted by itself. If I move the 2nd transaction to the beginning, the test passes. -Aswath -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine and Spring slow start up
Yes, I have the same problem, although it doesn't happen every time. Unfortunately, I don't have a fix for this problem. My application uses a scheduled task to update the cache every 5 minutes - this task fails every time with a HDEE, and I didn't have the time to optimize it yet - maybe both issues are correlated. -- 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] Suggested migration path for Web app using realm auth and offering web service.
Hi all, I have an app which is running on Glassfish and serves data via web services and BlazeDS. Authentication is handled via realm authentication on the app server. My client side is a flex app which launches from a secure folder once the user has authenticated. Persistence is currently in mysql but all via JPA. Until now, I've thought it's too much hassle to try and get it working on GAE but being someone who doesn't know when to quit, I'd like to try again. Does this kind of app sound doable on GAE without too much re-work ? I think GAE support WS now (via Hessian ?) but what about realm authentication ? (My clients don't have google accounts so I can't use that). Is there any substitute for realm authentication in GAE land ? Thought I'd ask you all here before I try again in case I'm about to run headlong into a world-of-hurt! Any pointers would be great. Tks Alex -- 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.