Indeed, the TimerTask class implements Runnable...damn. Didn't know that threads aren't allowed.
Thx On Dec 30, 11:31 pm, Marcel Overdijk <[email protected]> wrote: > Are those Spring classes creating threads? This is not allowed on GAE. > > On 30 dec, 22:17, Juri <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
