java.lang.ClassCastException: ir.org.acm.multithreadpower.Main3$2 cannot be cast to java.util.concurrent.Callable

Stack Overflow | S tavakoli | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception in thread "main" java.lang.ClassCastException: cannot be cast to java.util.concurrent.Callable

    Stack Overflow | 7 months ago | S tavakoli
    java.lang.ClassCastException: ir.org.acm.multithreadpower.Main3$2 cannot be cast to java.util.concurrent.Callable
  2. 0

    multithreading - Exception in thread "main" java.lang.ClassCastException: cannot be cast to java.util.concurrent.Callable - Stack Overflow

    askquest.info | 7 months ago
    java.lang.ClassCastException: ir.org.acm.multithreadpower.Main3$2 cannot be cast to java.util.concurrent.Callable

    Root Cause Analysis

    1. java.lang.ClassCastException

      ir.org.acm.multithreadpower.Main3$2 cannot be cast to java.util.concurrent.Callable

      at java.util.concurrent.AbstractExecutorService.invokeAll()
    2. Java RT
      AbstractExecutorService.invokeAll
      1. java.util.concurrent.AbstractExecutorService.invokeAll(AbstractExecutorService.java:235)
      1 frame
    3. ir.org.acm
      Main3.main
      1. ir.org.acm.multithreadpower.Main3.main(Main3.java:35)
      1 frame