java.lang.ClassCastException

com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to java.lang.String

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 web19437

  • com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to java.lang.String
  • via YouTrack by Unknown author, 1 year ago
    com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to org.jetbrains.jet.lang.psi.JetNamedDeclaration
  • via YouTrack by Unknown author, 1 year ago
    com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to org.jetbrains.jet.lang.psi.JetNamedDeclaration
  • Stack trace

    • java.lang.ClassCastException: com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to java.lang.String at org.apache.camel.idea.documentation.CamelDocumentationProvider.getDocumentationElementForLookupItem(CamelDocumentationProvider.java:163) at com.intellij.lang.documentation.CompositeDocumentationProvider.getDocumentationElementForLookupItem(CompositeDocumentationProvider.java:156) at com.intellij.codeInsight.documentation.DocumentationManager.getElementFromLookup(DocumentationManager.java:645) at com.intellij.codeInsight.documentation.DocumentationManager.a(DocumentationManager.java:588) at com.intellij.codeInsight.documentation.DocumentationManager.findTargetElement(DocumentationManager.java:573) at com.intellij.codeInsight.documentation.DocumentationManager.findTargetElement(DocumentationManager.java:567) at com.intellij.codeInsight.documentation.DocumentationManager.findTargetElement(DocumentationManager.java:394) at com.intellij.codeInsight.documentation.DocumentationManager.showJavaDocInfo(DocumentationManager.java:335) at com.intellij.codeInsight.documentation.DocumentationManager.showJavaDocInfo(DocumentationManager.java:311) at com.intellij.codeInsight.documentation.actions.ShowQuickDocInfoAction$1.invoke(ShowQuickDocInfoAction.java:52) at com.intellij.codeInsight.actions.CodeInsightAction.lambda$null$0(CodeInsightAction.java:64)

    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.