java.lang.ClassCastException: model.HazelcastUser cannot be cast to model.HazelcastUser at persistence.HazelcastController.setIsOnline(HazelcastController.java:41) --> WHICH IS HazelcastUser currentUser = users.get(idUser);

Google Groups | Chris Roffler | 5 years 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

    HazelcastSerializationException: Problem when serializing type 1

    Google Groups | 5 years ago | Chris Roffler
    java.lang.ClassCastException: model.HazelcastUser cannot be cast to model.HazelcastUser at persistence.HazelcastController.setIsOnline(HazelcastController.java:41) --> WHICH IS HazelcastUser currentUser = users.get(idUser);

    Root Cause Analysis

    1. java.lang.ClassCastException

      model.HazelcastUser cannot be cast to model.HazelcastUser at persistence.HazelcastController.setIsOnline(HazelcastController.java:41) --> WHICH IS HazelcastUser currentUser = users.get(idUser);

      at control.chat.HazelcastChatController.connectChat()
    2. control.chat
      HazelcastChatController.connectChat
      1. control.chat.HazelcastChatController.connectChat(HazelcastChatController.java:12)
      1 frame
    3. action
      ConnectChatAction.doAction
      1. action.ConnectChatAction.doAction(ConnectChatAction.java:30)
      1 frame
    4. action.controller
      ActionController.executeAction
      1. action.controller.ActionController.executeAction(ActionController.java:53)
      1 frame
    5. handler
      CChatHandler.onRequest
      1. handler.CChatHandler.serviceDoPost(CChatHandler.java:82)
      2. handler.CChatHandler.onRequest(CChatHandler.java:40)
      2 frames
    6. atmosphere-runtime
      Jetty9WebSocketHandler.onWebSocketText
      1. org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:254)
      2. org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:164)
      3. org.atmosphere.container.Jetty9AsyncSupportWithWebSocket.service(Jetty9AsyncSupportWithWebSocket.java:127)
      4. org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1335)
      5. org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:259)
      6. org.atmosphere.websocket.DefaultWebSocketProcessor$2.run(DefaultWebSocketProcessor.java:209)
      7. org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
      8. org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:204)
      9. org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:180)
      10. org.atmosphere.container.Jetty9WebSocketHandler.onWebSocketText(Jetty9WebSocketHandler.java:74)
      10 frames
    7. org.eclipse.jetty
      AbstractWebSocketConnection.onFillable
      1. org.eclipse.jetty.websocket.core.io.event.ListenerEventDriver.onTextMessage(ListenerEventDriver.java:117)
      2. org.eclipse.jetty.websocket.core.io.message.SimpleTextMessage.messageComplete(SimpleTextMessage.java:69)
      3. org.eclipse.jetty.websocket.core.io.event.ListenerEventDriver.onTextFrame(ListenerEventDriver.java:109)
      4. org.eclipse.jetty.websocket.core.io.event.EventDriver.incoming(EventDriver.java:147)
      5. org.eclipse.jetty.websocket.core.io.WebSocketSession.incoming(WebSocketSession.java:124)
      6. org.eclipse.jetty.websocket.core.protocol.Parser.notifyFrame(Parser.java:189)
      7. org.eclipse.jetty.websocket.core.protocol.Parser.parse(Parser.java:224)
      8. org.eclipse.jetty.websocket.core.io.AbstractWebSocketConnection.read(AbstractWebSocketConnection.java:377)
      9. org.eclipse.jetty.websocket.core.io.AbstractWebSocketConnection.onFillable(AbstractWebSocketConnection.java:287)
      9 frames
    8. Jetty
      QueuedThreadPool$3.run
      1. org.eclipse.jetty.io.AbstractConnection$1.onCompleted(AbstractConnection.java:80)
      2. org.eclipse.jetty.io.AbstractConnection$1.onCompleted(AbstractConnection.java:63)
      3. org.eclipse.jetty.util.ExecutorCallback$1.run(ExecutorCallback.java:32)
      4. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:595)
      5. org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:526)
      5 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame