java.lang.ClassCastException

java.lang.String cannot be cast to com.sun.mirror.type.TypeMirror

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19418

  • via Google Groups by Yoshiteru Iwasaki, 6 months ago
    java.lang.String cannot be cast to com.sun.mirror.type.TypeMirror
  • cannot be cast to java.lang.String
  • cannot be cast to java.lang.String
  • Stack trace

    • java.lang.ClassCastException: java.lang.String cannot be cast to com.sun.mirror.type.TypeMirror at org.slim3.gen.desc.AttributeMetaDescFactory.getClassNameOfClassParameter(AttributeMetaDescFactory.java:595) at org.slim3.gen.desc.AttributeMetaDescFactory.handleJson(AttributeMetaDescFactory.java:577) at org.slim3.gen.desc.AttributeMetaDescFactory.handleField(AttributeMetaDescFactory.java:203) at org.slim3.gen.desc.AttributeMetaDescFactory.createAttributeMetaDesc(AttributeMetaDescFactory.java:125) at org.slim3.gen.desc.ModelMetaDescFactory.createAttributeMetaDesc(ModelMetaDescFactory.java:577) at org.slim3.gen.desc.ModelMetaDescFactory.handleAttributes(ModelMetaDescFactory.java:356) at org.slim3.gen.desc.ModelMetaDescFactory.createModelMetaDesc(ModelMetaDescFactory.java:156) at org.slim3.gen.processor.ModelProcessor.handleClassDeclaration(ModelProcessor.java:107) at org.slim3.gen.processor.ModelProcessor.process(ModelProcessor.java:83) at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60) at com.sun.tools.apt.comp.Apt.main(Apt.java:454) at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258) at com.sun.tools.apt.main.Main.compile(Main.java:1102) at com.sun.tools.apt.main.Main.compile(Main.java:964) at com.sun.tools.apt.Main.processing(Main.java:95) at com.sun.tools.apt.Main.process(Main.java:43) at com.sun.tools.apt.Main.main(Main.java:34)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.