I have scheduled a task that the actors carry out at a scheduled time(every 
5 minutes). When I deploy my app the first time it runs fine but on the 
second and consequent runs it gives the folllowing error 


09:22:00.006 [schedulerFactoryBean_Worker-2] ERROR (:) - Job 
DEFAULT.jobDetailFactoryBean threw an unhandled Exception: 

java.lang.IllegalStateException: cannot create children while terminating 
or terminated

at akka.actor.dungeon.Children$class.makeChild(Children.scala:266) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.dungeon.Children$class.attachChild(Children.scala:46) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.ActorCell.attachChild(ActorCell.scala:374) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:589) 
~[akka-actor_2.11-2.4.4.jar:?]

at com.cisco.collab.arachne.job.SchedulingJob.executeInternal(
SchedulingJob.java:35) ~[SchedulingJob.class:?]

at org.springframework.scheduling.quartz.QuartzJobBean.execute(
QuartzJobBean.java:75) 
~[spring-context-support-4.1.5.RELEASE.jar:4.1.5.RELEASE]

at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 
~[quartz-2.2.2.jar:?]

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(
SimpleThreadPool.java:573) ~[quartz-2.2.2.jar:?]

09:22:00.007 [schedulerFactoryBean_Worker-2] ERROR (:) - Job 
(DEFAULT.jobDetailFactoryBean threw an exception.

org.quartz.SchedulerException: Job threw an unhandled exception.

at org.quartz.core.JobRunShell.run(JobRunShell.java:213) 
~[quartz-2.2.2.jar:?]

at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(
SimpleThreadPool.java:573) ~[quartz-2.2.2.jar:?]

Caused by: java.lang.IllegalStateException: cannot create children while 
terminating or terminated

at akka.actor.dungeon.Children$class.makeChild(Children.scala:266) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.dungeon.Children$class.attachChild(Children.scala:46) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.ActorCell.attachChild(ActorCell.scala:374) 
~[akka-actor_2.11-2.4.4.jar:?]

at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:589) 
~[akka-actor_2.11-2.4.4.jar:?]

at com.cisco.collab.arachne.job.SchedulingJob.executeInternal(
SchedulingJob.java:35) ~[SchedulingJob.class:?]

at org.springframework.scheduling.quartz.QuartzJobBean.execute(
QuartzJobBean.java:75) 
~[spring-context-support-4.1.5.RELEASE.jar:4.1.5.RELEASE]

at org.quartz.core.JobRunShell.run(JobRunShell.java:202) 
~[quartz-2.2.2.jar:?]

... 1 more





I have used reaper  concept for shutdown strategy and I terminate the 
system after all children actors are done working.

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to