java.lang.ClassCastException: java.lang.Class

Terracotta Project Issue Tracker | Steve Harris | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Terracotta Project Issue Tracker

    terracotta.org | 9 months ago
    java.lang.ClassCastException: java.lang.Class
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    ClassCastException when putting a Class key into a ConcurrentHashMap

    Terracotta | 10 years ago | anodos
    java.lang.ClassCastException: java.lang.Class cannot be cast to com.tc.object.bytecode.Manageable

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.Class

      at com.tc.object.bytecode.ManagerImpl.shareObjectIfNecessary()
    2. com.tc.object
      ManagerUtil.shareObjectIfNecessary
      1. com.tc.object.bytecode.ManagerImpl.shareObjectIfNecessary(ManagerImpl.java:548)
      2. com.tc.object.bytecode.ManagerUtil.shareObjectIfNecessary(ManagerUtil.java:132)
      2 frames
    3. Java RT
      ConcurrentHashMap.put
      1. java.util.concurrent.ConcurrentHashMap.__tc_hash(ConcurrentHashMap.java)
      2. java.util.concurrent.ConcurrentHashMap.__tc_hash(ConcurrentHashMap.java)
      3. java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:848)
      3 frames
    4. com.tctest
      GenericTestApp.runTest
      1. com.tctest.ConcurrentHashMapTestApp.testPut1(ConcurrentHashMapTestApp.java:62)
      2. com.tctest.GenericTestApp.runMethod(GenericTestApp.java:144)
      3. com.tctest.GenericTestApp.runOp(GenericTestApp.java:138)
      4. com.tctest.GenericTestApp.doMutate(GenericTestApp.java:104)
      5. com.tctest.GenericTestApp.runTest(GenericTestApp.java:69)
      5 frames
    5. com.tctest.runner
      AbstractErrorCatchingTransparentApp.run
      1. com.tctest.runner.AbstractErrorCatchingTransparentApp.run(AbstractErrorCatchingTransparentApp.java:29)
      1 frame
    6. com.tc.simulator
      ApplicationRunner.run
      1. com.tc.simulator.container.ApplicationRunner.run(ApplicationRunner.java:43)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:613)
      1 frame