Issue 437: ClassCastException when executing some scheduled task
Status:  Duplicate
Merged:  issue 483
Owner: ----
Closed:  Mar 2010
Reported by Eugu...@gmail.com, Feb 8, 2010
Affected Version: 2.1.1.1
Environment: Mandriva Linux 2010

I have left Gerrit working over weekend and in the morning i found this in 
console:

Exception in thread "WorkQueue-1" java.lang.ClassCastException: 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask cannot 
be cast to com.google.gerrit.server.git.WorkQueue$Task
        at 
com.google.gerrit.server.git.WorkQueue$Executor.afterExecute(WorkQueue.java
:172)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Unknown Source)
Exception in thread "WorkQueue-2" java.lang.ClassCastException: 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask cannot 
be cast to com.google.gerrit.server.git.WorkQueue$Task
        at 
com.google.gerrit.server.git.WorkQueue$Executor.afterExecute(WorkQueue.java
:172)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
Source)
        at java.lang.Thread.run(Unknown Source)



Feb 8, 2010
#1 sop@google.com
Something must have scheduled a task which we didn't get to decorate.
Not sure what's up with that, but its a real bug.
Status: Accepted
Mar 4, 2010
#2 sop@google.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 483