[appengine-java] Re: Do JPA objects show up in the admin colsole ?
Thanks. I spotted the error. I did not do a close() on the EntityManager (or perhaps a flush would also work). On Dec 30, 12:42 am, Raphael André Bauer raphael.andre.ba...@gmail.com wrote: On Wed, Dec 30, 2009 at 12:51 AM, newbie100 shahed...@gmail.com wrote: Hi, I have just written my very first app, and it attempts to store an object using JPA. The code is as below. with the Employee and EMF classes copy / pasted from the docs. These lines were added to a default project, created with GWT support. snip Employee emp = new Employee(); EMF.get().createEntityManager().persist(emp); /snip I have created the persistance.xml file, and get no error when I run. My Question is :- = I see no obejcts in the Datastore Viewer (admin console) pages (Both production and dev mode) Is this something that is not currently implemented in the console ? Or (more likely) could it be a bug in my code ? It's an error in your app. Try to begin with the tutorials provided at the App Engine site to get a feeling how things work... ra- 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] getting wrong presence status for XMPP users
Hi, I have a very simple application where i sent a chat message to my application and check if user is available.But i am always getting as false. here is my code. XMPPService xmpp = XMPPServiceFactory.getXMPPService(); Message message = xmpp.parseMessage(req); JID fromJid = message.getFromJid(); Presence p=xmpp.getPresence(fromJid); String status =p.isAvailable().toString(); I am getting status as false always. I even tried with fromJid.getId() to get user status but i get the same result. i tried with gmail chat and gtalk both.I can see my bot in my contact lists with available sign. is there any way to get the correct status or am i missing anything here. -- 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] Springframework - problem with session forms in GAE for Java 1.3.0
Hi, I am developing small application for GAE using Springframework (3.0 RC1). I am using controller with session form attribute. It was working perfectly before 1.3.0 SDK release. Now I'm getting errors that form was not found on session. I verified that form implements Serializable. I have sessions enabled in appengine config file. I attached stacktrace below. The strangest thing is that this code was working few weeks ago... :( Any ideas what can cause this? Thanks Konrad ST: /product/add.htm org.springframework.web.HttpSessionRequiredException: Session attribute 'productForm' required - not found in session at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter $ServletHandlerMethodInvoker.raiseSessionRequiredException (AnnotationMethodHandlerAdapter.java:612) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveModelAttribute (HandlerMethodInvoker.java:599) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments (HandlerMethodInvoker.java:285) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod (HandlerMethodInvoker.java:156) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod (AnnotationMethodHandlerAdapter.java:378) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle (AnnotationMethodHandlerAdapter.java:366) at org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:781) at org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:726) at org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:636) at org.springframework.web.servlet.FrameworkServlet.doPost (FrameworkServlet.java:556) 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.myapp.tools.CharsetFilter.doFilter(CharsetFilter.java:21) 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 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:5235) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5233) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest (BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 363) at com.google.net.rpc.impl.Server$2.run(Server.java:838) at com.google.tracing.LocalTraceSpanRunnable.run (LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan (LocalTraceSpanBuilder.java:536) at
[appengine-java] Re: Springframework - problem with session forms in GAE for Java 1.3.0
BTW: This error ocures only on hosted mode, in local running app everything is fine. -- 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 speed up JSP compile time?
Hi Im having the same problems.. every time I change a .jsp file it takes up to 3 min to recompile it.. My project is very small, there's almost no data in the datastore. The jsp file is also very small. I should say that im running appengine through devmode on a mac with snow leopard. I have tried profiling with Visualvm and get the following hotspots (this shows the load of one jsp recompile).. org.apache.tools.ant.taskdefs.StreamPumper.run()40.26772208150 ms (40.3%) 2 org.mortbay.jetty.Server.handle(org.mortbay.jetty.HttpConnection) 20.24753104662 ms (20.2%) 13 java.lang.UNIXProcess$2$1.run() 20.171682 104270 ms (20.2%) 1 java.util.concurrent.ThreadPoolExecutor$Worker.run()10.060698 52005 ms (10.1%) 1 sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run() 9.137142 47231 ms (9.1%) 2 com.google.appengine.api.datastore.dev.LocalDatastoreService.runQuery (com.google.appengine.tools.development.LocalRpcService.Status, com.google.apphosting.api.DatastorePb.Query) 0.0101551 58.5 ms (0%)11 Most of the time when recompiling it seems its waiting for IO or something - the cpu is almost idle. My ant target looks like this.. target name=devmode depends=javac description=Run development mode java failonerror=true fork=true classname=com.google.gwt.dev.DevMode classpath pathelement location=src/ path refid=project.class.path/ path refid=tools.class.path/ /classpath jvmarg value=-Xmx512M/ jvmarg value=-javaagent:${appengine.sdk}/lib/agent/appengine- agent.jar/ jvmarg value=-Xdebug/ jvmarg value=- Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005/ arg value=-startupUrl/ arg value=${gwt.startupUrl}/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=-server/ arg value=com.google.appengine.tools.development.gwt.AppEngineLauncher/ arg value=${gwt.module}/ /java /target Cheers Simon On Nov 17, 6:04 pm, Toby Reyelts to...@google.com wrote: On Sat, Nov 14, 2009 at 1:01 PM, Steph steph@gmail.com wrote: This happens: - running dev_appserver - with JSP files of just any size. - seems to be blocking on initializing the datastore Can you elaborate on this part a bit more? What are you seeing that makes you think it's initializing the datastore? Are you restarting the entire dev_appserver after modifying the jsp? How large is your datastore (e.g. how many entities, how many properties per entity, average size of each property). If you can file an issue with a very simple webapp that reproduces the problem, that would be the best way for us to track the problem down. Alternatively, you could hook a profiler up to the dev_appserver yourself (for example, visualvm, hprof, or jprofiler). With three minutes of execution time, there should be a pretty obvious hotspot. I tried to set --jvm_flag=-Xmx1G in my dev_appserver.cmd file but it does not seem to help much (i don't use eclipse) Another other advice? On Nov 13, 12:00 pm, Toby Reyelts to...@google.com wrote: Wow, that sounds bad. You're saying that this happens while running the dev_appserver (not appcfg), and you're only modifying one JSP file? Is that JSP file huge? Try raising the heap size of your JVM. For example, if you're using Eclipse, set -Xmx1G in the JVM arguments for your launch config. If you're running the dev_appserver from the command line, use --jvm_flag=-Xmx1G.On Fri, Nov 13, 2009 at 12:51 PM, Steph steph@gmail.com wrote: When modifying a JSP in the war directory, it can take up to 3 minutes for the JSP to recompile and the page to render (I am on a brand new dual-core CPU 2.66 Ghz). Is there a way that the JSP compile time can be speed up? This slowness makes development almost unbearable. Thanks for your help. -- 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%2B unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- You received this message because you are subscribed to the
[appengine-java] JPA Uses Annotations Only
Is JPA only supported with annotations, or can the DataNucleus mapping XML also be used? I only see explicit documentation references to the annotations. If mapping XML is supported for JPA, how do you set it up? I did see a brief reference to support for .jdo files, which are XML, but not for JPA. -- 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] Servlet filter not being called?
Hello! I'm new to App Engine and am jumping straight in and learning via writing an app, as you do. I figured that a good thing to do was to create a servlet filter that checks the user's login status, forwarding to the login page if they haven't got a login, or allowing the request through if they are logged in. I've created a filter and added it to web.xml with a url-pattern of / *. However, when I load my app's html page, the doFilter method isn't called. My logging output shows the filter being inited OK, but the doFilter doesn't get called. Is there something else I need to do to get this working? Thanks! Gemma -- 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] Domain setup using Google Apps
Yeah, it is possible... 2009/12/23 Marcel Overdijk marceloverd...@gmail.com I own the footdex.com Google Apps domain. I've bought this some time ago to host a GAE application on it. I now finally added the domain using in GAE admin console, but all I can do is attach it to a subdomain of footdex.com. I just want footdex.com to be the GAE app not a subdomain. Is this possible? Cheers, Marcel -- 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. -- DCBI(AirFly23) -- 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] Incoming mail handler runs slow
I've written an incoming mail handler and it works, that is, it does what I want it to do, but it runs slow, very slow. However, I'm not sure why it's so slow because I'm using the QuotaService to time how long the doPost() method of my email handler servlet is running and it's returning 0.00 CPU seconds and 0.04 API seconds, yet the logs routinely report the requests taking over 1ms. I notice that if I fire two emails in rapid succession at my app then usually the first one reports as taking 1+ ms to run then the second one will run in under 150ms, which is confusing me even more. It's almost like the app is having to spin up on every email it receives, but 10+ seconds for the spin up seems way too long. Is there something I should be watching out for when writing incoming email handlers? -- 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] Servlet filter not being called?
From http://code.google.com/appengine/docs/java/gettingstarted/staticfiles.html: Any request for a URL whose path matches a static file serves the file directly to the browser—even if the path also matches a servlet or filter mapping. You can configure which files App Engine treats as static files using the appengine-web.xml file. You can learn how to configure static files here: http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files On Wed, Dec 30, 2009 at 10:33 AM, gemma gemmasilv...@googlemail.com wrote: Hello! I'm new to App Engine and am jumping straight in and learning via writing an app, as you do. I figured that a good thing to do was to create a servlet filter that checks the user's login status, forwarding to the login page if they haven't got a login, or allowing the request through if they are logged in. I've created a filter and added it to web.xml with a url-pattern of / *. However, when I load my app's html page, the doFilter method isn't called. My logging output shows the filter being inited OK, but the doFilter doesn't get called. Is there something else I need to do to get this working? Thanks! Gemma -- 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 Uses Annotations Only
DataNucleus supports all types of input ... JPA annotations, JPA XML, JDO annotations, JDO XML ... all for use with JPA persistence API (with or without GAE/J). You won't find that flexibility in any other persistence solution ... -- 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: Does DataNucleus support add(int arg0, E arg1) for JDO-backed lists?
DataNucleus itself supports all java.util.List methods. What GAE/J supports is unknown to me. Your stack trace seems to relate to a pm.close() not to any add operation. Obviously the log would tell you what is 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.
[appengine-java] updated attribute in feed is not working right
It's supposed to be a DateTime representation of the last time the feed was updated but I seem to get the current date every time I request the feed: Query myQuery = new Query(feedUrl); myQuery.setUpdatedMin(new DateTime(lastStartTime)); // I store the updated from the last run in Date format myQuery.setMaxResults(1000); myQuery.setStringCustomParameter(showdeleted,true); myFeed = myService.query(myQuery, ContactFeed.class); System.out.println(Updated attribute is + myFeed.getUpdated ()); // Even though no update to the feed was performed, // the timestamp changes at every run Official Google documentation: http://code.google.com/apis/contacts/docs/3.0/developers_guide_java.html#retrieving_with_query Note: To track incremental changes to a contact list, do the following: When you send a request for a feed, keep track of the value of the feed's updated element. Then you can later retrieve only the contacts that have changed since the previous request by setting updated-min to that updated value, and setting showdeleted to true. Any suggestion? Thanks for your help. -- 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] Servlet filter not being called?
If you only require simple authentication, you can get by without even using a filter and just using auth constraints in the deployment descriptor: http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication On Wed, Dec 30, 2009 at 10:18 AM, Don Schwarz schwa...@google.com wrote: From http://code.google.com/appengine/docs/java/gettingstarted/staticfiles.html : Any request for a URL whose path matches a static file serves the file directly to the browser—even if the path also matches a servlet or filter mapping. You can configure which files App Engine treats as static files using the appengine-web.xml file. You can learn how to configure static files here: http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files On Wed, Dec 30, 2009 at 10:33 AM, gemma gemmasilv...@googlemail.comwrote: Hello! I'm new to App Engine and am jumping straight in and learning via writing an app, as you do. I figured that a good thing to do was to create a servlet filter that checks the user's login status, forwarding to the login page if they haven't got a login, or allowing the request through if they are logged in. I've created a filter and added it to web.xml with a url-pattern of / *. However, when I load my app's html page, the doFilter method isn't called. My logging output shows the filter being inited OK, but the doFilter doesn't get called. Is there something else I need to do to get this working? Thanks! Gemma -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google 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] setting a lower deadline
Sounds like a pretty useful feature, actually. As far as I know, there's no way of doing this. Did you have any ideas how this would be implemented outside App Engine? Maybe we can cook something up. I'd go ahead and file this as a feature request: http://code.google.com/p/googleappengine/issues/list On Thu, Dec 24, 2009 at 2:49 AM, phraktle phrak...@gmail.com wrote: Hi, Is there a way to actually lower the timeout for a given request? In some cases I would like to guarantee a quicker response time (eg. subsecond) and bail out if it's not happening (eg. due to a temporary slowness in the datastore). Of course, one could just check currentTimeMillis from all over the place, but that's a sub-par solution compared to just getting a DeadlineExceededException from any call... It would be nice to have such capability on the QuotaService, eg. get/ setDeadline (naturally, it would only allow setting to a lower value than previously). btw. a related question... let's say I have a simple infinite loop in the code... will GAE throw a DeadlineExceededException in this case? or only from Google API calls? do we only get a HardDeadlineExceededError instead? Regards, Viktor -- 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 -- 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 speed up JSP compile time?
Hi again The funny thing is that on my machine (a macbook pro 2.66 ghz dual core) all jsp files takes about 1:45 minutes to compile.. even the ones with no logic.. Cheers Simon On Dec 30, 2:50 pm, Simon Vogensen vogen...@gmail.com wrote: Hi Im having the same problems.. every time I change a .jsp file it takes up to 3 min to recompile it.. My project is very small, there's almost no data in the datastore. The jsp file is also very small. I should say that im running appengine through devmode on a mac with snow leopard. I have tried profiling with Visualvm and get the following hotspots (this shows the load of one jsp recompile).. org.apache.tools.ant.taskdefs.StreamPumper.run() 40.26772 208150 ms (40.3%) 2 org.mortbay.jetty.Server.handle(org.mortbay.jetty.HttpConnection) 20.24753 104662 ms (20.2%) 13 java.lang.UNIXProcess$2$1.run() 20.171682 104270 ms (20.2%) 1 java.util.concurrent.ThreadPoolExecutor$Worker.run() 10.060698 52005 ms (10.1%) 1 sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run() 9.137142 47231 ms (9.1%) 2 com.google.appengine.api.datastore.dev.LocalDatastoreService.runQuery (com.google.appengine.tools.development.LocalRpcService.Status, com.google.apphosting.api.DatastorePb.Query) 0.0101551 58.5 ms (0%) 11 Most of the time when recompiling it seems its waiting for IO or something - the cpu is almost idle. My ant target looks like this.. target name=devmode depends=javac description=Run development mode java failonerror=true fork=true classname=com.google.gwt.dev.DevMode classpath pathelement location=src/ path refid=project.class.path/ path refid=tools.class.path/ /classpath jvmarg value=-Xmx512M/ jvmarg value=-javaagent:${appengine.sdk}/lib/agent/appengine- agent.jar/ jvmarg value=-Xdebug/ jvmarg value=- Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005/ arg value=-startupUrl/ arg value=${gwt.startupUrl}/ !-- Additional arguments like -style PRETTY or -logLevel DEBUG -- arg value=-server/ arg value=com.google.appengine.tools.development.gwt.AppEngineLauncher/ arg value=${gwt.module}/ /java /target Cheers Simon On Nov 17, 6:04 pm, Toby Reyelts to...@google.com wrote: On Sat, Nov 14, 2009 at 1:01 PM, Steph steph@gmail.com wrote: This happens: - running dev_appserver - with JSP files of just any size. - seems to be blocking on initializing the datastore Can you elaborate on this part a bit more? What are you seeing that makes you think it's initializing the datastore? Are you restarting the entire dev_appserver after modifying the jsp? How large is your datastore (e.g. how many entities, how many properties per entity, average size of each property). If you can file an issue with a very simple webapp that reproduces the problem, that would be the best way for us to track the problem down. Alternatively, you could hook a profiler up to the dev_appserver yourself (for example, visualvm, hprof, or jprofiler). With three minutes of execution time, there should be a pretty obvious hotspot. I tried to set --jvm_flag=-Xmx1G in my dev_appserver.cmd file but it does not seem to help much (i don't use eclipse) Another other advice? On Nov 13, 12:00 pm, Toby Reyelts to...@google.com wrote: Wow, that sounds bad. You're saying that this happens while running the dev_appserver (not appcfg), and you're only modifying one JSP file? Is that JSP file huge? Try raising the heap size of your JVM. For example, if you're using Eclipse, set -Xmx1G in the JVM arguments for your launch config. If you're running the dev_appserver from the command line, use --jvm_flag=-Xmx1G.On Fri, Nov 13, 2009 at 12:51 PM, Steph steph@gmail.com wrote: When modifying a JSP in the war directory, it can take up to 3 minutes for the JSP to recompile and the page to render (I am on a brand new dual-core CPU 2.66 Ghz). Is there a way that the JSP compile time can be speed up? This slowness makes development almost unbearable. Thanks for your help. -- 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%2B unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=. -- 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
Re: [appengine-java] Testing mail service in development mode
Outbound emails are logged to the logger: http://code.google.com/appengine/docs/java/mail/overview.html#Development_Server http://code.google.com/appengine/docs/java/mail/overview.html#Development_ServerIs your logger configured? There's a sample verbose logging.properties that ships with the SDK you can use in your project. On Mon, Dec 28, 2009 at 12:55 PM, Marcel Overdijk marceloverd...@gmail.comwrote: As GAE does not send out mails in development server, I'm wondering how others are testing this. Just go live and hope it works? -- 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 -- 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] Using UserService credentials with a SpreadsheetService
The methods available to the users service are documented here: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html The Users Service doesn't provide an AuthSub token: http://code.google.com/apis/gdata/javadoc/ That's not great, I know. You might also want to ask on the Accounts API list - there might be other creative ways this has been worked around by other users: http://groups.google.com/group/Google-Accounts-API On Mon, Dec 28, 2009 at 3:19 PM, zackmac zack.macom...@gmail.com wrote: In my GAE/J web application, users authenticate via their google account. I check to see they've signed into google via this code in my jsp: UserService userService = UserServiceFactory.getUserService(); User user = userService.getCurrentUser(); if (user == null) response.sendRedirect(/index.jsp); Is there anyway to use the user object above to query for that user's spreadsheets? I'm thinking that it would involve using user.getAuthDomain() but not sure if I'm right here. For instance, would this work?... service.setAuthSubToken(user.getAuthDomain()); -- 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 -- 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 running my app
Vik, did you have any luck solving this issue? On Tue, Dec 29, 2009 at 5:50 AM, Vik vik@gmail.com wrote: Hie By mistake i deleted my eclipse folder. So i freshly got a copy and installed google plugin for eclipse and opened my project. Now when i run it fails giving following exception Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : D:\Personal\softwares\sakshum_softwares\Google_Apps\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-java-sdk-1.2.6\lib\agent\appengine-agent.jar I feel this is fine that mentioned jar would be missing which is of version 1.2.6 but from where i should remove this reference to fix it? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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 -- 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: JDO Query for properties with null values
I'm not sure what will happen when you pass this: (Key) null As the query parameter. Instead, what happens if you query on parentKey == null? On Tue, Dec 29, 2009 at 11:47 AM, dantuluri pdantul...@gmail.com wrote: Hi, I have the following code: query = pm.newQuery(File.class); query.setFilter(parentKey == parentKeyParam); ListFile storedFiles = (ListFile)query.execute((Key)null); This query is returning all the Files including those with parentKey not null. What is wrong with this query? I am kinda stuck. Please help me. Thanks On Dec 28, 1:24 pm, Ikai L (Google) ika...@google.com wrote: You should be able to query for a null value, but you will not be able to query for an empty value. What is the query you are issuing? What is this returning? On Wed, Dec 23, 2009 at 8:29 AM, dantuluri pdantul...@gmail.com wrote: I am new GAE and I need some help. Is it possible to query for entities with a property value null using GAE JDO query? I want something like Get me all the Files that don't have a parent In regular relational DBs, it can be queried some thing like this: select * from File where parentKey is null I have a class something like this: public class File { @Persistent @PrimaryKey private Key id; @Persistent String name; @Persistent private Key parentKey; } When I am querying for Files that have null parentKey, query returns all Files including those with non-null parentKey value. Is this possible to do with GAE? Thanks! On Dec 22, 1:33 pm, dantuluri pdantul...@gmail.com wrote: Hi, I have an entity that has the following structure: File which has Key as primary key and ParentKey that refers to another File which is parent of this File. Example data for this structure looks like this: Key: File(2) Name: Inbox parentKey: File(1) It is possible that File may not have a parentKey. I want to query the DataStore for Files that don't have parent file (parentKey == null). But when I am querying with parentKey == null, I am still getting all Files including those with parentsKeys. How can we do this with JDO query with App Store? I must be missing something basic here. Similarly I would like to get the child folders of a given folder (parentKey == File(1)). Any help would be 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App 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 -- 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: Servlet filter not being called?
Thank you so much guys - very much appreciated! Thanks! Gemma On Dec 30, 7:06 pm, Ikai L (Google) ika...@google.com wrote: If you only require simple authentication, you can get by without even using a filter and just using auth constraints in the deployment descriptor:http://code.google.com/appengine/docs/java/config/webxml.html#Securit... On Wed, Dec 30, 2009 at 10:18 AM, Don Schwarz schwa...@google.com wrote: From http://code.google.com/appengine/docs/java/gettingstarted/staticfiles... : Any request for a URL whose path matches a static file serves the file directly to the browser—even if the path also matches a servlet or filter mapping. You can configure which files App Engine treats as static files using the appengine-web.xml file. You can learn how to configure static files here: http://code.google.com/appengine/docs/java/config/appconfig.html#Stat... On Wed, Dec 30, 2009 at 10:33 AM, gemma gemmasilv...@googlemail.comwrote: Hello! I'm new to App Engine and am jumping straight in and learning via writing an app, as you do. I figured that a good thing to do was to create a servlet filter that checks the user's login status, forwarding to the login page if they haven't got a login, or allowing the request through if they are logged in. I've created a filter and added it to web.xml with a url-pattern of / *. However, when I load my app's html page, the doFilter method isn't called. My logging output shows the filter being inited OK, but the doFilter doesn't get called. Is there something else I need to do to get this working? Thanks! Gemma -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google 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: Springframework - problem with session forms in GAE for Java 1.3.0
Ok, I will answer my self ... in case someone will hit same issue ... Do not check only your form. Seams that if there is any other attribute added to session which is not extending Serializable, whole session fails to serialize, but you will get only warning on this in log, and you will get such message. Another hint - there is more log levels than error ;) On Dec 30, 12:24 pm, Konrad konradpaw...@gmail.com wrote: BTW: This error ocures only on hosted mode, in local running app everything is fine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] JDO/JPA Snippets That Work - More compact @PersistenceCapable declarations
http://gae-java-persistence.blogspot.com/2009/12/more-compact-persistencecapable.html -- 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] Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??
Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the following error in the logs: Here's the stacktrace: org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) 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:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 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 Does anyone have a suggestion what could cause this problem to occur?? thx a lot! -- 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 query objects with criterias defined in child entities
Hi, I'm trying to implement the following scenario and I can't get my head round how to implement it. Assume we get a list of user profiles where each profile can have a set of skills. Each skill is defined by a name (or reference to an entity with more information) and an experience level. Now I want to query a list of user profiles which match some skills with a minimum level required. Example: Get a list of all users which are have high experience in Java (skill name=Java, at least level=5) and some experience in AppEngine (skill name=AppEngine, at least level=1) I was about to model a class UserProfile which holds a set of UserSkill objects. UserSkill class has a name and a level (and some additional infos). But I can't think of a way how to do the query in GAE... Thanks a lot Reini -- 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: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??
Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote: Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the following error in the logs: Here's the stacktrace: org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean (AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.createBean (AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS ingleton (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.preIns tantiateSingletons (DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFa ctoryInitialization (AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 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 Does anyone have a suggestion what could cause this problem to occur?? thx a lot! -- 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: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??
Indeed, the TimerTask class implements Runnable...damn. Didn't know that threads aren't allowed. Thx On Dec 30, 11:31 pm, Marcel Overdijk marceloverd...@gmail.com wrote: Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote: Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the following error in the logs: Here's the stacktrace: org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean (AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.createBean (AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS ingleton (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.preIns tantiateSingletons (DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFa ctoryInitialization (AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 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 Does anyone have a suggestion what could cause this problem to occur?? thx a lot! -- 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: Testing mail service in development mode
I'm using log4j as follows: log4j.rootLogger=INFO, A1 log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d %-5p %c - %m%n log4j.category.DataNucleus.JDO=WARN log4j.category.DataNucleus.Persistence=WARN log4j.category.DataNucleus.Cache=WARN log4j.category.DataNucleus.MetaData=WARN log4j.category.DataNucleus.General=WARN log4j.category.DataNucleus.Utility=WARN log4j.category.DataNucleus.Transaction=WARN log4j.category.DataNucleus.Datastore=WARN log4j.category.DataNucleus.ClassLoading=WARN log4j.category.DataNucleus.Plugin=WARN log4j.category.DataNucleus.ValueGeneration=WARN log4j.category.DataNucleus.Enhancer=WARN log4j.category.DataNucleus.SchemaTool=WARN but didn't see anything related to the mail in the logs. On 30 dec, 20:46, Ikai L (Google) ika...@google.com wrote: Outbound emails are logged to the logger: http://code.google.com/appengine/docs/java/mail/overview.html#Develop... http://code.google.com/appengine/docs/java/mail/overview.html#Develop...Is your logger configured? There's a sample verbose logging.properties that ships with the SDK you can use in your project. On Mon, Dec 28, 2009 at 12:55 PM, Marcel Overdijk marceloverd...@gmail.comwrote: As GAE does not send out mails in development server, I'm wondering how others are testing this. Just go live and hope it works? -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App 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: Domain setup using Google Apps
It's was related to Google Sites within Google Apps. I had www configured there some time ago. After deleting it everything works fine. On 30 dec, 10:30, Daniel Louis jair...@gmail.com wrote: Yeah, it is possible... 2009/12/23 Marcel Overdijk marceloverd...@gmail.com I own the footdex.com Google Apps domain. I've bought this some time ago to host a GAE application on it. I now finally added the domain using in GAE admin console, but all I can do is attach it to a subdomain of footdex.com. I just want footdex.com to be the GAE app not a subdomain. Is this possible? Cheers, Marcel -- 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- DCBI(AirFly23) -- 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] Simple one to many problem!!!
I am thoroughly confused… I am trying to set up a simple one to many relationship using JPA, I think that this should work but instead I get the error Primary key for object of type Member is null. Any help would be greatly appreciated. @Entity(name = Member) public class Member { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; @Basic //datastore specific type private Email memberEmail; private String memberPassword; private String memberFirstName; private String memberLastName; @Basic //blob of text not searchable private Text memberDescription; //Member 'owns' the Searches @OneToMany(mappedBy = memberWhoCreated, cascade=CascadeType.ALL) private List Search searches = new ArrayList Search (); //getters and setters //... } @Entity(name = Search) public class Search { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private List String searchStrings; private boolean allowOthersToSee; @Basic //datastore specific type private Text contextOfSearch; @ManyToOne(fetch = FetchType.LAZY) private Member memberWhoCreated; public static Search createASearch(boolean allowOthersToSee, String context, Member member) { Search search = null; EntityManager em = null; try { //get the entity manager em = EMF.get().createEntityManager(); //create the search from the form variables search = new Search(); search.setAllowOthersToSee(allowOthersToSee); search.setContextOfSearch(new Text(context)); search.setMemberWhoCreated(member); em.getTransaction().begin(); try { //store the member em.persist(search); em.getTransaction().commit(); } finally { if (em.getTransaction().isActive()) { em.getTransaction().rollback(); } } } finally { em.close(); } return search; } //getters and setters //... } -- 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] Simple one to many problem!!!
I'd recommend basing your code on the example here to get something working: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Then you can start tweaking. Max On Wed, Dec 30, 2009 at 3:02 PM, markm208 markm...@gmail.com wrote: I am thoroughly confused… I am trying to set up a simple one to many relationship using JPA, I think that this should work but instead I get the error Primary key for object of type Member is null. Any help would be greatly appreciated. @Entity(name = Member) public class Member { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; @Basic //datastore specific type private Email memberEmail; private String memberPassword; private String memberFirstName; private String memberLastName; @Basic //blob of text not searchable private Text memberDescription; //Member 'owns' the Searches @OneToMany(mappedBy = memberWhoCreated, cascade=CascadeType.ALL) private List Search searches = new ArrayList Search (); //getters and setters //... } @Entity(name = Search) public class Search { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private List String searchStrings; private boolean allowOthersToSee; @Basic //datastore specific type private Text contextOfSearch; @ManyToOne(fetch = FetchType.LAZY) private Member memberWhoCreated; public static Search createASearch(boolean allowOthersToSee, String context, Member member) { Search search = null; EntityManager em = null; try { //get the entity manager em = EMF.get().createEntityManager(); //create the search from the form variables search = new Search(); search.setAllowOthersToSee(allowOthersToSee); search.setContextOfSearch(new Text(context)); search.setMemberWhoCreated(member); em.getTransaction().begin(); try { //store the member em.persist(search); em.getTransaction().commit(); } finally { if (em.getTransaction().isActive()) { em.getTransaction().rollback(); } } } finally { em.close(); } return search; } //getters and setters //... } -- 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 Uses Annotations Only
Great, how do you set up the XML files when it's used on App Engine? On Dec 30, 11:31 am, datanucleus andy_jeffer...@yahoo.com wrote: DataNucleus supports all types of input ... JPA annotations, JPA XML, JDO annotations, JDO XML ... all for use with JPA persistence API (with or without GAE/J). You won't find that flexibility in any other persistence solution ... -- 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] Request Too Large
I am doing bulk upload using my custom code. It uploaded most data but few blocks are not uploaded. I use makePersistentAll and my code guarantees that it does not upload more then 500 objects at once. I get following error com.google.apphosting.api.ApiProxy$RequestTooLargeException: The request to API call datastore_v3.Put() was too large. at com.google.apphosting.runtime.ApiProxyImpl.doSyncCall (ApiProxyImpl.java:212) at com.google.apphosting.runtime.ApiProxyImpl.access$000 (ApiProxyImpl.java:43) at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java: 96) at com.google.apphosting.runtime.ApiProxyImpl$1.run(ApiProxyImpl.java: 94) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall (ApiProxyImpl.java:94) at com.google.apphosting.runtime.ApiProxyImpl.makeSyncCall (ApiProxyImpl.java:43) at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:83) It is not java.lang.IllegalArgumentException: cannot put more than 500 entities in a single call What is too large? I wish to verify my data before I will submit it to datastore and ensure that it is not too large for the datastore :) Cheers, 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.
[appengine-java] Creating an app with Fusion tables an Visualization
Hi App Engine community I am wanting to get some advice on an app I am looking to create. Basically the app is going to show analytics (google visualizations) to an authenticated user. These are the components that I am looking to employ. -send structured data from an external source into a google fusion table. -based on the user that logs in, query the data and display visualizations to them. Would fusion tables, GWT, GAE, Visualizations be the best components to use and are there any good code examples out there? I have stepped through a few other examples Stockwatcher example, gdata example, message board example, so have a basic grasp of the technologies Any thoughts? -- 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] example cache with jpa
any example on using level1/2 caching with jpa @Cacheable? any guide on this? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] problem running my app
yeah search on the group earlier posts your will find the solution. you need to change in your run configurations in the jvm arguments... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Thu, Dec 31, 2009 at 1:29 AM, Ikai L (Google) ika...@google.com wrote: Vik, did you have any luck solving this issue? On Tue, Dec 29, 2009 at 5:50 AM, Vik vik@gmail.com wrote: Hie By mistake i deleted my eclipse folder. So i freshly got a copy and installed google plugin for eclipse and opened my project. Now when i run it fails giving following exception Error occurred during initialization of VM agent library failed to init: instrument Error opening zip file or JAR manifest missing : D:\Personal\softwares\sakshum_softwares\Google_Apps\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-java-sdk-1.2.6\lib\agent\appengine-agent.jar I feel this is fine that mentioned jar would be missing which is of version 1.2.6 but from where i should remove this reference to fix it? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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 -- 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] Strange exception in my app
* Hie runnning in local with eclipse plugin. At the line pm = PMF.get().getPersistenceManager(); I am getting exception: javax/jdo/PersistenceManager I do not see anything else in the log. Last time some 1-2 days back when I ran the app all was working fine. Not sure what even changed. Please advise where to look for. I am on appengine 1.3.0 *Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] Simple one to many problem!!!
The difference between your code and the code in the blog post is that you're calling em.persist() on the child object but the blog post is calling em.persist() on the parent object. If you want to take advantage of implicit entity group assignment it's important to manage children via their parents. If you switch em.persist(search) to em.persist(member) you should be fine. Max On Wed, Dec 30, 2009 at 3:22 PM, Max Ross (Google) maxr+appeng...@google.com maxr%2bappeng...@google.com wrote: I'd recommend basing your code on the example here to get something working: http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html Then you can start tweaking. Max On Wed, Dec 30, 2009 at 3:02 PM, markm208 markm...@gmail.com wrote: I am thoroughly confused… I am trying to set up a simple one to many relationship using JPA, I think that this should work but instead I get the error Primary key for object of type Member is null. Any help would be greatly appreciated. @Entity(name = Member) public class Member { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; @Basic //datastore specific type private Email memberEmail; private String memberPassword; private String memberFirstName; private String memberLastName; @Basic //blob of text not searchable private Text memberDescription; //Member 'owns' the Searches @OneToMany(mappedBy = memberWhoCreated, cascade=CascadeType.ALL) private List Search searches = new ArrayList Search (); //getters and setters //... } @Entity(name = Search) public class Search { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Key id; private List String searchStrings; private boolean allowOthersToSee; @Basic //datastore specific type private Text contextOfSearch; @ManyToOne(fetch = FetchType.LAZY) private Member memberWhoCreated; public static Search createASearch(boolean allowOthersToSee, String context, Member member) { Search search = null; EntityManager em = null; try { //get the entity manager em = EMF.get().createEntityManager(); //create the search from the form variables search = new Search(); search.setAllowOthersToSee(allowOthersToSee); search.setContextOfSearch(new Text(context)); search.setMemberWhoCreated(member); em.getTransaction().begin(); try { //store the member em.persist(search); em.getTransaction().commit(); } finally { if (em.getTransaction().isActive()) { em.getTransaction().rollback(); } } } finally { em.close(); } return search; } //getters and setters //... } -- 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] Sub-object add and retrieve with filter
Hello I have two classes . public class Category extends BaseObject implements ICategory { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String name; @Persistent private Key parentFk; } public class Company implements ICompany { private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String name; @Persistent private Category categoryFk; } I want to add a company with category object it's working but if I want to retrive company with filter on category object so it's not wroking. show some embedded error This type of requirement facing more because every class object has some relations at the time of retrieve data need filters on sub- objects so please help me out. 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: WARNING: No file found for:
Hi, If you do not use GWT Please confirm it accesses by / and index.html is displayed If you can display index.html I think the link to default servlet to be displayed. When PojectName is [App2] servlet-mapping made with default seems to be made from the name of [app2]. (at least that was my experience) Please refer to the following links for details of servlet-mapping http://code.google.com/intl/us/appengine/docs/java/config/webxml.html Please try . tnaks. On 12月29日, 午前10:31, Dana danaballin...@gmail.com wrote: Can't seem to get a simple app running. I am using Eclipse 3.4 with the Google plugin. I created a (default) app called App2. I have made no changes to the default code provided by the wizard. First I got the error that favicon.ico was not found. So I added an icon to the war folder. Now I am getting the error WARNING: No file found for /App2. Both of these errors are resulting in a 404 error in the browser. What am I missing? Is there some additional configuration that is required to get started? The Google Getting Started pages don't seem to mention these issues or other special requirements. Thanks, -db -- 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] strange question about Ehcache
my project works with spring+ struts2+Encache, and it works fine on my local machine, but when i deploy to GAE, it got one error when run Ehcache It seems that project can not * initialize class net.sf.ehcache.Element* my Ehcache version is the latest version 1.7.1 and my app id is rabidstudio, could u help me to investigate it. Thanks Uncaught exception from servlet java.lang.reflect.InvocationTargetException at com.google.appengine.runtime.Request.process-9f8eedb4d1d9c430(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:42) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:441) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:280) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:243) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:122) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:195) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.blog.interceptors.SessionInterceptor.intercept(SessionInterceptor.java:50) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at com.struts2.gae.interceptor.GaeFileUploadInterceptor.intercept(GaeFileUploadInterceptor.java:53) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) 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 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
Re: [appengine-java] Re: Spring TimerFactoryBean and ScheduledTimerTask not working on AppEngine??
I try schedule with spring on GAE, and it does not work too. GAE has some function like cron jobs with 'cron.xml', you can try it http://code.google.com/appengine/docs/java/config/cron.html On Thu, Dec 31, 2009 at 6:34 AM, Juri juri.strumpfloh...@gmail.com wrote: Indeed, the TimerTask class implements Runnable...damn. Didn't know that threads aren't allowed. Thx On Dec 30, 11:31 pm, Marcel Overdijk marceloverd...@gmail.com wrote: Are those Spring classes creating threads? This is not allowed on GAE. On 30 dec, 22:17, Juri juri.strumpfloh...@gmail.com wrote: Hi, I configured a TimerFactoryBean through my Spring configuration file which launched a ScheduledTimerTask in given time intervals for performing some work. Locally when developing within the hosted mode browser in Eclipse it works just fine, but when I deploy it to AppEngine I get the following error in the logs: Here's the stacktrace: org.springframework.web.context.ContextLoader initWebApplicationContext: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.scheduling.timer.TimerFactoryBean#0' defined in ServletContext resource [/WEB-INF/spring-service.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.initializeBean (AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.doCreateBean (AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y $1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y.createBean (AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory $1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS ingleton (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.preIns tantiateSingletons (DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFa ctoryInitialization (AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:380) at org.springframework.web.context.ContextLoader.createWebApplicationContext (ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext (ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized (ContextLoaderListener.java:45) at org.mortbay.jetty.handler.ContextHandler.startContext (ContextHandler.java:530) at org.mortbay.jetty.servlet.Context.startContext(Context.java:135) 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 Does anyone have a suggestion what could cause this problem to occur?? thx a lot! -- 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. -- dream or truth -- You received this message because you