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

Google Groups | Yoshiteru Iwasaki | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    @JsonのAttributeがあるとantコマンドによるaptに失敗する

    Google Groups | 5 years ago | Yoshiteru Iwasaki
    java.lang.ClassCastException: java.lang.String cannot be cast to com.sun.mirror.type.TypeMirror

    Root Cause Analysis

    1. java.lang.ClassCastException

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

      at org.slim3.gen.desc.AttributeMetaDescFactory.getClassNameOfClassParameter()
    2. org.slim3.gen
      ModelProcessor.process
      1. org.slim3.gen.desc.AttributeMetaDescFactory.getClassNameOfClassParameter(AttributeMetaDescFactory.java:595)
      2. org.slim3.gen.desc.AttributeMetaDescFactory.handleJson(AttributeMetaDescFactory.java:577)
      3. org.slim3.gen.desc.AttributeMetaDescFactory.handleField(AttributeMetaDescFactory.java:203)
      4. org.slim3.gen.desc.AttributeMetaDescFactory.createAttributeMetaDesc(AttributeMetaDescFactory.java:125)
      5. org.slim3.gen.desc.ModelMetaDescFactory.createAttributeMetaDesc(ModelMetaDescFactory.java:577)
      6. org.slim3.gen.desc.ModelMetaDescFactory.handleAttributes(ModelMetaDescFactory.java:356)
      7. org.slim3.gen.desc.ModelMetaDescFactory.createModelMetaDesc(ModelMetaDescFactory.java:156)
      8. org.slim3.gen.processor.ModelProcessor.handleClassDeclaration(ModelProcessor.java:107)
      9. org.slim3.gen.processor.ModelProcessor.process(ModelProcessor.java:83)
      9 frames
    3. com.sun.mirror
      AnnotationProcessors$CompositeAnnotationProcessor.process
      1. com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
      1 frame
    4. com.sun.tools
      Main.main
      1. com.sun.tools.apt.comp.Apt.main(Apt.java:454)
      2. com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:258)
      3. com.sun.tools.apt.main.Main.compile(Main.java:1102)
      4. com.sun.tools.apt.main.Main.compile(Main.java:964)
      5. com.sun.tools.apt.Main.processing(Main.java:95)
      6. com.sun.tools.apt.Main.process(Main.java:43)
      7. com.sun.tools.apt.Main.main(Main.java:34)
      7 frames