camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sumit (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-4208) Camel context (GaeDefaultCamelContext) stop method call throwing exception while trying to shut down on google app engine via ctx.stop();
Date Fri, 15 Jul 2011 10:26:00 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065838#comment-13065838
] 

sumit commented on CAMEL-4208:
------------------------------

Please find herer full stack trace:
641 [628168058@qtp-1679600408-11] WARN org.apache.camel.component.gae.context.GaeDefaultCamelContext
- Error occurred while shutting down routes. This exception will be ignored.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
	at java.security.AccessController.checkPermission(AccessController.java:553)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
	at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:191)
	at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
	at java.lang.Thread.init(Thread.java:353)
	at java.lang.Thread.<init>(Thread.java:505)
	at org.apache.camel.util.concurrent.ExecutorServiceHelper$CamelThreadFactory.newThread(ExecutorServiceHelper.java:355)
	at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:598)
	at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:913)
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1325)
	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:106)
	at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:639)
	at org.apache.camel.impl.DefaultShutdownStrategy.doShutdown(DefaultShutdownStrategy.java:126)
	at org.apache.camel.impl.DefaultShutdownStrategy.shutdown(DefaultShutdownStrategy.java:92)
	at org.apache.camel.impl.DefaultShutdownStrategy.shutdown(DefaultShutdownStrategy.java:84)
	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:1452)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:100)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:124)
	at org.ptg.router.RoutingEngine.stop(RoutingEngine.java:247)
	at org.ptg.http2.handlers.StopRoutingEngine.process(StopRoutingEngine.java:31)
	at org.ptg.http2.handlers.StopRoutingEngine.doPost(StopRoutingEngine.java:24)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
647 [628168058@qtp-1679600408-11] WARN org.apache.camel.component.gae.context.GaeDefaultCamelContext
- Error occurred while shutting down service: org.apache.camel.impl.DefaultShutdownStrategy@15a8cf03.
This exception will be ignored.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
	at java.security.AccessController.checkPermission(AccessController.java:553)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:711)
	at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1379)
	at java.util.concurrent.Executors$DelegatedExecutorService.shutdownNow(Executors.java:631)
	at org.apache.camel.impl.DefaultExecutorServiceStrategy.shutdownNow(DefaultExecutorServiceStrategy.java:352)
	at org.apache.camel.impl.DefaultShutdownStrategy.doShutdown(DefaultShutdownStrategy.java:304)
	at org.apache.camel.impl.ServiceSupport.shutdown(ServiceSupport.java:175)
	at org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:174)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1571)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1593)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1581)
	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:1484)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:100)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:124)
	at org.ptg.router.RoutingEngine.stop(RoutingEngine.java:247)
	at org.ptg.http2.handlers.StopRoutingEngine.process(StopRoutingEngine.java:31)
	at org.ptg.http2.handlers.StopRoutingEngine.doPost(StopRoutingEngine.java:24)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
651 [628168058@qtp-1679600408-11] INFO org.apache.camel.impl.DefaultInflightRepository - Shutting
down with no inflight exchanges.
711 [628168058@qtp-1679600408-11] WARN org.apache.camel.impl.DefaultExecutorServiceStrategy
- Error occurred during shutdown of ExecutorService: java.util.concurrent.Executors$FinalizableDelegatedExecutorService@7daed910.
This exception will be ignored.
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
	at java.security.AccessController.checkPermission(AccessController.java:553)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
	at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:711)
	at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1379)
	at java.util.concurrent.Executors$DelegatedExecutorService.shutdownNow(Executors.java:631)
	at org.apache.camel.impl.DefaultExecutorServiceStrategy.shutdownNow(DefaultExecutorServiceStrategy.java:352)
	at org.apache.camel.impl.DefaultExecutorServiceStrategy.doShutdown(DefaultExecutorServiceStrategy.java:434)
	at org.apache.camel.impl.ServiceSupport.shutdown(ServiceSupport.java:175)
	at org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:174)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1571)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1593)
	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1581)
	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:1484)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:100)
	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:124)
	at org.ptg.router.RoutingEngine.stop(RoutingEngine.java:247)
	at org.ptg.http2.handlers.StopRoutingEngine.process(StopRoutingEngine.java:31)
	at org.ptg.http2.handlers.StopRoutingEngine.doPost(StopRoutingEngine.java:24)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
	at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
	at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:351)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
716 [628168058@qtp-1679600408-11] INFO org.apache.camel.component.gae.context.GaeDefaultCamelContext
- Uptime: 0.630 seconds
716 [628168058@qtp-1679600408-11] INFO org.apache.camel.component.gae.context.GaeDefaultCamelContext
- Apache Camel 2.7.2 (CamelContext: camel-1) is shutdown in 0.105 seconds


> Camel context (GaeDefaultCamelContext) stop method call throwing exception while trying
to shut down on google app engine via 	ctx.stop(); 
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-4208
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4208
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core, camel-gae
>    Affects Versions: 2.7.2
>         Environment: Google app engine sdk 1.5.1, Camel core - 2.7.2, came-gae - 2.7.2
>            Reporter: sumit
>
> Camel context stop throwing exception while trying to shut down on google app engine
via 	ctx.stop();
> Test case:
> Start apache camel on Google app engine via start method as follows upon stopping context,
exception occurs:
> -----------------------------------------------
> {code}
> 	public void stop() throws Exception {
> 		ctx.stop();
> 	}
> 	public void start() throws Exception {
> 		ctx = new GaeDefaultCamelContext();
> 		ctx.disableJMX();
> 		MyRegistry r = new MyRegistry();/*myregistry code is below*/
> 		r.init();
> 		ctx.setRegistry(r);
> 		tmpl = ctx.createProducerTemplate();
> 		ctx.start();
> 	}
> 	public static class MyRegistry extends SimpleRegistry{
> 		public void init(){
> 			put("direct",new DirectComponent());
> 			put("browse", new BrowseComponent());
> 			put("class", new ClassComponent());
> 			put("bean", new BeanComponent());
> 			put("dataset", new DataSetComponent());
> 			put("mock", new MockComponent());
> 			put("language", new LanguageComponent());
> 			put("ref", new RefComponent());
> 			put("vm", new VmComponent());
> 			put("log", new LogComponent());
> 			put("properties", new PropertiesComponent());
> 			
> 			
> 		}
> {code}
> ------------------------------------------
> {code}
> at java.security.AccessControlContext.checkPermission(AccessControlContext.java:393)
> 	at java.security.AccessController.checkPermission(AccessController.java:553)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
> 	at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
> 	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:711)
> 	at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1379)
> 	at java.util.concurrent.Executors$DelegatedExecutorService.shutdownNow(Executors.java:631)
> 	at org.apache.camel.impl.DefaultExecutorServiceStrategy.shutdownNow(DefaultExecutorServiceStrategy.java:352)
> 	at org.apache.camel.impl.DefaultShutdownStrategy.doShutdown(DefaultShutdownStrategy.java:304)
> 	at org.apache.camel.impl.ServiceSupport.shutdown(ServiceSupport.java:175)
> 	at org.apache.camel.util.ServiceHelper.stopAndShutdownService(ServiceHelper.java:174)
> 	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1571)
> 	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1593)
> 	at org.apache.camel.impl.DefaultCamelContext.shutdownServices(DefaultCamelContext.java:1581)
> 	at org.apache.camel.impl.DefaultCamelContext.doStop(DefaultCamelContext.java:1484)
> 	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:100)
> 	at org.apache.camel.impl.ServiceSupport.stop(ServiceSupport.java:124)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message