Exception with LiftActor

21 views
Skip to first unread message

Donald McLean

unread,
Mar 7, 2016, 10:59:08 AM3/7/16
to liftweb
Hi all,

Any thoughts on what would be causing this:

net.liftweb.actor.PingerException: edu.stsci.aofl.remote.PERIODIC_CHECK$@14d1f256 could not be scheduled on edu.stsci.aofl.remote.RequestPort$RequestPortActor@2b69ee9a
    at net.liftweb.actor.LAPinger$.schedule(LAPinger.scala:72) ~[lift-actor_2.11-2.6.2.jar:2.6.2]
    at edu.stsci.aofl.remote.RequestPort$RequestPortActor.handlePeriodicCheck(RequestPort.scala:199) [aofl.jar:na]
    at edu.stsci.aofl.remote.RequestPort$RequestPortActor$$anonfun$messageHandler$1.applyOrElse(RequestPort.scala:100) ~[aofl.jar:na]
    at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:36) ~[scala-library.jar:na]
    at net.liftweb.actor.LiftActor$class.execTranslate(LiftActor.scala:502) ~[lift-actor_2.11-2.6.2.jar:2.6.2]
    at edu.stsci.aofl.remote.RequestPort$RequestPortActor.execTranslate(RequestPort.scala:88) [aofl.jar:na]
    at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedLiftActor$$proc2(LiftActor.scala:305) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply$mcV$sp(LiftActor.scala:227) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply(LiftActor.scala:227) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.SpecializedLiftActor$$anonfun$net$liftweb$actor$SpecializedLiftActor$$processMailbox$1.apply(LiftActor.scala:227) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.SpecializedLiftActor$class.around(LiftActor.scala:241) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at edu.stsci.aofl.remote.RequestPort$RequestPortActor.around(RequestPort.scala:88) [aofl.jar:na]
    at net.liftweb.actor.SpecializedLiftActor$class.net$liftweb$actor$SpecializedLiftActor$$processMailbox(LiftActor.scala:226) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.SpecializedLiftActor$$anonfun$2$$anonfun$apply$mcV$sp$1.apply$mcV$sp(LiftActor.scala:190) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at net.liftweb.actor.LAScheduler$$anonfun$9$$anon$2$$anon$3.run(LiftActor.scala:76) [lift-actor_2.11-2.6.2.jar:2.6.2]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_65]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_65]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1a160f64 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2ed84ca5[Shutting down, pool size = 1, active threads = 0, queued tasks = 46, completed tasks = 719]
    at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) ~[na:1.8.0_65]
    at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) [na:1.8.0_65]
    at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:326) ~[na:1.8.0_65]
    at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:549) ~[na:1.8.0_65]
    at java.util.concurrent.Executors$DelegatedScheduledExecutorService.schedule(Executors.java:732) ~[na:1.8.0_65]
    at net.liftweb.actor.LAPinger$.schedule(LAPinger.scala:73) ~[lift-actor_2.11-2.6.2.jar:2.6.2]
    ... 17 common frames omitted

Brett Grace

unread,
Mar 7, 2016, 11:35:41 AM3/7/16
to Lift
Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@1a160f64 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@2ed84ca5[Shutting down, pool size = 1, active threads = 0, queued tasks = 46, completed tasks = 719]

The docs for ScheduledThreadPoolExecutor say: 

shutdown()
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.

There remain 46 queued tasks but the ScheduledThreadPoolExecutor is in the "shutting down" state. This seems consistent with something calling shutdown() on the executor.

Not sure if this is what you're looking for or if you're really asking, "any ideas what's shutting down my ScheduledThreadPoolExecutor?"

Donald McLean

unread,
Mar 7, 2016, 11:44:38 AM3/7/16
to liftweb
Duh.

Thank you Brett.

Actually, what I need is a way to find out when the executor is shut down - I have a pretty good idea what's shutting it down.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Family photographs are a critical legacy for
ourselves and our descendants. Protect that
legacy with a digital backup and recovery plan.
Reply all
Reply to author
Forward
0 new messages