java.lang.ClassCastException: sur.che.SexyClassForLoader cannot be cast to sur.che.ISexyInterface

Stack Overflow | gstackoverflow | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael and chenjunjun . Or join the community to write better ones.
  1. 0

    ClassCastException while I use custom classloader

    Stack Overflow | 2 months ago | gstackoverflow
    java.lang.ClassCastException: sur.che.SexyClassForLoader cannot be cast to sur.che.ISexyInterface
  2. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  3. 0
    samebug tip
    Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    One of the variables you're using is set to Null or you're passing a Null value to a method expecting another kind of value
  6. 0
    samebug tip
    自定义异常

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      sur.che.SexyClassForLoader cannot be cast to sur.che.ISexyInterface

      at sur.che.Loader.main()
    2. sur.che
      Loader.main
      1. sur.che.Loader.main(Loader.java:25)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    4. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame