java.lang.ClassCastException: java.lang.Object cannot be cast to java.lang.String

GitHub | srowen | 6 months 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.

Root Cause Analysis

  1. java.lang.ClassCastException

    java.lang.Object cannot be cast to java.lang.String

    at net.openhft.koloboke.collect.impl.hash.MutableSeparateKVObjLHashGO.removeIf()
  2. net.openhft.koloboke
    MutableSeparateKVObjLHashGO.removeIf
    1. net.openhft.koloboke.collect.impl.hash.MutableSeparateKVObjLHashGO.removeIf(MutableSeparateKVObjLHashGO.java:275)
    1 frame
  3. com.cloudera.oryx
    ALSServingModel.lambda$retainRecentAndKnownItems$7
    1. com.cloudera.oryx.app.serving.als.model.ALSServingModel.lambda$retainRecentAndKnownItems$7(ALSServingModel.java:437)
    1 frame
  4. net.openhft.koloboke
    MutableLHashParallelKVObjObjMapGO$ValueView.forEach
    1. net.openhft.koloboke.collect.impl.hash.MutableLHashParallelKVObjObjMapGO$ValueView.forEach(MutableLHashParallelKVObjObjMapGO.java:2228)
    1 frame
  5. com.cloudera.oryx
    LoggingCallable.lambda$asRunnable$1
    1. com.cloudera.oryx.app.serving.als.model.ALSServingModel.retainRecentAndKnownItems(ALSServingModel.java:435)
    2. com.cloudera.oryx.app.serving.als.model.ALSServingModelManager.consume(ALSServingModelManager.java:119)
    3. com.cloudera.oryx.lambda.serving.ModelManagerListener.lambda$contextInitialized$1(ModelManagerListener.java:142)
    4. com.cloudera.oryx.common.lang.LoggingCallable.lambda$log$0(LoggingCallable.java:48)
    5. com.cloudera.oryx.common.lang.LoggingCallable.lambda$asRunnable$1(LoggingCallable.java:66)
    5 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame