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'

GitHub | jenshp | 4 months ago
  1. 0

    Not able to start in tomcat 7

    GitHub | 4 months ago | jenshp
    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'
  2. 0

    GroovyCastException when both @CompileStatic and @Newify are used

    Stack Overflow | 10 months ago | Ziphil
    org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'main.Test@543e710e' with class 'main.Test' to class 'main.A'
  3. 0

    GroovyCastException when using http client 4.4/4.5 APIs

    GitHub | 6 months ago | sslavic
    org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.apache.http.impl.client.InternalHttpClient@6622a690' with class 'org.apache.http.impl.client.InternalHttpClient' to class 'org.apache.http.impl.client.AbstractHttpClient'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    User authentication failing after upgrading to 3.2.1

    Stack Overflow | 2 months ago | Shashank Agrawal
    org.springframework.security.authentication.InternalAuthenticationServiceException: Cannot cast object 'User(email:user@example.com)' with class 'com.test.User' to class 'com.test.User'
  6. 0

    .GroovyCastException Exception when using GrettyStartTask

    GitHub | 3 years ago | rainoko
    org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'org.akhikhl.gretty7.ScannerManager@45b109c6' with class 'org.akhikhl.gretty7.ScannerManager' to class 'org.akhikhl.gretty.ScannerManagerBase'

  1. Cafecanudo 1 times, last 4 months ago
  2. mortalman7 1 times, last 4 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Groovy
    ScriptBytecodeAdapter.castToType
    1. org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnSAM(DefaultTypeTransformation.java:405)
    2. org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.continueCastOnNumber(DefaultTypeTransformation.java:319)
    3. org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:232)
    4. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.castToType(ScriptBytecodeAdapter.java:603)
    4 frames
  3. org.moqui.impl
    MoquiContextListener.contextInitialized
    1. org.moqui.impl.context.ExecutionContextFactoryImpl.initServletContext(ExecutionContextFactoryImpl.groovy:1019)
    2. org.moqui.impl.webapp.MoquiContextListener.contextInitialized(MoquiContextListener.groovy:81)
    2 frames
  4. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
    7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
    8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
    8 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames