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'

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
, 6 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
, 4 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 Google Groups by John Smiljanic, 1 year ago
Cannot cast object 'ExprEvalWrapper@698d6d30' with class 'ExprEvalWrapper' to class 'Row'
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.akhikhl.gretty.Runner.initLogback(Runner.groovy:50)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
at org.akhikhl.gretty.Runner.run(Runner.groovy:117)
at org.akhikhl.gretty.Runner.this$2$run(Runner.groovy)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.akhikhl.gretty.Runner.main(Runner.groovy:46)

Users with the same issue

Once, 1 month ago
3 times, 3 months ago
Once, 3 months ago
Once, 7 months ago
Once, 8 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.