java.lang.ClassCastException: java.lang.String incompatible with org.atmosphere.cpr.AtmosphereResource

GitHub | pohualin | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException in AsynchronousProcessor

    GitHub | 8 months ago | pohualin
    java.lang.ClassCastException: java.lang.String incompatible with org.atmosphere.cpr.AtmosphereResource

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String incompatible with org.atmosphere.cpr.AtmosphereResource

      at org.atmosphere.cpr.AtmosphereRequestImpl.resource()
    2. atmosphere-runtime
      DefaultBroadcaster.addAtmosphereResource
      1. org.atmosphere.cpr.AtmosphereRequestImpl.resource(AtmosphereRequestImpl.java:833)
      2. org.atmosphere.cpr.AtmosphereRequestImpl.getSession(AtmosphereRequestImpl.java:663)
      3. org.atmosphere.cpr.SessionTimeoutSupport.restoreTimeout(SessionTimeoutSupport.java:69)
      4. org.atmosphere.cpr.AtmosphereResourceImpl.cancel(AtmosphereResourceImpl.java:817)
      5. org.atmosphere.cpr.AtmosphereResourceImpl.dirtyClose(AtmosphereResourceImpl.java:910)
      6. org.atmosphere.cpr.DefaultBroadcaster.addAtmosphereResource(DefaultBroadcaster.java:1370)
      6 frames
    3. org.atmosphere.plugin
      HazelcastBroadcaster.addAtmosphereResource
      1. org.atmosphere.plugin.hazelcast.HazelcastBroadcaster.addAtmosphereResource(HazelcastBroadcaster.java:94)
      1 frame
    4. atmosphere-runtime
      AtmosphereFramework.doCometSupport
      1. org.atmosphere.cpr.AtmosphereResourceImpl.suspend(AtmosphereResourceImpl.java:401)
      2. org.atmosphere.interceptor.AtmosphereResourceLifecycleInterceptor.postInspect(AtmosphereResourceLifecycleInterceptor.java:145)
      3. org.atmosphere.cpr.AsynchronousProcessor.postInterceptors(AsynchronousProcessor.java:374)
      4. org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:230)
      5. org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:115)
      6. org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:68)
      7. org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2287)
      7 frames
    5. org.atmosphere.spring
      AtmosphereSpringServlet.doGet
      1. org.atmosphere.spring.bean.AtmosphereSpringServlet.doPost(AtmosphereSpringServlet.java:75)
      2. org.atmosphere.spring.bean.AtmosphereSpringServlet.doGet(AtmosphereSpringServlet.java:69)
      2 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      2 frames
    7. WebSphere
      WSWebContainer.handleRequest
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1232)
      2. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:781)
      3. com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
      4. com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
      5. com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
      6. com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:79)
      7. com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
      8. com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
      9. com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
      10. com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:940)
      11. com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
      11 frames
    8. com.ibm.ws
      WCChannelLink.ready
      1. com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
      1 frame
    9. WebSphere
      AioReadCompletionListener.futureCompleted
      1. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
      2. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
      3. com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
      4. com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
      5. com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
      5 frames
    10. com.ibm.io
      ResultHandler$2.run
      1. com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
      2. com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
      3. com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
      4. com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
      5. com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
      6. com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
      6 frames
    11. com.ibm.ws
      ThreadPool$Worker.run
      1. com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)
      1 frame