Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by fharms
, 1 year ago
com.intellij.psi.impl.compiled.ClsMethodImpl cannot be cast to java.lang.String
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)