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 jenshp
, 1 year ago
Cannot cast object 'org.apache.tomcat.websocket.server.WsServerContainer@1344f181' with class 'org.apache.tomcat.websocket.server.WsServerContainer' to class 'javax.websocket.server.ServerContainer'
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 Google Groups by John Smiljanic, 10 months ago
Cannot cast object 'ExprEvalWrapper@698d6d30' with class 'ExprEvalWrapper' to class 'Row'
via GitHub by ias-dt
, 2 years ago
Cannot cast object 'src/main/webapp' with class 'java.lang.String' to class 'java.io.File'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.apache.tomcat.websocket.server.WsServerContainer@1344f181' with class 'org.apache.tomcat.websocket.server.WsServerContainer' to class 'javax.websocket.server.ServerContainer'	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:405)	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)	at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)	at org.moqui.impl.context.ExecutionContextFactoryImpl.initServletContext(ExecutionContextFactoryImpl.groovy:1019)	at org.moqui.impl.webapp.MoquiContextListener.contextInitialized(MoquiContextListener.groovy:81)	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)	at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)