Schedule Task Error
Posted: 29 Jun 2013, 10:08
Hi, lapo,
I use schedule task as following:
mainExtension run a schedule task B_Extension, after B_Extension finish the task, call the mainExtension function: handleRequest(), the the following error happen.
jvm 1 | java.util.ConcurrentModificationException
jvm 1 | at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
jvm 1 | at java.util.LinkedList$ListItr.remove(Unknown Source)
jvm 1 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.executeTasks(Scheduler.java:327)
jvm 1 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.run(Scheduler.java:223)
jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
jvm 1 | at java.lang.Thread.run(Unknown Source)
Pls inform how to solve, thanks.
jacky
I use schedule task as following:
mainExtension run a schedule task B_Extension, after B_Extension finish the task, call the mainExtension function: handleRequest(), the the following error happen.
jvm 1 | java.util.ConcurrentModificationException
jvm 1 | at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
jvm 1 | at java.util.LinkedList$ListItr.remove(Unknown Source)
jvm 1 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.executeTasks(Scheduler.java:327)
jvm 1 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.run(Scheduler.java:223)
jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
jvm 1 | at java.lang.Thread.run(Unknown Source)
Pls inform how to solve, thanks.
jacky