debug info:
00:12:07.670 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.jetty.util.component.Container - Container
org.eclipse.jetty.server.Server@42d53760 -
SelectChannelConnector@localhost:8181 as connector
00:12:07.670 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
SelectChannelConnector@localhost:8181
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.getConstructor(Class.java:1825)
at
org.apache.activemq.camel.component.ActiveMQConfiguration.createPooledConnectionFactory(ActiveMQConfiguration.java:180)
at
org.apache.activemq.camel.component.ActiveMQConfiguration.createConnectionFactory(ActiveMQConfiguration.java:164)
at
org.apache.camel.component.jms.JmsConfiguration.getConnectionFactory(JmsConfiguration.java:521)
at
org.apache.camel.component.jms.JmsConfiguration.createListenerConnectionFactory(JmsConfiguration.java:1181)
at
org.apache.camel.component.jms.JmsConfiguration.getListenerConnectionFactory(JmsConfiguration.java:540)
at
org.apache.camel.component.jms.JmsConfiguration.configureMessageListenerContainer(JmsConfiguration.java:996)
at
org.apache.camel.component.jms.JmsConfiguration.createMessageListenerContainer(JmsConfiguration.java:512)
at
org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:137)
at
org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:56)
at
org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
at
org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
at org.apache.camel.impl.RouteService.warmUp(RouteService.java:134)
at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2304)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2234)
at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2256)
at
org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:2133)00:12:07.671
[Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@265c920
at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:794)
at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2109)
at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:726)
at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:688)
at
akka.camel.internal.ConsumerRegistrar$$anonfun$receive$4.applyOrElse(CamelSupervisor.scala:200)
at akka.actor.Actor$class.aroundReceive(Actor.scala:484)
at
akka.camel.internal.ConsumerRegistrar.aroundReceive(CamelSupervisor.scala:195)
00:12:07.672 [qtp627685063-670 Selector0] DEBUG org.eclipse.jetty.io.nio -
Stopped Thread[qtp627685063-670 Selector0,5,main] on
org.eclipse.jetty.io.nio.SelectorManager$1@37a8ed6c
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.pool.ObjectPoolFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 38 more
00:12:07.683 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.jetty.io.nio.ChannelEndPoint - close
SCEP@3d50861c{l(/127.0.0.1:42112)<->r(/127.0.0.1:8181),s=0,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@78520fd2,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
00:12:07.694 [qtp627685063-671 Selector1] DEBUG org.eclipse.jetty.io.nio -
Stopped Thread[qtp627685063-671 Selector1,5,main] on
org.eclipse.jetty.io.nio.SelectorManager$1@6290eb8d
00:12:07.700 [ConsumerTest-akka.actor.default-dispatcher-4] ERROR
akka.actor.ActorSystemImpl - Uncaught error from thread
[ConsumerTest-akka.actor.default-dispatcher-5] shutting down JVM since
'akka.jvm-exit-on-fatal-error' is enabled
00:12:07.710 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
org.eclipse.jetty.server.nio.SelectChannelConnector$ConnectorSelectorManager@265c920
00:12:07.711 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping PooledBuffers
[1/1024@6144,0/1024@16384,0/1024@-]/PooledBuffers
[1/1024@6144,1/1024@32768,0/1024@-]
00:12:07.711 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED null/null
00:12:07.711 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
SelectChannelConnector@localhost:8181
00:12:07.712 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
org.eclipse.jetty.server.Server@42d53760
00:12:07.712 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
o.e.j.s.ServletContextHandler{/,null}
00:12:07.712 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
org.eclipse.jetty.servlet.ServletHandler@4eecfb3d
00:12:07.712 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.server.handler.AbstractHandler - stopping
org.eclipse.jetty.servlet.ServletHandler@4eecfb3d
00:12:07.712 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
org.apache.camel.component.jetty.CamelFilterWrapper-35b47326
00:12:07.714 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
org.apache.camel.component.jetty.CamelFilterWrapper-35b47326
00:12:07.715 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping
org.apache.camel.component.jetty.CamelContinuationServlet-4067c06
00:12:07.715 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
org.apache.camel.component.jetty.CamelContinuationServlet-4067c06
00:12:07.715 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
org.eclipse.jetty.servlet.ServletHandler@4eecfb3d
00:12:07.715 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.server.handler.AbstractHandler - stopping
o.e.j.s.ServletContextHandler{/,null}
00:12:07.717 [Camel (CamelRestTest) thread #3 - ShutdownTask] INFO
o.e.j.server.handler.ContextHandler - stopped
o.e.j.s.ServletContextHandler{/,null}
00:12:07.717 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.jetty.util.component.Container - Container
o.e.j.s.ServletContextHandler{/,null} -
org.eclipse.jetty.servlet.ServletHandler@4eecfb3d as handler
00:12:07.718 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
o.e.j.s.ServletContextHandler{/,null}
00:12:07.718 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.server.handler.AbstractHandler - stopping
org.eclipse.jetty.server.Server@42d53760
00:12:07.718 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - stopping qtp627685063{8<=8<=8/254,0}
00:12:07.771 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED qtp627685063{8<=0<=0/254,0}
00:12:07.771 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.e.j.u.component.AbstractLifeCycle - STOPPED
org.eclipse.jetty.server.Server@42d53760
00:12:07.771 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.a.c.component.http.HttpConsumer - Stopping consumer:
Consumer[http://localhost:8181/orderTest]
00:12:07.772 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
o.a.c.impl.SharedProducerServicePool - Stopping service pool:
org.apache.camel.impl.SharedProducerServicePool@29a43e6a
00:12:07.772 [Camel (CamelRestTest) thread #3 - ShutdownTask] DEBUG
a.c.internal.component.ActorProducer - Stopping producer:
Producer[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds]
00:12:07.773 [Camel (CamelRestTest) thread #3 - ShutdownTask] INFO
o.a.c.impl.DefaultShutdownStrategy - Route: akka://CamelRestTest/user/$f
shutdown complete, was consuming from:
Endpoint[http://localhost:8181/orderTest]
00:12:07.773 [CamelRestTest-akka.actor.default-dispatcher-10] INFO
o.a.c.impl.DefaultShutdownStrategy - Graceful shutdown of 1 routes
completed in 0 seconds
00:12:07.773 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Stopping services on route:
akka://CamelRestTest/user/$f
00:12:07.774 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Stopping child service on route:
akka://CamelRestTest/user/$f -> Consumer[http://localhost:8181/orderTest]
00:12:07.774 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Stopping child service on route:
akka://CamelRestTest/user/$f ->
Channel[sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])]
00:12:07.774 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Stopping child service on route:
akka://CamelRestTest/user/$f ->
sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])
00:12:07.775 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Stopping child service on route:
akka://CamelRestTest/user/$f ->
Channel[sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])]
00:12:07.776 [CamelRestTest-akka.actor.default-dispatcher-10] INFO
o.a.camel.impl.DefaultCamelContext - Route: akka://CamelRestTest/user/$f
is stopped, was consuming from: Endpoint[http://localhost:8181/orderTest]
00:12:07.776 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Shutting down services on route:
akka://CamelRestTest/user/$f
00:12:07.776 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Shutting down child service on route:
akka://CamelRestTest/user/$f -> Consumer[http://localhost:8181/orderTest]
00:12:07.780 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Shutting down child service on route:
akka://CamelRestTest/user/$f ->
Channel[sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])]
00:12:07.781 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Shutting down child service on route:
akka://CamelRestTest/user/$f ->
sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])
00:12:07.782 [CamelRestTest-akka.actor.default-dispatcher-10] DEBUG
org.apache.camel.impl.RouteService - Shutting down child service on route:
akka://CamelRestTest/user/$f ->
Channel[sendTo(Endpoint[akka://CamelRestTest/user/$f?autoAck=true&replyTimeout=60000+milliseconds])]
00:12:07.812 [CamelRestTest-akka.actor.default-dispatcher-10] INFO
o.a.camel.impl.DefaultCamelContext - Route: akka://CamelRestTest/user/$f
is shutdown and removed, was consuming from:
Endpoint[http://localhost:8181/orderTest]
On Tuesday, March 14, 2017 at 11:40:36 PM UTC+8, Alex Wang wrote:
>
> Hi,
>
> I am following <Akka in Action> book and cloned code from
> https://github.com/RayRoestenburg/akka-in-action
>
> when executing `sbt assembly` it appeared error as following:
>
>
> 23:09:59.383 [ConsumerTest-akka.actor.default-dispatcher-7] DEBUG
> o.a.camel.impl.DefaultCamelContext - Warming up route id:
> akka://ConsumerTest/user/$d having autoStartup=true
> 23:09:59.383 [ConsumerTest-akka.actor.default-dispatcher-7] DEBUG
> org.apache.camel.impl.RouteService - Starting services on route:
> akka://ConsumerTest/user/$d
> Uncaught error from thread [ConsumerTest-akka.actor.default-dispatcher-7]
> shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for
> ActorSystem[ConsumerTest]
> java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPoolFactory
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
> at java.lang.Class.getConstructor0(Class.java:3075)
> at java.lang.Class.getConstructor(Class.java:1825)
> at
> org.apache.activemq.camel.component.ActiveMQConfiguration.createPooledConnectionFactory(ActiveMQConfiguration.java:180)
> at
> org.apache.activemq.camel.component.ActiveMQConfiguration.createConnectionFactory(ActiveMQConfiguration.java:164)
> at
> org.apache.camel.component.jms.JmsConfiguration.getConnectionFactory(JmsConfiguration.java:521)
> at
> org.apache.camel.component.jms.JmsConfiguration.createListenerConnectionFactory(JmsConfiguration.java:1181)
> at
> org.apache.camel.component.jms.JmsConfiguration.getListenerConnectionFactory(JmsConfiguration.java:540)
> at
> org.apache.camel.component.jms.JmsConfiguration.configureMessageListenerContainer(JmsConfiguration.java:996)
> at
> org.apache.camel.component.jms.JmsConfiguration.createMessageListenerContainer(JmsConfiguration.java:512)
> at
> org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:137)
> at
> org.apache.camel.component.jms.JmsEndpoint.createConsumer(JmsEndpoint.java:56)
> at
> org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:65)
> at
> org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:80)
> at org.apache.camel.impl.RouteService.warmUp(RouteService.java:134)
> at
> org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:2304)
> at
> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2234)
> at
> org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:2256)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteService(DefaultCamelContext.java:2133)
> at
> org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:794)
> at
> org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2109)
> at
> org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:726)
> at
> org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
> at
> org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
> at
> org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:688)
> at
> akka.camel.internal.ConsumerRegistrar$$anonfun$receive$4.applyOrElse(CamelSupervisor.scala:200)
> at akka.actor.Actor$class.aroundReceive(Actor.scala:484)
> at
> akka.camel.internal.ConsumerRegistrar.aroundReceive(CamelSupervisor.scala:195)
> at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
> at akka.actor.ActorCell.invoke(ActorCell.scala:495)
> at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
> at akka.dispatch.Mailbox.run(Mailbox.scala:224)
> at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
> at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
> at
> scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
> at
> scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
> at
> scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.commons.pool.ObjectPoolFactory
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 38 more
> 23:09:59.430 [ConsumerTest-akka.actor.default-dispatcher-4] ERROR
> akka.actor.ActorSystemImpl - Uncaught error from thread
> [ConsumerTest-akka.actor.default-dispatcher-7] shutting down JVM since
> 'akka.jvm-exit-on-fatal-error' is enabled
>
>
>
> and I also add the dependence for commons pool lib in build.sbt (in root
> directory)
>
>
> // https://mvnrepository.com/artifact/commons-pool/commons-pool
> libraryDependencies += "commons-pool" % "commons-pool" % "1.3"
>
> so, what should I do?
>
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.