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 mohamnag
, 1 year ago
Cannot cast object 'org.slf4j.helpers.NOPLoggerFactory@c267ef4' with class 'org.slf4j.helpers.NOPLoggerFactory' to class 'ch.qos.logback.classic.LoggerContext'
via Stack Overflow by aristotll
, 9 months ago
Cannot cast object 'class org.jetbrains.kotlin.idea.internal.KotlinDecompilerService$Companion' with class 'java.lang.Class' to class 'org.jetbrains.kotlin.idea.internal.KotlinDecompilerService$Companion'
via GitHub by rogergl
, 7 months ago
Cannot cast object 'gql.dsl.ObjectTypeBuilder$FieldBuilder@70cd3ca8' with class 'gql.dsl.ObjectTypeBuilder$FieldBuilder' to class 'graphql.schema.GraphQLArgument$Builder'
via GitHub by hzhlu
, 1 year ago
Cannot cast object '[Digest Input Stream] MD5 Message Digest from SUN, <initialized> ' with class 'java.security.DigestInputStream' to class 'java.io.ByteArrayInputStream'
via GitHub by ias-dt
, 2 years ago
Cannot cast object 'src/main/webapp' with class 'java.lang.String' to class 'java.io.File'
via GitHub by chrismair
, 1 month ago
Cannot cast object 'Script1$_run_closure1$_closure10@6e6f2380' with class 'Script1$_run_closure1$_closure10' to class 'java.util.Map'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.slf4j.helpers.NOPLoggerFactory@c267ef4' with class 'org.slf4j.helpers.NOPLoggerFactory' to class 'ch.qos.logback.classic.LoggerContext'	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:392)	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:306)	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:227)	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:601)	at org.akhikhl.gretty.Runner.initLogback(Runner.groovy:50)	at org.akhikhl.gretty.Runner$initLogback$0.callStatic(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:165)	at org.akhikhl.gretty.Runner.run(Runner.groovy:117)	at org.akhikhl.gretty.Runner.this$2$run(Runner.groovy)	at org.akhikhl.gretty.Runner$this$2$run.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)	at org.akhikhl.gretty.Runner.main(Runner.groovy:46)